body { font-family: Arial, Helvetica, sans-serif; background: #0b1320; color: #eee; padding: 20px; margin: 0; }
h1 { margin: 0 0 8px 0; font-size: 24px; color: #8ec7ff; }
.time { color: #aaa; margin-bottom: 20px; font-size: 14px; }

/* Disclaimer Box */
.disclaimer { 
    background: #1c2a45; 
    border-left: 4px solid #facc15; 
    padding: 10px 15px; 
    margin-bottom: 20px; 
    color: #cbd5e1; 
    font-size: 0.9em; 
    line-height: 1.4;
}

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (min-width: 1400px) { .grid { grid-template-columns: repeat(4, 1fr); } }

.card { background: #111b2e; border-radius: 10px; padding: 20px; box-shadow: 0 0 12px rgba(0,0,0,0.35); border: 1px solid #1c2a45; }
.card-title { font-size: 16px; color: #8ec7ff; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; }
.main-value { font-size: 56px; font-weight: 700; line-height: 1.1; margin: 10px 0; color: #fff; }
.unit { font-size: 24px; color: #888; font-weight: 400; }

.sub-readings { margin-top: 15px; border-top: 1px solid #2a3b55; padding-top: 10px; }
.reading-row { display: flex; justify-content: space-between; align-items: center; padding: 6px; border-radius: 4px; cursor: pointer; color: #ddd; font-size: 14px; margin-bottom: 4px;}
.reading-row:hover { background: #1c2a45; }

/* Visual Indicators */
.click-icon { color: #475569; font-weight: bold; margin-left: 8px; font-size: 1.2em; line-height: 1; transition: color 0.2s; }
.reading-row:hover .click-icon { color: #8ec7ff; }

.trend-up { color: #ef4444; font-weight: bold; font-size: 1.1em; }
.trend-down { color: #3b82f6; font-weight: bold; font-size: 1.1em; }

.src-id { color: #ffffff; font-weight: bold; }
.hl-wrap { font-size: 0.9em; color: #777; margin-left: 6px; }
.hi { color: #ff6b6b; font-weight: bold; }
.lo { color: #4dabf7; font-weight: bold; }
.sub-detail { font-size: 11px; color: #889bb5; margin-left: 28px; margin-bottom: 8px; }

.extra-table { display: none; background: #162238; border-radius: 6px; padding: 10px; margin: 10px 0; font-size: 13px; border: 1px solid #2a3b55; }
.et-row { display: flex; justify-content: space-between; margin-bottom: 4px; border-bottom: 1px solid #23304a; padding-bottom: 2px;}
.et-row:last-child { border: none; margin: 0; }
.et-label { color: #8ec7ff; }
.et-val { color: #fff; font-weight: bold; }

.chart-container { display: none; margin-top: 15px; padding-top: 10px; border-top: 1px dashed #2a3b55; width: 100%; }
.chart-controls { display: flex; justify-content: flex-end; margin-bottom: 10px; gap: 5px; flex-wrap: wrap; }
.chart-btn { background: #1c2a45; border: 1px solid #2a3b55; color: #8ec7ff; padding: 4px 8px; font-size: 11px; cursor: pointer; border-radius: 4px; text-transform: uppercase; min-width: 50px; text-align: center;}
.chart-btn:hover, .chart-btn.active { background: #3f6a8a; color: white; }
.chart-canvas-wrapper { height: 200px; position: relative; }

/* Badges */
.badge-rain { background: #ef4444; color: white; padding: 2px 6px; border-radius: 8px; font-size: 0.75em; font-weight: bold; animation: pulse 2s infinite; margin-left: 5px; }
.badge-danger { background: #ef4444; color: white; padding: 2px 6px; border-radius: 4px; font-size: 0.75em; font-weight: bold; margin-left: 6px; animation: pulse 2s infinite; }
.dur-lbl { color: #a29bfe; font-size: 0.9em; margin-left: 6px; }

/* Fire Weather Badges */
.badge-fire-low { background: #10b981; color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 0.75em; font-weight: bold; margin-left: 6px; }
.badge-fire-mod { background: #f59e0b; color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 0.75em; font-weight: bold; margin-left: 6px; }
.badge-fire-high { background: #f97316; color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 0.75em; font-weight: bold; margin-left: 6px; }
.badge-fire-vhigh { background: #ef4444; color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 0.75em; font-weight: bold; margin-left: 6px; animation: pulse 2s infinite; }
.badge-fire-extreme { background: #7f1d1d; color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 0.75em; font-weight: bold; margin-left: 6px; animation: pulse 1s infinite; border: 1px solid #ff6b6b; }

@keyframes pulse { 0% {opacity:1;} 50% {opacity:0.6;} 100% {opacity:1;} }

.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); z-index: 1000; align-items: center; justify-content: center; }
.modal-content { background: #111b2e; padding: 20px; border-radius: 8px; width: 90%; max-width: 1200px; height: 80vh; border: 1px solid #2a3b55; position: relative; display: flex; flex-direction: column; }
.modal-header { display: flex; justify-content: space-between; margin-bottom: 10px; border-bottom: 1px solid #2a3b55; padding-bottom: 10px; }
.modal-close { background: #ff6b6b; border: none; color: white; padding: 5px 10px; cursor: pointer; border-radius: 4px; font-weight: bold; }
.modal-canvas-wrapper { flex-grow: 1; position: relative; width: 100%; }