:root {
    --primary: #2196f3;
    --primary-dark: #1976d2;
    --secondary: #ff4081;
    --dark: #121212;
    --dark-light: #1e1e1e;
    --light: #f5f5f5;
    --text-dark: #333;
    --text-light: #f5f5f5;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--text-light);
    transition: background-color 0.3s, color 0.3s;
}

body.light {
    background-color: var(--light);
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

body.light header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: none;
    gap: 20px;
}

@media (min-width: 769px) {
    .nav-links { display: flex; }
    .menu-toggle { display: none; }
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

body.light .nav-links a {
    color: var(--text-dark);
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover:after {
    width: 100%;
}

.nav-links a.active:after {
    width: 100%;
}

.theme-toggle {
    background: var(--dark-light);
    border: none;
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

body.light .theme-toggle {
    background: var(--light);
    color: var(--text-dark);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.countdown-section {
    grid-column: span 12;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(255, 64, 129, 0.1));
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

body.light .countdown-section {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.countdown-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-light);
    opacity: 0.8;
}

body.light .countdown-title {
    color: var(--text-dark);
}

.countdown-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.countdown-item {
    flex: 1;
    min-width: 200px;
}

.countdown-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.countdown-label {
    font-size: 0.9rem;
    opacity: 0.7;
}

.progress-container {
    width: 100%;
    margin: 20px 0;
    padding: 10px;
}

.progress-bar {
    height: 10px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

body.light .progress-bar {
    background-color: rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    transition: width 1s ease-in-out;
    width: 0;
}

.progress-label {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.card {
    background-color: var(--dark-light);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.light .card {
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

body.light .card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.summary-card {
    grid-column: span 4;
    text-align: center;
}

.summary-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 10px 0;
}

.summary-label {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 10px;
}

.chart-container {
    grid-column: span 6;
    min-height: 300px;
    position: relative;
}

@media (max-width: 768px) {
    .summary-card, .chart-container {
        grid-column: span 12;
    }

    .countdown-content {
        flex-direction: column;
    }

    header {
        position: relative;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        padding: 20px;
        z-index: 100;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    body.light .nav-links {
        background: var(--light);
    }

    .menu-toggle {
        display: block;
    }

    .nav-links.active {
        display: flex;
    }
}

.menu-toggle {
    display: block;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.8rem;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 101;
}

body.light .menu-toggle {
    color: var(--text-dark);
}

.status-indicator {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

.status-ahead {
    background-color: rgba(76, 175, 80, 0.2);
    color: var(--success);
}

.status-behind {
    background-color: rgba(244, 67, 54, 0.2);
    color: var(--danger);
}

.notification {
    font-size: 0.9rem;
    margin-top: 20px;
    padding: 10px;
    border-radius: 10px;
    background-color: rgba(255, 152, 0, 0.2);
    color: var(--warning);
} 