/* =========================
RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#f1f5f9;
    min-height:100vh;
    color:#1e293b;
}
.header{
    margin-bottom:10px;
}

/* =========================
MENU BUTTON
========================= */

#menuBtn{
    position:fixed;
    top:15px;
    left:15px;
    z-index:2000;
    border:none;
    background:#38bdf8;
    color:#0f172a;
    padding:12px 16px;
    border-radius:10px;
    font-size:22px;
    cursor:pointer;
}


/* =========================
SIDEBAR AUTO HOVER
========================= */

.sidebar{
    position:fixed;
    top:0;
    left:-250px;
    width:250px;
    height:100vh;

    background:
    linear-gradient(
        180deg,
        #071a3d,
        #0b4db6
    );

    transition:0.3s;
    z-index:1000;

    box-shadow:
    3px 0 20px rgba(0,0,0,.2);
}

.sidebar h2{
    text-align:center;
    padding:30px 20px;
    color:white;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.sidebar a{
    display:block;
    padding:18px 25px;
    color:white;
    text-decoration:none;
    transition:.3s;
}

.sidebar a:hover{
    background:#334155;
}

.hover-zone{
    position:fixed;
    top:0;
    left:0;
    width:15px;
    height:100vh;
    z-index:999;
}

.hover-zone:hover + .sidebar,
.sidebar:hover{
    left:0;
}

/* =========================
MAIN CONTENT
========================= */

.main-content{
    padding:20px;
}
    
/* =========================
HEADER
========================= */

.header{
    background:linear-gradient(
        135deg,
        #1565c0,
        #1976d2,
        #1e88e5
    );

    color:white;
    text-align:center;
    padding:35px;
    border-radius:20px;
    font-size:28px;
    font-weight:bold;

    box-shadow:
    0 5px 20px rgba(33,150,243,.25);
}
/* =========================
CLOCK
========================= */

.clock{

    width:220px;

    margin:20px auto;

    text-align:center;

    padding:12px;

    border-radius:15px;

    background:white;

    color:#2563eb;

    font-size:24px;

    font-weight:bold;

    border:1px solid #dbeafe;

    color:#1e293b;

    border:none;

    box-shadow:
    0 2px 12px rgba(0,0,0,.08);
}

.large-card{
    background:rgba(255,255,255,.95);

    color:#1e293b;

    border-left:6px solid #29b6f6;

    border-radius:20px;

    padding:25px;

    box-shadow:
    0 10px 25px rgba(0,0,0,.12);
}

/* =========================
DASHBOARD
========================= */
.main-content{
    max-width:1600px;
    margin:auto;
    padding:20px;
}
.dashboard-top{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    margin-bottom:20px;
}

.card{
    background:#1e293b;
    border-radius:25px;
    padding:25px;

    border-top:4px solid #38bdf8;
}

.card-dark{
    background:rgba(20,35,60,.95);

    color:white;

    border:1px solid rgba(64,196,255,.25);

    backdrop-filter:blur(8px);

    box-shadow:
    0 10px 25px rgba(0,0,0,.25);
}
.card{
    transition:.3s;
}

.card:hover{
    transform:translateY(-5px);

    box-shadow:
    0 12px 30px rgba(0,0,0,.3);
}

.big-number{
    font-size:70px;
    font-weight:bold;
    color:#40c4ff;
}

/* =========================
BUTTON
========================= */

.btn-on{
    background:#00c853;
    color:white;
    border:none;
    padding:12px 25px;
    border-radius:10px;
    cursor:pointer;
    margin-right:10px;
    font-weight:bold;
    transition:.3s;
}

.btn-off{
    background:#f44336;
    color:white;
    border:none;
    padding:12px 25px;
    border-radius:10px;
    cursor:pointer;
    font-weight:bold;
    transition:.3s;
}

.active-on{
    opacity:1 !important;
}

.active-off{
    opacity:1 !important;
}

.inactive{
    opacity:.35 !important;
}

/* =========================
STATUS
========================= */

.status-item{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:15px;
}

.lampu{
    width:20px;
    height:20px;
    border-radius:50%;
}

.hijau{
    background:#00e676;
    box-shadow:0 0 10px #00e676;
}

.kuning{
    background:#ffb300;
    box-shadow:0 0 10px #ffb300;
}

.merah{
    background:#ff5252;
    box-shadow:0 0 10px #ff5252;
}

/* =========================
LARGE CARD
========================= */

.large-card{
    background:rgba(255,255,255,.95);

    border-left:6px solid #29b6f6;

    border-radius:20px;

    padding:25px;

    box-shadow:
    0 10px 25px rgba(0,0,0,.12);
}
.sub-header{
    color:#475569;

    text-align:center;

    margin-top:10px;
    margin-bottom:25px;

    font-size:15px;
}

/* =========================
TABLE
========================= */

table{
    width:100%;
    border-collapse:collapse;
    margin-top:15px;
}

th{
    background:#2563eb;
    color:white;
    padding:15px;
}
td{
    padding:15px;
    color:#334155;
    border-bottom:1px solid #e2e8f0;
}
/* =========================
   ANIMASI AIR
========================= */

.water-animation{

    text-align:center;
    font-size:30px;
    margin-bottom:15px;

    animation:airTurun 2s infinite ease-in-out;
}

@keyframes airTurun{

    0%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(10px);
    }

    100%{
        transform:translateY(0px);
    }

}
/* =========================
RESPONSIVE
========================= */

