:root{color-scheme:dark;--bg:#080e1b;--panel:#101a2c;--panel2:#0c1526;--line:rgba(151,170,203,.13);--text:#edf3ff;--muted:#8d9bb4;--blue:#75a7ff;--green:#31d6a1;--red:#ff6f7f;--amber:#ffc46b;--radius:15px}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{min-height:100%;background:var(--bg)}
body{margin:0;background:radial-gradient(ellipse at 12% -15%,rgba(43,95,172,.17),transparent 42%),radial-gradient(ellipse at 100% 0,rgba(26,130,113,.09),transparent 30%),var(--bg);color:var(--text);font:14px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow-x:hidden}
.shell{min-height:100vh}

/* ===== Topbar — ringkas, mobile-first ===== */
.topbar{min-height:56px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 14px;background:rgba(8,14,27,.82);backdrop-filter:blur(16px);position:sticky;top:0;z-index:5;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:10px;min-width:0}
.brand-mark{width:38px;height:38px;min-width:38px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(145deg,#4e86e9,#2450a7);color:white;font-weight:900;font-size:20px;box-shadow:0 8px 28px rgba(55,111,213,.25);font-style:italic}
.brand-mark.small{width:34px;height:34px;min-width:34px;border-radius:11px;font-size:18px}
.brand-name{font-size:11px;letter-spacing:.1em;font-weight:850;white-space:nowrap}
.brand-name span{color:var(--blue)}
.brand-sub{font-size:8px;letter-spacing:.14em;color:var(--muted);margin-top:2px}
.top-actions{display:flex;align-items:center;gap:8px}
.live-pill{height:28px;padding:0 10px;border:1px solid rgba(49,214,161,.2);border-radius:99px;display:flex;align-items:center;gap:7px;color:#8ce7c7;font-size:9px;font-weight:800;letter-spacing:.1em;white-space:nowrap}
.pulse,.status-dot{width:7px;height:7px;min-width:7px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px rgba(49,214,161,.1)}
.clock{font-variant-numeric:tabular-nums;color:#becbe0;font-size:12px}
.logout-btn{border:1px solid var(--line);background:transparent;color:#c5d2e8;padding:9px 12px;border-radius:10px;font:inherit;font-size:12px;cursor:pointer;min-height:40px}
.logout-btn:hover{border-color:rgba(117,167,255,.6);color:white}

/* ===== Content — satu kolom vertikal ===== */
.content{max-width:640px;margin:0 auto;padding:16px 14px 26px;width:100%}
.hero{display:flex;flex-direction:column;align-items:flex-start;margin:2px 0 16px;gap:12px}
.eyebrow{color:#7896c2;font-size:10px;font-weight:800;letter-spacing:.15em}
.divider-dot{padding:0 5px;color:#4d6284}
.hero h1{font-size:24px;letter-spacing:-.03em;margin:6px 0 2px;line-height:1.2;overflow-wrap:anywhere}
.muted{color:var(--muted);margin:0;font-size:12px}
.health-box{width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:13px;background:rgba(16,26,44,.72);display:flex;flex-direction:column;gap:2px}
.health-label{font-size:9px;color:var(--muted);letter-spacing:.13em;font-weight:800}
.health-state{font-size:17px;letter-spacing:.08em;color:var(--green)}
.health-state.warning{color:var(--amber)}
.health-state.critical{color:var(--red)}
.health-box small{font-size:10px;color:var(--muted)}

/* ===== Metric cards — 2 kolom di HP ===== */
.metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}
.metric-card,.panel{background:linear-gradient(145deg,rgba(17,28,47,.96),rgba(12,21,38,.96));border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 10px 30px rgba(0,0,0,.10)}
.metric-card{padding:14px 14px 12px;min-height:0}
.metric-head{display:flex;align-items:center;justify-content:space-between;color:#9aaac4;font-size:9px;letter-spacing:.11em;font-weight:800}
.metric-icon{font-size:16px;color:#78a8f9}
.metric-value{display:flex;align-items:baseline;gap:4px;margin:8px 0 10px}
.metric-value strong{font-size:27px;line-height:1;letter-spacing:-.04em;font-weight:750;font-variant-numeric:tabular-nums}
.metric-value>span{font-size:12px;color:var(--muted)}
.progress{height:5px;border-radius:20px;background:#23314a;overflow:hidden}
.progress i{height:100%;display:block;width:0;border-radius:20px;background:linear-gradient(90deg,#4f8ce8,#70b9ff);transition:width .55s ease}
.progress i.high{background:linear-gradient(90deg,#e4a346,#ff687b)}
.metric-foot{display:flex;flex-direction:column;gap:2px;color:var(--muted);font-size:9px;margin-top:8px}
.uptime-value{font-size:19px;letter-spacing:-.03em;font-weight:750;margin:9px 0 10px;font-variant-numeric:tabular-nums}

/* ===== Panels — full width, stack vertikal ===== */
.panel{padding:15px 14px;margin-bottom:12px;min-width:0;width:100%}
.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px}
.panel-head h2{font-size:14px;letter-spacing:-.01em;margin:0 0 3px}
.panel-head p{color:var(--muted);font-size:10px;margin:0}
.live-mini,.count-tag{font-size:9px;letter-spacing:.08em;font-weight:800;color:#93a5c1;border:1px solid var(--line);border-radius:50px;padding:5px 8px;white-space:nowrap}
.live-mini{color:#7ee3be;border-color:rgba(49,214,161,.2)}
.live-mini i{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--green);margin-right:5px;vertical-align:1px}

/* ===== Charts — memenuhi lebar layar, sentuh ===== */
.chart-wrap{position:relative;width:100%}
canvas{display:block;width:100%;margin-top:6px;touch-action:pan-y}
.chart-skeleton{position:relative;height:170px;border-radius:10px;background:linear-gradient(100deg,rgba(148,163,184,.05) 30%,rgba(148,163,184,.12) 50%,rgba(148,163,184,.05) 70%);background-size:200% 100%;animation:shimmer 1.4s linear infinite;display:grid;place-items:center;color:var(--muted);font-size:11px}
.chart-skeleton.hidden{display:none}
@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
.chart-legend{display:flex;gap:14px;font-size:10px;color:var(--muted);margin:0 0 2px}
.chart-legend i{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px}
.legend-cpu{background:#75a7ff}
.legend-ram{background:#31d6a1}
.chart-axis{display:flex;justify-content:space-between;color:#63738e;font-size:9px;margin-top:2px}
.traffic-stats{display:flex;gap:22px;margin:2px 0 4px}
.traffic-stats div{display:flex;flex-direction:column;gap:2px}
.traffic-stats small{font-size:9px;color:var(--muted);letter-spacing:.1em}
.traffic-stats strong{font-size:16px;font-weight:750;font-variant-numeric:tabular-nums}
.traffic-total{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;margin-top:4px}
.traffic-total b{color:#cfdaec;font-weight:650}

/* ===== Lists & tables — vertikal, tanpa scroll horizontal ===== */
.disk-list{display:flex;flex-direction:column;gap:13px}
.disk-top,.disk-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}
.disk-top{margin-bottom:7px}
.disk-top div{display:flex;flex-direction:column;min-width:0}
.disk-top b{font-size:12px;overflow-wrap:anywhere}
.disk-top small{color:var(--muted);font-size:9px;overflow-wrap:anywhere}
.disk-top strong{font-size:12px;font-variant-numeric:tabular-nums}
.disk-bottom{color:var(--muted);font-size:9px;margin-top:6px;flex-wrap:wrap}
.info-list{display:flex;flex-direction:column}
.info-list div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid rgba(151,170,203,.08);font-size:11px}
.info-list div:last-child{border-bottom:0}
.info-list span{color:var(--muted)}
.info-list b{text-align:right;font-weight:600;max-width:60%;overflow-wrap:anywhere}
.table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:10px}
th{text-align:left;color:#788ba9;font-size:9px;letter-spacing:.09em;font-weight:800;padding:9px 10px;border-bottom:1px solid var(--line)}
td{padding:10px;border-bottom:1px solid rgba(151,170,203,.08);color:#c1cde0}
tbody tr:last-child td{border-bottom:0}
td b{color:#e5edfa;font-weight:650}
.ip-cell{white-space:normal;min-width:110px;overflow-wrap:anywhere}
.state{font-size:9px;font-weight:800;letter-spacing:.05em;padding:4px 7px;border-radius:6px;display:inline-block;max-width:180px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.state.up{color:#6fe0b8;background:rgba(49,214,161,.1)}
.state.down{color:#ff8996;background:rgba(255,111,127,.1)}
.state.unknown{color:#a6b3c8;background:rgba(148,163,184,.1)}
.service-list,.docker-list{display:flex;flex-direction:column;gap:8px}
.service-item{display:flex;align-items:center;gap:9px;padding:11px 12px;border:1px solid rgba(151,170,203,.09);background:rgba(4,10,20,.18);border-radius:10px;min-height:44px}
.service-item>b{font-size:12px;flex:1;overflow-wrap:anywhere}
.service-light{width:7px;height:7px;min-width:7px;border-radius:50%;background:#8290a7}
.service-light.up{background:var(--green);box-shadow:0 0 0 4px rgba(49,214,161,.08)}
.service-light.down{background:var(--red)}
.service-light.unknown{background:#9aa8bb}
.docker-item{display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid rgba(151,170,203,.09);border-radius:10px}
.docker-main{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.docker-main b{font-size:12px;overflow-wrap:anywhere}
.docker-main small{color:var(--muted);font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.empty{color:#7d8da8;text-align:center;padding:17px 9px;font-size:11px}
.footer{display:flex;flex-direction:column;gap:5px;color:#6f809c;font-size:9px;letter-spacing:.05em;padding:18px 3px 0}
.footer i{font-style:normal;padding:0 5px;color:#435574}
.footer b.good{color:var(--green)}
.footer b.bad{color:var(--red)}
.toast{position:fixed;bottom:16px;left:14px;right:14px;max-width:400px;margin:0 auto;padding:12px 15px;background:#1c2940;border:1px solid rgba(255,196,107,.3);border-radius:10px;color:#e7edf8;font-size:12px;box-shadow:0 15px 40px rgba(0,0,0,.3);opacity:0;transform:translateY(8px);pointer-events:none;transition:.2s;z-index:10}
.toast.show{opacity:1;transform:translateY(0)}

/* ===== Login ===== */
.login-body{min-height:100vh;display:grid;place-items:center;padding:20px}
.login-card{width:min(100%,390px);padding:30px 24px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(145deg,rgba(17,28,47,.98),rgba(10,18,33,.98));box-shadow:0 25px 80px rgba(0,0,0,.35)}
.login-card .brand-mark{margin-bottom:20px}
.login-card .eyebrow{font-size:9px}
.login-card h1{font-size:26px;letter-spacing:-.04em;margin:6px 0}
.login-card>p{margin:0 0 22px}
.login-card form{display:flex;flex-direction:column;gap:9px}
.login-card label{color:#b7c5dc;font-size:11px;font-weight:650;margin-top:5px}
.login-card input{width:100%;padding:13px 14px;border:1px solid rgba(151,170,203,.2);border-radius:10px;background:#0a1426;color:white;outline:none;font:inherit;font-size:16px;min-height:48px}
.login-card input:focus{border-color:#5d93eb;box-shadow:0 0 0 3px rgba(93,147,235,.12)}
.primary-btn{border:0;border-radius:10px;padding:14px 15px;margin-top:12px;background:linear-gradient(100deg,#3d74d4,#568fef);color:white;font:inherit;font-size:13px;font-weight:800;cursor:pointer;box-shadow:0 8px 22px rgba(61,116,212,.2);min-height:48px}
.primary-btn span{float:right;font-size:17px;line-height:14px}
.login-foot{display:flex;align-items:center;gap:9px;margin-top:21px;padding-top:16px;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}

/* ===== Layar lebih lebar — tetap rapi, bukan desktop padat ===== */
@media(min-width:760px){
  .content{max-width:1080px;padding:28px 24px 30px}
  .topbar{padding:10px 24px;min-height:64px}
  .hero h1{font-size:28px}
  .metric-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
  .metric-card{padding:17px 18px 14px}
  .metric-value strong{font-size:30px}
  .split-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
  .split-grid .panel{margin-bottom:12px}
  .clock{display:inline}
}
@media(min-width:1080px){
  .content{max-width:1240px}
  .charts-grid{grid-template-columns:1.15fr .85fr}
}
@media(max-width:759px){
  .clock{display:none}
}
