:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #4bb543;
    --error-color: #ff3333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7ff;
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

header h1 i {
    margin-right: 0.5rem;
}

.tagline {
    color: #666;
    font-size: 1.1rem;
}

.shortener-box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    margin-bottom: 1.5rem;
}

.input-group input {
    flex: 1;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: var(--accent-color);
}

.input-group button {
    padding: 0 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.input-group button:hover {
    background-color: var(--secondary-color);
}

.options {
    display: flex;
    flex-direction: column;
}

.options label {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

.options input {
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    outline: none;
}

.result-container {
    margin-bottom: 3rem;
    animation: fadeIn 0.5s ease-in-out;
}

.result-box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.original-url, .shortened-url, .analytics {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.original-url:last-child, .shortened-url:last-child, .analytics:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.original-url span, .shortened-url span, .analytics span {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.url-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.url-display a {
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-all;
    margin-right: 1rem;
}

.url-display a:hover {
    text-decoration: underline;
}

.url-display button {
    padding: 0.5rem 1rem;
    background-color: var(--light-color);
    color: var(--dark-color);
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.url-display button:hover {
    background-color: #e9ecef;
}

.url-display button i {
    margin-right: 0.3rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #666;
    font-size: 0.9rem;
}

footer {
    margin-top: auto;
    text-align: center;
    padding: 2rem 0;
    color: #666;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: #666;
    margin: 0 0.5rem;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
}

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dark-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: fadeInOut 2.5s ease-in-out;
}

.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    10% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    90% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group input {
        border-radius: 5px;
        margin-bottom: 0.5rem;
    }
    
    .input-group button {
        border-radius: 5px;
        padding: 1rem;
    }
    
    .url-display {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .url-display button {
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}

/* This is a minimal CSS addition for the toast functionality */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 4px;
    background-color: #333;
    color: white;
    z-index: 1000;
    transition: opacity 0.3s ease-in-out;
}

.toast.hidden {
    opacity: 0;
    visibility: hidden;
}

.toast.success {
    background-color: #4CAF50;
}

.toast.error {
    background-color: #f44336;
}