:root{
    --primary:#388087;
    --primary-dark:#2f6f75;
    --secondary:#6FB3B8;

    --bg:#eef4f7;
    --card:#ffffff;

    --text:#1f2937;
    --text-light:#6b7280;

    --green:#d8f7e6;
    --green-border:#79d9a6;
    --green-text:#0f766e;

    --red:#fde2e2;
    --red-border:#f6a7a7;
    --red-text:#dc2626;

    --blue:#dfeeff;
    --blue-border:#9ec5ff;
    --blue-text:#2563eb;

    --shadow:
        0 10px 30px rgba(15,23,42,0.06);

    --radius:24px;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family: 'Inter', sans-serif;
    font-weight: 400;

    background:
        radial-gradient(circle at top right,
        rgba(56,128,135,0.10),
        transparent 30%),

        radial-gradient(circle at bottom left,
        rgba(111,179,184,0.12),
        transparent 35%),

        var(--bg);

    color:var(--text);

    overflow-x:hidden;
}

/* NAVBAR */

.navbar{
    position:sticky;
    top:0;
    z-index:999;

    background:
        #388087aa;

    backdrop-filter:blur(18px);

    border-bottom:
        1px solid rgba(0,0,0,0.06);
}

.navbar-content{
    max-width:1450px;
    margin:auto;

    padding:
        1rem 2rem;

    display:flex;
    align-items:center;
    justify-content:space-between;
}

.navbar h1{
    font-size:1.6rem;
    font-weight:800;
    color:var(--bg);
    letter-spacing:-0.5px;
}

.admin-box{
    display:flex;
    align-items:center;
    gap:0.8rem;

    text-decoration:none;

    background:white;

    border:
        1px solid rgba(0,0,0,0.06);

    padding:
        0.7rem 1rem;

    border-radius:18px;

    transition:0.3s;

    box-shadow:
        0 8px 20px rgba(0,0,0,0.04);
}

.admin-box:hover{
    transform:translateY(-3px);
}

.admin-box img{
    width:42px;
    height:42px;

    border-radius:50%;
}

.admin-info{
    display:flex;
    flex-direction:column;
}

.admin-info small{
    color:var(--text-light);
    font-size:0.75rem;
}

.admin-info span{
    color:var(--text);
    font-weight:700;
}

/* CONTAINER */

.dashboard-container{
    max-width:1450px;
    margin:auto;
    padding:2rem;
}

/* HERO */

.hero-panel{
    position:relative;

    min-height:88vh;

    border-radius:36px;

    overflow:hidden;

    background:
        linear-gradient(
            135deg,
            rgba(56, 128, 135, 0.379),
            rgba(111, 179, 184, 0.564)
        ),

        url('../assets/buildingggg.jpg');

    background-size:cover;
    background-position:center;

    display:flex;
    align-items:center;

    padding:4rem;

    box-shadow:
        0 30px 60px rgba(56,128,135,0.18);
}

.hero-panel::before{
    content:'';

    position:absolute;

    width:500px;
    height:500px;

    border-radius:50%;

    background:
        rgba(255,255,255,0.10);

    top:-180px;
    right:-120px;

    filter:blur(40px);
}

.hero-panel::after{
    content:'';

    position:absolute;

    inset:0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.30),
            transparent
        );
}

.hero-content{
    position:relative;
    z-index:2;

    max-width:620px;

    color:white;

    animation:fadeUp 1s ease;
}

.hero-content h1{
    font-size:4.5rem;
    line-height:1;
    font-weight:900;

    margin-bottom:1.4rem;
}

.hero-content p{
    font-size:1.1rem;
    line-height:1.8;

    opacity:0.92;

    margin-bottom:2rem;
}

.hero-stats{
    display:flex;
    gap:1rem;
    flex-wrap:wrap;
}

