/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --neon-cyan: #00f0ff;
    --neon-magenta: #ff00ff;
    --neon-green: #39ff14;
    --neon-yellow: #ffff00;
    --dark-bg: #0a0e27;
    --dark-card: #151932;
    --dark-accent: #1a1f3a;
    --text-primary: #e0e6f0;
    --text-secondary: #8b95b0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 240, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Navigation */
.navbar {
    background: rgba(21, 25, 50, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.1);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.nav-brand a:hover {
    text-shadow: 0 0 20px var(--neon-cyan);
}

.nav-logo {
    height: 32px;
    width: auto;
    transition: all 0.3s;
}

.nav-brand a:hover .nav-logo {
    filter: drop-shadow(0 0 10px var(--neon-cyan));
}

.nav-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Dashboard Button */
.btn-dashboard {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--neon-cyan), #0088cc);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
    border: 1px solid var(--neon-cyan);
}

.btn-dashboard:hover {
    box-shadow: 0 6px 25px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}

.btn-dashboard-text {
    display: inline;
}

/* Hamburger Button */
.hamburger-btn {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--text-primary);
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-btn:hover {
    background: rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    color: var(--neon-cyan);
}

/* Slide-out Menu */
.slide-menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: rgba(21, 25, 50, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    border-left: 1px solid rgba(0, 240, 255, 0.2);
}

.slide-menu.open {
    right: 0;
}

.slide-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.slide-menu-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 0;
}

.close-menu-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-menu-btn:hover {
    color: var(--neon-cyan);
    transform: rotate(90deg);
}

.slide-menu-content {
    padding: 1.5rem;
}

.menu-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    margin-bottom: 1.5rem;
}

.menu-user-info i {
    font-size: 1.5rem;
    color: var(--neon-cyan);
}

.menu-user-info span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.1rem;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 1rem;
}

.menu-nav a:hover {
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
    transform: translateX(5px);
}

