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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    background: #050510;
    color: #e0e0e0;
    overflow-x: hidden;
    position: relative;
}

/* Animated background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #050510 0%, #0f0f20 50%, #050510 100%);
    z-index: -2;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Header */
.header {
    background: rgba(5, 5, 16, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.logo-subtitle {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    position: relative;
}

.nav-link:hover {
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.1);
}

.nav-link.active {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    border-radius: 2px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 30px;
    font-size: 14px;
    color: #60a5fa;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

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

/* Main Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px 40px 20px;
}

/* Weather Intensity Section - NEW TOP SECTION */
.weather-intensity-section {
    margin-bottom: 60px;
    margin-top: 0;
}

.intensity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    margin-top: 0;
}

.intensity-score-card {
    background: 
        linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.02)),
        radial-gradient(ellipse at top, rgba(59, 130, 246, 0.05), transparent 50%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 30px;
    padding: 30px 20px 25px 20px;
    text-align: center;
    position: relative;
    overflow: visible;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    backdrop-filter: blur(20px);
}

.intensity-score-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.intensity-score {
    font-size: 140px;
    font-weight: 900;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    letter-spacing: -4px;
    font-variant-numeric: tabular-nums;
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.3));
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.3)); }
    50% { filter: drop-shadow(0 0 50px rgba(59, 130, 246, 0.5)); }
}

.intensity-label {
    font-size: 28px;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    opacity: 0.9;
}

.intensity-timeline-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin: 20px auto 30px;
    position: relative;
    padding: 20px;
    max-width: 900px;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    border-radius: 30px;
}

.timeline-value {
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    min-width: 140px;
}

.timeline-value:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.timeline-value.past {
    animation: slideInLeft 0.8s ease-out;
    transform: scale(0.9);
    opacity: 0.6;
}

.timeline-value.future {
    animation: slideInRight 0.8s ease-out;
    transform: scale(0.9);
    opacity: 0.8;
    border: 1px solid rgba(96, 165, 250, 0.2);
    background: rgba(96, 165, 250, 0.05);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px) scale(0.8);
    }
    to {
        opacity: 0.6;
        transform: translateX(0) scale(0.9);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px) scale(0.8);
    }
    to {
        opacity: 0.8;
        transform: translateX(0) scale(0.9);
    }
}

.timeline-score {
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    order: 1;
    letter-spacing: -2px;
    font-variant-numeric: tabular-nums;
}

.timeline-value.past .timeline-score {
    background: linear-gradient(135deg, #374151, #6b7280);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timeline-value.future .timeline-score {
    background: linear-gradient(135deg, #60a5fa, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timeline-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    order: 2;
    white-space: nowrap;
    opacity: 0.8;
}

.timeline-trend {
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.3);
    order: 3;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-trend.up {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.timeline-trend.down {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.timeline-trend.neutral {
    color: #6b7280;
    background: rgba(107, 114, 128, 0.15);
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Timeline indicators */
/* Removed emoji indicators */

.current-indicator {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ef4444, #f87171);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    animation: livePulse 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

@keyframes livePulse {
    0%, 100% { 
        opacity: 1; 
        box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    }
    50% { 
        opacity: 0.8; 
        box-shadow: 0 4px 25px rgba(239, 68, 68, 0.6);
    }
}

@keyframes arrowPulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}

/* Cool visual effects and timeline flow */
.intensity-timeline-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 50%, rgba(96, 165, 250, 0.1) 0%, transparent 30%);
    pointer-events: none;
    z-index: 0;
}

/* Timeline flow indicators */
.timeline-value.past::after {
    content: '';
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, rgba(107, 114, 128, 0.3), transparent);
    animation: flowRight 2s ease-in-out infinite;
}

.timeline-value.future::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(270deg, rgba(96, 165, 250, 0.3), transparent);
    animation: flowLeft 2s ease-in-out infinite;
}

@keyframes flowRight {
    0%, 100% { opacity: 0.3; transform: translateY(-50%) translateX(0); }
    50% { opacity: 0.6; transform: translateY(-50%) translateX(10px); }
}

@keyframes flowLeft {
    0%, 100% { opacity: 0.3; transform: translateY(-50%) translateX(0); }
    50% { opacity: 0.6; transform: translateY(-50%) translateX(-10px); }
}

@keyframes lineFlow {
    0%, 100% {
        opacity: 0.3;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 0.6;
        transform: scaleX(1);
    }
}

/* Glow effect on hover */
.timeline-value:hover .timeline-score {
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.timeline-value.past:hover .timeline-score {
    text-shadow: 0 0 20px rgba(107, 114, 128, 0.5);
}

.timeline-value.future:hover .timeline-score {
    text-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
}

.intensity-main-score {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    animation: scaleIn 0.6s ease-out;
    gap: 12px;
    padding: 20px 30px;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    border-radius: 30px;
    transform: scale(1.05);
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.intensity-trend {
    position: static;
    font-size: 20px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.3);
}

.intensity-trend.up {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
    border: 2px solid rgba(34, 197, 94, 0.3);
}

.intensity-trend.down {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.intensity-components {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 80px;
    width: 100%;
    padding: 0 20px;
}

.intensity-meter-container {
    margin: 40px 0 50px 0;
    position: relative;
    width: 100%;
    height: 120px;
}

#intensityMeter {
    width: 100%;
    height: 100%;
}

.meter-labels {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.meter-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    bottom: -8px;
    transform: translateX(-50%);
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    z-index: 10;
}

.label-value {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.label-text {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    margin-top: 2px;
    white-space: nowrap;
}

.intensity-component {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.intensity-component::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0.8;
}

.intensity-component:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.intensity-component.warning::before {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.intensity-component.warning {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(239, 68, 68, 0.02));
    border-color: rgba(239, 68, 68, 0.2);
}

.intensity-component.camera::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.intensity-component.camera {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.02));
    border-color: rgba(245, 158, 11, 0.2);
}

.intensity-component.public::before {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.intensity-component.public {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(139, 92, 246, 0.02));
    border-color: rgba(139, 92, 246, 0.2);
}

.intensity-component.threshold::before {
    background: linear-gradient(90deg, #ffffff, #e5e7eb);
}

.intensity-component.threshold {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
    border-color: rgba(255, 255, 255, 0.15);
    border-style: dashed;
}

.intensity-component.forecast::before {
    background: linear-gradient(90deg, #60a5fa, #93bbfc);
}

.intensity-component.forecast {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.08), rgba(96, 165, 250, 0.02));
    border-color: rgba(96, 165, 250, 0.2);
}

.component-score-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    position: relative;
}

