:root{
    --bg:#0f172a;
    --panel:#1e293b;
    --panel2:#334155;
    --text:#f8fafc;
    --accent:#38bdf8;
    --success:#22c55e;
}

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

body{
    background:linear-gradient(135deg,#0f172a,#1e3a8a);
    color:var(--text);
    font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;
    min-height:100vh;
    padding:20px;
}

.container{
    max-width:1400px;
    margin:auto;
}

header{
    text-align:center;
    margin-bottom:25px;
}

header h1{
    font-size:2.5rem;
}

header p{
    opacity:.8;
}

.controls{
    display:flex;
    justify-content:center;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:20px;
}

select,button{
    padding:12px 18px;
    border:none;
    border-radius:10px;
    font-size:1rem;
}

button{
    background:var(--accent);
    cursor:pointer;
    color:white;
    font-weight:bold;
}

.grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

.card{
    background:rgba(30,41,59,.95);
    border-radius:16px;
    padding:20px;
    box-shadow:0 8px 20px rgba(0,0,0,.3);
}

.current{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
}

.temp{
    font-size:4rem;
    color:var(--accent);
    font-weight:bold;
}

.details{
    line-height:1.8;
}

.forecast-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
    gap:10px;
}

.day{
    background:var(--panel2);
    border-radius:12px;
    padding:10px;
    text-align:center;
}

.day h4{
    margin-bottom:8px;
}

.chart-container{
    height:350px;
}

.radar iframe{
    width:100%;
    height:600px;
    border:none;
    border-radius:12px;
}

.alert{
    padding:15px;
    margin-bottom:15px;
    border-radius:12px;
    font-weight:600;
    line-height:1.5;
}

.alert.warning{
    background:#dc2626;
    color:white;
}

.alert.watch{
    background:#f59e0b;
    color:black;
}

.alert.advisory{
    background:#2563eb;
    color:white;
}

.no-alerts{
    background:#166534;
    color:white;
    padding:12px;
    border-radius:12px;
    margin-bottom:15px;
}

.hourly-table{
    width:100%;
    border-collapse:collapse;
}

.hourly-table th,
.hourly-table td{
    padding:8px;
    border-bottom:1px solid #475569;
    text-align:center;
}

.loading{
    text-align:center;
    padding:30px;
}

@media(max-width:900px){
    .grid{
        grid-template-columns:1fr;
    }

    .temp{
        font-size:3rem;
    }

    .radar iframe{
        height:450px;
    }
}