*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Poppins',sans-serif;
    background:#081018;
    color:#fff;
    overflow-x:hidden;
}

/* =========================
BACKGROUND
========================= */

.main-bg{
    position:fixed;
    inset:0;
    z-index:-2;
    background:
    linear-gradient(rgba(2,10,20,.45),rgba(2,10,20,.72)),
    url('https://images.unsplash.com/photo-1518509562904-e7ef99cdcc86?q=80&w=2070&auto=format&fit=crop');
    background-size:cover;
    background-position:center;
}

/* =========================
TOPBAR
========================= */

.topbar{
    width:100%;
    height:70px;
    background:rgba(0,0,0,.35);
    backdrop-filter:blur(12px);
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 25px;
    border-bottom:1px solid rgba(255,255,255,.08);
    position:sticky;
    top:0;
    z-index:999;
}

.top-left{
    display:flex;
    align-items:center;
    gap:18px;
}

/* =========================
MENU
========================= */

.menu-wrapper{
    position:relative;
}

.menu-btn{
    width:45px;
    height:45px;
    border-radius:14px;
    background:rgba(255,255,255,.08);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:22px;
    cursor:pointer;
    transition:.3s;
}

.menu-btn:hover{
    background:rgba(255,255,255,.15);
}

/* =========================
DROPDOWN
========================= */

.dropdown-menu{
    position:absolute;
    top:58px;
    left:0;
    width:210px;
    background:rgba(0,20,35,.92);
    backdrop-filter:blur(15px);
    border-radius:18px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 10px 30px rgba(0,0,0,.35);
    display:none;
    flex-direction:column;
    z-index:999;
}

.dropdown-menu a{
    padding:16px 18px;
    color:#fff;
    text-decoration:none;
    font-size:15px;
    transition:.25s;
    border-bottom:1px solid rgba(255,255,255,.05);
}

.dropdown-menu a:last-child{
    border-bottom:none;
}

.dropdown-menu a:hover{
    background:rgba(255,255,255,.08);
    padding-left:24px;
}

/* SHOW MENU */
.dropdown-menu.show{
    display:flex;
}

.date{
    font-size:18px;
    font-weight:600;
}

.top-right{
    color:#dcefff;
}

/* =========================
HEADER
========================= */

.hero{
    padding:45px 40px 25px;
}

.hero span{
    font-size:28px;
    font-weight:300;
}

.hero h1{
    font-size:72px;
    line-height:75px;
    font-weight:800;
}

.hero p{
    margin-top:10px;
    color:#dcefff;
    font-size:20px;
}

/* =========================
GRID FIXED 4 COLUMNS
========================= */

.card-grid{
    width:100%;
    padding:10px 40px 40px;
    display:grid;
    /* 4 cards per row */
    grid-template-columns:repeat(4,1fr);
    gap:18px;
}

/* =========================
CARD
========================= */

.weather-card{
    background:rgba(0,25,40,.38);
    backdrop-filter:blur(14px);
    border:1px solid rgba(255,255,255,.10);
    border-radius:24px;
    padding:18px;
    box-shadow:
    0 8px 25px rgba(0,0,0,.25),
    inset 0 1px 1px rgba(255,255,255,.08);
    transition:.35s;
}

.weather-card:hover{
    transform:translateY(-4px);
}

.card-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    margin-bottom:14px;
}

.location{
    font-size:20px;
    font-weight:700;
}

.update-time{
    margin-top:3px;
    font-size:11px;
    color:#dcefff;
}

.weather-icon{
    font-size:40px;
}

/* =========================
METRICS
========================= */

.metrics{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.metric{
    background:rgba(255,255,255,.05);
    border-radius:14px;
    padding:10px;
}

.metric-title{
    font-size:11px;
    color:#dcefff;
    margin-bottom:2px;
}

.metric-value{
    font-size:17px;
    font-weight:700;
}

/* =========================
WARNING LEVELS
========================= */

.section{
    padding:10px 40px 40px;
}

.section-title{
    font-size:32px;
    margin-bottom:22px;
}

.warning-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:18px;
}

.warning-grid-rain {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;    
}

.warning-card{
    border-radius:22px;
    padding:22px;
    border:1px solid rgba(255,255,255,.10);
    backdrop-filter:blur(10px);
}

.safest {
    background: #E6E6E6;
    color: black;
}

.safe{
    background: #FFFF00;
    color: black;
}

.caution{
    background: #FFCC00;
    color: black;
}

.extreme{
    background: #FF6600;
}

.danger{
    background: #CC0001;
}

.safe-rain{
    background: #2196F3;
    color: white;
}

.caution-rain{
    background: #ffeb3b;
    color: black;
}

.extreme-rain{
    background: #ff9800;
}

.danger-rain{
    background: red;
}

.warning-card h3{
    margin-bottom:12px;
    font-size:24px;
}

/* =========================
MAP
========================= */

.map-container{
    width:100%;
    height:520px;
    overflow:hidden;
    border-radius:28px;
    border:1px solid rgba(255,255,255,.10);
    box-shadow:0 10px 30px rgba(0,0,0,.3);
}

#map {
    width:100%;
    height:100%;
    border:none;
}

/*report*/
.excel-container {
    width: 100%;
    padding: 10px 40px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.excel-card {
    background: rgba(0, 25, 40, .38);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .25), inset 0 1px 1px rgba(255, 255, 255, .08);
    transition: .35s;
}

.excel-title {
    font-size: 20px;
    font-weight: 700;
}

.excel-flex {
    display: flex;
    flex-direction: column;
}

.excel-flex a {
    text-decoration: none;
    text-align: center;
    color: #FFFFFF;
    background: #0EA5E9;
    margin-top: 2%;
    border-radius: 8px;
}

.excel-flex a:hover {
    transform: scale(1.05);
    background-color: #0284C7;
}

/* =========================
FOOTER
========================= */

.footer{
    text-align:center;
    padding:25px;
    color:#dcefff;
    font-size:14px;
}


/*chart*/
.chart-section{
    padding:0 40px 40px;
}
.chart-title{
    font-size:34px;
    margin-bottom:18px;
}

.chart-card{
    background:rgba(0,25,40,.38);
    border:1px solid rgba(255,255,255,.08);
    backdrop-filter:blur(15px);
    border-radius:28px;
    padding:25px;
    margin-bottom:25px;
    box-shadow: 0 10px 25px rgba(0,0,0,.28);
}
.chart-card h3{
    margin-bottom:18px;
    font-size:22px;
}
canvas{
    width:100% !important;
    height:380px !important;
}

/* =========================
RESPONSIVE
========================= */

/* tablet */
@media(max-width:1200px){

    .card-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .warning-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .warning-grid-rain{
        grid-template-columns:repeat(2,1fr);
    }

}

/* mobile */
@media(max-width:700px){
    .hero{
        padding:30px 20px;
    }

    .hero h1{
        font-size:48px;
        line-height:50px;
    }

    .hero span{
        font-size:22px;
    }

    .card-grid{
        padding:10px 20px 30px;
        grid-template-columns:1fr;
    }

    .section{
        padding:10px 20px 30px;
    }

    .warning-grid{
        grid-template-columns:1fr;
    }

    .warning-grid-rain {
        grid-template-columns: 1fr;
    }
}