/* ==========================================
   JETTY M&E OPERATIONS - DARK THEME
========================================== */

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

body{
    background:#0b1117;
    color:#ffffff;
    font-family:Segoe UI,Arial,sans-serif;
}

.dashboard-box{
    width:95%;
    max-width:1400px;
    margin:20px auto;
}

h1{
    text-align:center;
    color:#ffffff;
    font-size:42px;
    margin-bottom:10px;
}

#lastUpdate{
    color:#4ade80;
    font-weight:bold;
}

#hmData{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:20px;
    margin:30px 0;
}

.card{
    width:230px;
    background:#f7f9fb;
    border-radius:15px;
    border-left:5px solid #2ecc71;
    padding:18px;
    color:#1f2937;
    box-shadow:0 5px 20px rgba(0,0,0,.35);
    transition:.3s;
    text-align:center;
}

.card h2{
    color:#009966;
    font-size:32px;
    font-weight:bold;
    margin-bottom:18px;
}

.card p{
    color:#1f2937;
    font-size:19px;
    font-weight:600;
    margin:8px 0;
    line-height:1.6;
}

.card span{
    color:#000;
    font-weight:700;
}

#grafik,
#grafikHarian,
#grafikMingguan{
    background:#18232d;
    border-radius:15px;
    padding:20px;
    margin-top:30px;
    box-shadow:0 5px 20px rgba(0,0,0,.4);
}

#grafik h2,
#grafikHarian h2,
#grafikMingguan h2{
    color:#ffffff;
    margin-bottom:20px;
}

#pilihUnitBox{
    text-align:center;
    margin:25px 0;
    color:#ffffff;
}

#pilihUnit{
    background:#243240;
    color:#ffffff;
    padding:8px 12px;
    border:1px solid #4ade80;
    border-radius:6px;
}

.btn-back{
    display:inline-block;
    padding:10px 20px;
    background:#1b2633;
    color:#56d364;
    border:1px solid #2ecc71;
    border-radius:8px;
    text-decoration:none;
    font-weight:600;
    box-shadow:0 0 10px rgba(46,204,113,.3);
    transition:.3s;
}

.btn-back:hover{
    background:#2ecc71;
    color:#fff;
}

.logo{
    text-align:center;
    margin:20px 0;
}

.logo img{
    display:block;
    width:120px;
    margin:0 auto;
}
.menu{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:18px;
    margin-top:20px;
}

.menu button{
    width:340px;
    padding:18px;
    font-size:20px;
    font-weight:bold;
    border:none;
    border-radius:12px;
    cursor:pointer;
    background:#1f2937;
    color:white;
    transition:0.3s;
    box-shadow:0 5px 15px rgba(0,0,0,.35);
}

.menu button:hover{
    background:#16a34a;
    transform:scale(1.03);
}

.logo img{
    width:150px;
}
/* =====================================================
   KPI CHARTS
===================================================== */
.kpi-charts {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.chart-card {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
}

.chart-card canvas {
    width: 100% !important;
    height: 180px !important;
}
/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .kpi-charts {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .chart-card {
        padding: 12px;
    }

    .chart-card h3 {
        font-size: 16px;
    }

    .chart-card canvas {
        height: 260px !important;
    }

}
.back-button {
    display: block;
    width: 220px;
    margin: 30px auto;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: #1976d2;
    color: white;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.back-button:hover {
    background: #125ca8;
}