.hero-stats div{
    min-width:140px;

    background:
        rgba(255,255,255,0.12);

    backdrop-filter:blur(12px);

    border:
        1px solid rgba(255,255,255,0.16);

    padding:
        1rem 1.3rem;

    border-radius:20px;

    transition:0.3s;
}

.hero-stats div:hover{
    transform:translateY(-5px);
}

.hero-stats span{
    display:block;
    font-size:1.7rem;
    font-weight:800;
}

.hero-stats small{
    opacity:0.85;
}

.explore-btn{
    display:inline-flex;
    align-items:center;
    gap:0.7rem;

    margin-top:2rem;

    background:white;

    color:var(--primary);

    text-decoration:none;

    padding:
        1rem 1.5rem;

    border-radius:18px;

    font-weight:700;

    transition:0.3s;
}

.explore-btn:hover{
    transform:translateY(-4px) scale(1.02);
}

/* SECTION */

.monitoring-section{
    margin-top:5rem;
}

.section-title{
    margin-bottom:2rem;
}

.section-title h2{
    font-size:2.7rem;
    font-weight:900;
    color:var(--text);
}

.section-title p{
    color:var(--text-light);
    margin-top:0.5rem;
}

/* CARD */

.card{
    background:rgba(255,255,255,0.75);

    backdrop-filter:blur(16px);

    border:
        1px solid rgba(255,255,255,0.55);

    border-radius:var(--radius);

    padding:2rem;

    box-shadow:var(--shadow);

    margin-bottom:2rem;

    transition:0.3s;
}

.card:hover{
    transform:translateY(-4px);
}

.card-title{
    font-size:1.25rem;
    font-weight:800;

    margin-bottom:1.5rem;
}

/* OCCUPANCY */

.occupancy-content{
    display:grid;
    grid-template-columns:
        380px 1fr;

    gap:2rem;
    align-items:center;
}

.chart-wrapper{
    width:100%;
    max-width:340px;
    margin:auto;
}

.occupancy-stats{
    display:grid;
    grid-template-columns:
        repeat(2,1fr);

    gap:1rem;
}

.stat-card{
    border-radius:22px;

    padding:1.5rem;

    border:2px solid transparent;

    position:relative;

    overflow:hidden;
}

.stat-card::before{
    content:'';

    position:absolute;

    width:120px;
    height:120px;

    border-radius:50%;

    background:
        rgba(255,255,255,0.30);

    top:-50px;
    right:-30px;
}

.stat-occupied{
    background:var(--red);
    border-color:var(--red-border);
}

.stat-available{
    background:var(--green);
    border-color:var(--green-border);
}

.stat-percentage{
    background:var(--blue);
    border-color:var(--blue-border);

    grid-column:1/-1;
}

.stat-label{
    font-size:0.9rem;
    font-weight:700;

    margin-bottom:0.5rem;
}

.stat-value{
    font-size:2.3rem;
    font-weight:900;
}

.stat-occupied .stat-label,
.stat-occupied .stat-value{
    color:var(--red-text);
}

.stat-available .stat-label,
.stat-available .stat-value{
    color:var(--green-text);
}

.stat-percentage .stat-label,
.stat-percentage .stat-value{
    color:var(--blue-text);
}

/* SLOT */

.parking-header{
    display:flex;
    justify-content:space-between;
    align-items:center;

    flex-wrap:wrap;

    gap:1rem;

    margin-bottom:2rem;
}

.parking-legend{
    display:flex;
    gap:1rem;
}

.legend-item{
    display:flex;
    align-items:center;
    gap:0.5rem;

    color:var(--text-light);
}

.legend-dot{
    width:12px;
    height:12px;

    border-radius:50%;
}

.available-dot{
    background:#10b981;
}

.occupied-dot{
    background:#ef4444;
}

.slots-grid{
    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(220px,1fr));

    gap:1.5rem;
}

.slot{
    height:180px;

    border-radius:26px;

    display:flex;
    justify-content:center;
    align-items:center;

    font-size:2rem;
    font-weight:900;

    position:relative;

    overflow:hidden;

    transition:0.35s;
}