.component-score {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
    display: inline-block;
}

.component-trend {
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.4);
    margin-left: 8px;
    vertical-align: super;
}

.component-trend.up {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.component-trend.down {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.component-trend.neutral {
    color: #6b7280;
    background: rgba(107, 114, 128, 0.15);
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.trend-arrow {
    font-size: 14px;
    line-height: 1;
}


.component-label {
    font-size: 14px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* DOS Daily Forecast Cards */
.dos-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 25px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.3), transparent);
    margin-left: 8px;
}

.dos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.dos-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px;
    padding-top: 32px;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Smooth transitions for dynamic updates */
.dos-score,
.metric-value,
.component-score,
.intensity-score,
.stat-value {
    transition: color 0.3s ease;
}

.component-trend,
.intensity-trend {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.dos-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
}

.dos-card.live {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    border-color: rgba(34, 197, 94, 0.4);
    animation: liveGlow 2s ease-in-out infinite;
}

@keyframes liveGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(34, 197, 94, 0.3); }
    50% { box-shadow: 0 0 50px rgba(34, 197, 94, 0.5); }
}

.dos-day-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    position: relative;
}

.dos-day-info h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 4px;
}

.dos-date {
    font-size: 14px;
    color: #999;
}

.dos-score {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

.dos-metrics {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.dos-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.dos-metric:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(59, 130, 246, 0.2);
}

.metric-label {
    font-size: 13px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 16px;
    font-weight: 700;
    color: #e0e0e0;
}

.metric-value.live-now {
    font-weight: 800;
    animation: livePulse 2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.threshold-indicator {
    margin-top: 16px;
    padding: 12px;
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 8px;
    font-size: 14px;
    color: #ffa500;
    text-align: center;
}

.live-indicator {
    position: absolute;
    top: 12px;
    right: 20px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    animation: blink 2s infinite;
    z-index: 20;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 60px;
}

.chart-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 35px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 22px;
    font-weight: 700;
    color: #e0e0e0;
}

.chart-wrapper {
    position: relative;
    height: 400px;
}

/* Chart Controls Container */
.chart-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Toggle Controls */
.toggle-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.toggle-control {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.toggle-control:hover {
    color: #d1d5db;
}

.toggle-control input[type="checkbox"] {
    position: relative;
    width: 40px;
    height: 22px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 11px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-control input[type="checkbox"]:checked {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

.toggle-control input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #9ca3af;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
}

.toggle-control input[type="checkbox"]:checked::before {
    background: #3b82f6;
    transform: translateX(18px);
}

.toggle-label {
    user-select: none;
}

/* Time Range Selector */
.time-range-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.time-range-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.time-range-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.time-range-btn.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #3b82f6;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
}

.stat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Forecast Reasoning Section */
.forecast-reasoning-section {
    margin-top: 30px;
    margin-bottom: 40px;
}

.forecast-reasoning-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.05), rgba(96, 165, 250, 0.02));
    border-color: rgba(96, 165, 250, 0.2);
}

.forecast-reasoning-title {
    font-size: 20px;
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.forecast-reasoning-content {
    font-size: 15px;
    line-height: 1.7;
    color: #d1d5db;
    text-align: justify;
}

.forecast-reasoning-content strong {
    color: #60a5fa;
    font-weight: 600;
}

.forecast-reasoning-content .highlight {
    background: rgba(96, 165, 250, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    color: #93bbfc;
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(0, 212, 255, 0.2);
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Prevent chart style changes */
#wisChart {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.chart-wrapper canvas {
    will-change: transform;
}

/* Responsive */
@media (max-width: 768px) {
    .dos-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .logo-container {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .logo-subtitle {
        font-size: 12px;
    }
    
    .header-nav {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .intensity-timeline-display {
        gap: 40px;
    }
    
    .timeline-score {
        font-size: 40px;
    }
    
    .timeline-value {
        min-width: 80px;
    }
    
    .intensity-score {
        font-size: 60px;
    }
    
    .intensity-timeline-display::before,
    .intensity-timeline-display::after {
        display: none;
    }
    
    .intensity-trend {
        font-size: 16px;
        padding: 4px 10px;
    }
    
    .timeline-trend {
        font-size: 12px;
        padding: 3px 8px;
    }
}