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

:root {
    --brand-navy: #00263A;   /* deep navy */
    --brand-blue: #007DBA;   /* EL primary blue */
    --brand-accent: #00A3E0; /* bright accent */
    --brand-light: #E8F4FA;  /* subtle blue tint */
    --brand-sand: #F4F1EA;   /* warm neutral */
    --text-main: #1F2937;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, var(--brand-light) 0%, #FFFFFF 70%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: #ffffff;
    padding: 2.25rem;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 38, 58, 0.10);
    max-width: 720px;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

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

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--brand-navy);
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle, .url-form, .url-list, .result, .input-group, .copy-btn, .shorten-btn, input[type="text"], .loading, .error {
    display: none !important;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: var(--brand-sand);
    border: 1px solid rgba(0, 38, 58, 0.08);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--brand-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-main);
    font-size: 0.9rem;
    opacity: 0.75;
}

/* Redirect page styles */
.redirect-page {
    background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand-sand) 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', sans-serif;
}

.redirect-container {
    background: white;
    color: #333;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.redirect-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.redirect-title {
    color: var(--brand-blue);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.redirect-subtitle {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.destination-box {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    word-break: break-all;
    font-size: 14px;
    border-left: 4px solid var(--brand-blue);
}

.progress-container {
    margin: 2rem 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, var(--brand-blue), var(--brand-accent));
    width: 0%;
    animation: progress 3s ease-in-out forwards;
}

@keyframes progress {
    to { width: 100%; }
}

.redirect-footer {
    font-size: 12px;
    color: #999;
    margin-top: 1.5rem;
}

.redirect-footer a {
    color: #667eea;
    text-decoration: none;
}

.redirect-footer a:hover {
    text-decoration: underline;
}

/* 404 page styles */
.error-page {
    background: linear-gradient(135deg, #f44336 0%, #e91e63 100%);
}

.error-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.error-title {
    color: #f44336;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.home-btn {
    background: var(--brand-blue);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s;
}

.home-btn:hover {
    background: #006A9A;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.short-url {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--brand-blue);
    border-left: 4px solid var(--brand-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.url-item {
    background: #f8f9fa;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    border-left: 4px solid var(--brand-blue);
    transition: all 0.3s;
    cursor: pointer;
}

.url-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.url-item strong {
    color: #667eea;
    font-family: 'Courier New', monospace;
}

.url-item small {
    color: #666;
    display: block;
    margin-top: 5px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .redirect-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
}

/* Notification animations */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}
