body{
    background:#0b1220;
    color:#e5e7eb;
    font-family:Arial;
    margin:0;
}

header{
    background:#020617;
    padding:15px;
    text-align:center;
    font-size:22px;
    font-weight:bold;
}
.header{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:15px;
    background:#020617;
    padding:12px;
}
.value {
    font-weight: bold;
    font-size: 16px;
    color: #e5e7eb; /* abu terang, konsisten dengan teks utama */
    margin-top: 8px;
}
.logo{
    height:40px;
}

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:20px;
    padding:25px;
}

.panel{
    background:#111827;
    border-radius:12px;
    padding:20px;
    text-align:center;
    box-shadow:0 0 12px rgba(0,0,0,0.6);

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    position:relative; /* agar status koneksi bisa di pojok kanan atas */
}

.panel h3{
    margin-bottom:10px;
    font-weight:600;
}

.gauge{
    width:260px;
    height:200px;
    margin:auto;
}

.status{
    font-weight:bold;
    margin-top:10px;
    font-size:14px;
}
.status {
    font-weight: bold;
    margin-top: 10px;
    font-size: 14px;
}

/* Warna status sensor */
.status.normal {
    color: #22c55e; /* hijau untuk Normal */
}
.status.basa,
.status.netral {
    color: #3b82f6; /* biru untuk Basa/Netral */
}
.status.asam,
.status.panas {
    color: #ef4444; /* merah untuk Asam/Panas */
}
.status.rendah,
.status.dingin {
    color: #facc15; /* kuning untuk Rendah/Dingin */
}
.status.tinggi {
    color: #9333ea; /* ungu untuk Tinggi */
}
.status.offline {
    color: #9ca3af; /* abu untuk OFFLINE */
}
.status-conn {
    position: absolute;
    top:12px;
    right:15px;
    font-weight:bold;
    font-size:14px;
}

.online{
    color:#22c55e;
}

.alarm{
    color:#ef4444;
    animation:blink 1s infinite;
}

.status-conn.online { color:#22c55e; }
.status-conn.alarm { color:#ef4444; animation:blink 1s infinite; }

@keyframes blink{
    50%{opacity:0.2}
}