.menu-nav a i,
.menu-nav a svg {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.menu-strava-icon {
    width: 20px;
    height: 20px;
}

.menu-logout {
    margin-top: 1rem;
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    padding-top: 1.5rem !important;
}

.menu-logout:hover {
    background: rgba(255, 0, 0, 0.1) !important;
    color: #ff6b6b !important;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-danger {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan), #0088cc);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
    border: 1px solid var(--neon-cyan);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(139, 149, 176, 0.2);
    color: var(--text-primary);
    border: 1px solid rgba(139, 149, 176, 0.4);
}

.btn-secondary:hover {
    background: rgba(139, 149, 176, 0.3);
    border-color: var(--neon-cyan);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
}

.btn-danger {
    background: linear-gradient(135deg, #ff0055, #cc0044);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 85, 0.3);
    border: 1px solid #ff0055;
}

.btn-danger:hover {
    box-shadow: 0 6px 25px rgba(255, 0, 85, 0.5);
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-logout {
    background: linear-gradient(135deg, #ff0055, #cc0044);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(255, 0, 85, 0.3);
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 1.5rem;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(57, 255, 20, 0.1);
    color: var(--neon-green);
    border-left: 4px solid var(--neon-green);
    box-shadow: 0 4px 15px rgba(57, 255, 20, 0.2);
}

.alert-danger {
    background: rgba(255, 0, 85, 0.1);
    color: #ff4477;
    border-left: 4px solid #ff0055;
    box-shadow: 0 4px 15px rgba(255, 0, 85, 0.2);
}

.alert-warning {
    background: rgba(255, 255, 0, 0.1);
    color: var(--neon-yellow);
    border-left: 4px solid var(--neon-yellow);
    box-shadow: 0 4px 15px rgba(255, 255, 0, 0.2);
}

.alert-info {
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
    border-left: 4px solid var(--neon-cyan);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.feature {
    background: rgba(21, 25, 50, 0.6);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 240, 255, 0.2);
    transition: all 0.3s;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 240, 255, 0.3);
    border-color: var(--neon-cyan);
}

.feature h3 {
    color: var(--neon-cyan);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.cta {
    margin-top: 3rem;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Strava Integration */
.strava-section {
    background: rgba(21, 25, 50, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(252, 76, 2, 0.3);
    margin-bottom: 2rem;
}

.strava-connected,
.strava-disconnected {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.strava-status,
.strava-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.strava-icon {
    color: #fc4c02;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(252, 76, 2, 0.5));
}

.strava-status span,
.strava-info span {
    color: var(--text-primary);
    font-weight: 500;
}

.strava-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 768px) {
    /* Mobile navigation adjustments */
    .nav-brand a {
        font-size: 1.3rem;
        gap: 0.4rem;
    }

    .nav-logo {
        height: 24px;
    }

    .btn-dashboard {
        padding: 0.6rem 0.8rem;
    }

    .btn-dashboard-text {
        display: none;
    }

    .hamburger-btn {
        padding: 0.6rem 0.7rem;
    }

    .nav-right {
        gap: 0.5rem;
    }

    /* Dashboard header adjustments */
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .dashboard-header h1 {
        font-size: 1.8rem;
    }

    .dashboard-header .btn-primary {
        width: 100%;
        justify-content: center;
    }

    /* Strava section adjustments */
    .strava-connected,
    .strava-disconnected {
        flex-direction: column;
        align-items: flex-start;
    }

    .strava-actions {
        width: 100%;
        flex-direction: column;
    }

    .strava-actions .btn-secondary,
    .strava-actions .btn-primary {
        width: 100%;
        text-align: center;
    }
}

.races-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.race-card {
    background: rgba(21, 25, 50, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 240, 255, 0.2);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.race-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
}

.race-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 240, 255, 0.3);
    border-color: var(--neon-cyan);
}

.race-card-header h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
}

.race-date {
    color: var(--neon-cyan);
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.current-week-info {
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.1), rgba(0, 240, 255, 0.1));
    border-left: 4px solid var(--neon-green);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
}

.current-week-info strong {
    color: var(--neon-green);
    font-size: 1rem;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

.race-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 1rem 0;
}

.race-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.delete-form {
    margin-top: 1rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(21, 25, 50, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.empty-state p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(21, 25, 50, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.form-container h1 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(139, 149, 176, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(10, 14, 39, 0.5);
    color: var(--text-primary);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    background: rgba(10, 14, 39, 0.7);
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.form-help {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.form-divider {
    margin: 2rem 0;
    padding-top: 1rem;
    border-top: 1px solid #ecf0f1;
}

.form-divider h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Training Plan */
.plan-header {
    text-align: center;
    margin-bottom: 2rem;
}

.plan-header h1 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 800;
    font-size: 2.5rem;
}

.plan-summary {
    margin-bottom: 2rem;
}

.summary-card {
    background: rgba(21, 25, 50, 0.6);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.summary-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.summary-detail {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.plan-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

/* Progress Bars */
.progress-bar {
    background-color: rgba(10, 14, 39, 0.5);
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    margin: 0.5rem 0;
    border: 1px solid rgba(139, 149, 176, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), #0088cc);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.status-complete {
    background: linear-gradient(90deg, var(--neon-green), #00cc00);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

.status-on-track {
    background: linear-gradient(90deg, #00ffaa, #00cc88);
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.5);
}

.status-good {
    background: linear-gradient(90deg, var(--neon-cyan), #0088cc);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.status-behind {
    background: linear-gradient(90deg, var(--neon-yellow), #ffcc00);
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.status-needs-attention {
    background: linear-gradient(90deg, #ff0055, #cc0044);
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Week Cards */
.weeks-container {
    margin-top: 2rem;
}

.weeks-container h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.week-card {
    background: rgba(21, 25, 50, 0.6);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--neon-cyan);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-left: 4px solid var(--neon-cyan);
}

.week-card.current-week {
    border-left-color: var(--neon-green);
    background: linear-gradient(135deg, rgba(57, 255, 20, 0.05), rgba(21, 25, 50, 0.6));
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.2);
}

.week-card.peak-week {
    border-left-color: var(--neon-magenta);
}

.week-card.taper-week {
    border-left-color: var(--neon-yellow);
}

.week-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.week-title h3 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.week-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.week-targets {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.target, .long-run {
    background: rgba(0, 240, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--text-primary);
}

.week-progress {
    margin: 1rem 0;
}

.week-runs {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 149, 176, 0.2);
}

.week-runs h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.runs-list {
    list-style: none;
}

.run-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(10, 14, 39, 0.4);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(0, 240, 255, 0.1);
}

.run-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.run-actions {
    display: flex;
    gap: 0.5rem;
}

.run-date {
    font-weight: 500;
    color: var(--text-primary);
}

.run-miles {
    color: var(--neon-cyan);
    font-weight: bold;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.run-notes {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.9rem;
    flex: 1;
}

.edit-run-form {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(139, 149, 176, 0.2);
}

.edit-run-form .form-row {
    display: grid;
    grid-template-columns: 1fr 2fr auto auto;
    gap: 0.5rem;
    align-items: center;
}

.edit-run-form input {
    padding: 0.5rem;
    border: 1px solid rgba(139, 149, 176, 0.3);
    border-radius: 8px;
    font-size: 0.9rem;
    background: rgba(10, 14, 39, 0.5);
    color: var(--text-primary);
}

.week-actions {
    margin-top: 1rem;
}

.edit-week-form {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(10, 14, 39, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

/* Charts */
.charts-container {
    margin: 2rem 0;
}

.charts-container h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

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

.chart-card {
    background: rgba(21, 25, 50, 0.6);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.chart-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.chart-card canvas {
    max-height: 300px;
}

/* Warning Box */
.warning-box {
    background: rgba(255, 255, 0, 0.1);
    border-left: 4px solid var(--neon-yellow);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(255, 255, 0, 0.2);
}

.warning-box p {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Footer */
footer {
    background: rgba(21, 25, 50, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-secondary);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-logo {
    height: 24px;
    width: auto;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--neon-cyan);
}

.footer-divider {
    color: var(--text-secondary);
    opacity: 0.5;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-divider {
        display: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .races-grid {
        grid-template-columns: 1fr;
    }

    .week-header {
        flex-direction: column;
    }

    .week-targets {
        margin-top: 0.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}