@media(max-width:1000px){

    .dashboard-top{
        grid-template-columns:1fr;
    }

}

@media(max-width:768px){

    .header{
        font-size:20px;
    }

    .big-number{
        font-size:50px;
    }
}
#grafikAir{
    max-height:450px;
}
/* =========================
   FAUCET
========================= */

.faucet{

    text-align:center;
    font-size:40px;

    animation:faucetMove 2s infinite;
}

@keyframes faucetMove{

    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(5px);
    }

    100%{
        transform:translateY(0);
    }

}
/* =========================
   STATUS BLINK
========================= */

.status-blink{

    animation:blinkStatus 2s infinite;
}

@keyframes blinkStatus{

    0%{
        opacity:1;
    }

    50%{
        opacity:.5;
    }

    100%{
        opacity:1;
    }

}       
/* =========================
FILTER
========================= */

.filter-box{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.filter-box input{
    padding:12px;
    border:none;
    border-radius:10px;
}

.filter-box button{
    background:#2563eb;
    color:white;
    border:none;
    padding:12px 20px;
    border-radius:10px;
    font-weight:bold;
    cursor:pointer;
}
.filter-box select{

    padding:12px 15px;

    border:1px solid #cbd5e1;

    border-radius:10px;

    background:white;

    color:#1e293b;

    min-width:90px;

}

/* =========================
SUMMARY CARD
========================= */

.summary-cards{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-bottom:20px;
}

.summary-card{
    background:white;

    border-radius:20px;

    padding:25px;

    text-align:center;

    border:none;

    box-shadow:
    0 2px 12px rgba(0,0,0,.08);
}


.summary-card h3{
    color:#64748b;
    margin-bottom:10px;
}

.summary-card h1{
    color:#2563eb;
    font-size:32px;
}

/* =========================
STATUS BADGE
========================= */

.status-badge{
    display:inline-block;
    padding:8px 15px;
    border-radius:20px;
    font-weight:bold;
}

.rendah{
    background:#d1fae5;
    color:#065f46;
}

.sedang{
    background:#fef3c7;
    color:#92400e;
}

.tinggi{
    background:#fee2e2;
    color:#991b1b;
}

@media(max-width:1000px){

    .summary-cards{
        grid-template-columns:1fr;
    }

}

/* =========================
HOVER CARD
========================= */

.summary-card:hover,
.large-card:hover{

    transform:translateY(-3px);

    transition:.3s;

    box-shadow:
    0 8px 25px rgba(0,0,0,.12);
    

}
table{
    text-align:center;
}

th{
    text-align:center;
}

td{
    text-align:center;
}
#grafikAir{
    width:100% !important;
    height:400px !important;
}
@media print {

    body{
        background:white !important;
    }

    .sidebar,
    .hover-zone,
    .header,
    .btn-print{
        display:none !important;
    }

    .invoice-print{

        width:300px;
        margin:auto;

        font-family:'Courier New', monospace;

        border:none !important;
        box-shadow:none !important;

        text-align:left;
    }

    .invoice-print h1,
    .invoice-print h2{
        text-align:center;
    }

}
.info-card{
    border-left:5px solid #2563eb;
}

.status-card{
    padding:20px 25px;
}
.header{
    background:linear-gradient(
        135deg,
        #1565c0,
        #1976d2,
        #1e88e5
    );

    color:white;

    box-shadow:
    0 8px 25px rgba(25,118,210,.25);
}
.info-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.info-item{
    padding:15px;
    background:#f8fafc;
    border-radius:12px;
    border:1px solid #e2e8f0;
    line-height:1.8;
}

.info-item strong{
    color:#2563eb;
}

@media(max-width:768px){

    .info-grid{
        grid-template-columns:1fr;
    }

}

.badge-rendah{
    background:#dcfce7;
    color:#166534;
    padding:6px 12px;
    border-radius:20px;
    font-weight:bold;
}

.badge-sedang{
    background:#fef3c7;
    color:#92400e;
    padding:6px 12px;
    border-radius:20px;
    font-weight:bold;
}

.badge-tinggi{
    background:#fee2e2;
    color:#991b1b;
    padding:6px 12px;
    border-radius:20px;
    font-weight:bold;
}

.badge-rendah{
    background:#dcfce7;
    color:#166534;
    padding:6px 12px;
    border-radius:20px;
    font-weight:bold;
}

.badge-sedang{
    background:#fef3c7;
    color:#92400e;
    padding:6px 12px;
    border-radius:20px;
    font-weight:bold;
}

.badge-tinggi{
    background:#fee2e2;
    color:#991b1b;
    padding:6px 12px;
    border-radius:20px;
    font-weight:bold;
}