.slot:hover{
    transform:
        translateY(-8px)
        scale(1.02);
}

.slot::before{
    content:'';

    position:absolute;

    width:120px;
    height:120px;

    border-radius:50%;

    top:-50px;
    right:-40px;

    background:
        rgba(255,255,255,0.20);
}

.slot.available{
    background:var(--green);
    border:
        2px solid var(--green-border);

    color:var(--green-text);
}

.slot.occupied{
    background:var(--red);
    border:
        2px solid var(--red-border);

    color:var(--red-text);
}

/* FIRE ALERT */

.fire-popup{
    position:fixed;
    inset:0;

    display:none;
    justify-content:center;
    align-items:center;

    background:
        rgba(0,0,0,0.65);

    z-index:9999;

    padding:1rem;
}

.fire-box{
    width:100%;
    max-width:650px;

    background:
        linear-gradient(
            135deg,
            #ef4444,
            #dc2626
        );

    color:white;

    padding:3rem;

    border-radius:30px;

    text-align:center;

    animation:pop 0.35s ease;
}

.fire-box h1{
    font-size:3rem;
    margin-bottom:1rem;
}

.fire-box p{
    font-size:1.1rem;
    opacity:0.9;
}

.fire-box button{
    margin-top:2rem;

    border:none;

    background:white;

    color:#dc2626;

    font-weight:800;

    padding:
        1rem 1.6rem;

    border-radius:16px;

    cursor:pointer;
}

/* FOOTER */

.footer{
    margin-top:5rem;

    background:
        linear-gradient(
            135deg,
            #2f6f75e7,
            #388087d3
        );

    color:white;

    padding:
        4rem 2rem 2rem;

    border-radius:
        40px 40px 0 0;
}

.footer-content{
    max-width:1450px;
    margin:auto;

    display:flex;
    justify-content:space-between;

    flex-wrap:wrap;

    gap:3rem;
}

.footer-left{
    max-width:450px;
}

.footer-left h2{
    font-size:2.4rem;
    margin-bottom:1rem;
}

.footer-left p{
    line-height:1.8;
    opacity:0.85;
}

.footer-right{
    display:flex;
    flex-direction:column;
    gap:1.5rem;
}

.footer-label{
    display:block;

    margin-bottom:0.5rem;

    font-size:0.8rem;
    font-weight:800;

    letter-spacing:1px;

    opacity:0.7;
}

.footer-bottom{
    max-width:1450px;
    margin:auto;

    margin-top:3rem;
    padding-top:1.5rem;

    border-top:
        1px solid rgba(255,255,255,0.15);

    text-align:center;

    opacity:0.7;
}

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(50px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes pop{
    from{
        transform:scale(0.8);
        opacity:0;
    }

    to{
        transform:scale(1);
        opacity:1;
    }
}

@media(max-width:900px){

    .occupancy-content{
        grid-template-columns:1fr;
    }

    .hero-content h1{
        font-size:3rem;
    }
}

@media(max-width:768px){

    .dashboard-container{
        padding:1rem;
    }

    .navbar-content{
        padding:1rem;
    }

    .hero-panel{
        min-height:620px;
        padding:2rem;
        border-radius:28px;
    }

    .hero-content h1{
        font-size:2.5rem;
    }

    .hero-content p{
        font-size:0.95rem;
    }

    .hero-stats{
        width:100%;
    }

    .hero-stats div{
        flex:1;
        min-width:unset;
    }

    .section-title h2{
        font-size:2rem;
    }

    .occupancy-stats{
        grid-template-columns:1fr;
    }

    .stat-percentage{
        grid-column:auto;
    }

    .slots-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .slot{
        height:130px;
        font-size:1.4rem;
    }

    .fire-box{
        padding:2rem;
    }

    .fire-box h1{
        font-size:2rem;
    }

    .footer{
        border-radius:30px 30px 0 0;
    }
}