:root {
  --bg: #050b18;
  --panel: #0b1730;
  --panel-2: #101f3d;
  --border: #1d3b6b;
  --cyan: #34e5ff;
  --purple: #a26bff;
  --text: #e6f1ff;
  --muted: #8aa4c8;
  --green: #5ad35a;
  --orange: #ff9f1c;
  --red: #ff3b5c;
  --yellow: #ffd166;
}
html, body { height: 100%; }
body {
  background: radial-gradient(1200px 600px at 20% -10%, #14305f 0%, var(--bg) 55%);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 14px;
}
a { color: var(--cyan); text-decoration: none; }
.navbar { background: rgba(5, 11, 24, .92); border-bottom: 1px solid var(--border); backdrop-filter: blur(6px); }
.navbar .brand { font-weight: 800; letter-spacing: .04em; color: #fff; }
.navbar .brand span { color: var(--cyan); }
.navbar .nav-link { color: var(--muted); font-weight: 600; }
.navbar .nav-link.active, .navbar .nav-link:hover { color: #fff; }
.navbar .nav-link.active { border-bottom: 2px solid var(--cyan); }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); color: var(--cyan); background: var(--panel-2); }

.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 0 0 1px rgba(52,229,255,.06), 0 10px 30px rgba(0,0,0,.35); }
.panel-head { padding: .6rem 1rem; border-bottom: 1px solid var(--border); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; color: var(--cyan); display: flex; align-items: center; justify-content: space-between; }
.panel-body { padding: 1rem; }

.kpi { border-radius: 12px; padding: .9rem 1rem; color: #fff; position: relative; overflow: hidden; }
.kpi .label { font-weight: 700; font-size: .95rem; }
.kpi .sub { font-size: .75rem; opacity: .85; }
.kpi .value { font-size: 2.2rem; font-weight: 800; line-height: 1.1; margin-top: .4rem; }
.kpi-green { background: linear-gradient(135deg, #3ddc84, #1aa15a); }
.kpi-blue { background: linear-gradient(135deg, #37b6ff, #1d7dd8); }
.kpi-red { background: linear-gradient(135deg, #ff5e5e, #d62839); }
.kpi-grey { background: linear-gradient(135deg, #2c3e5f, #17233d); border: 1px solid var(--border); }
.kpi-purple { background: linear-gradient(135deg, #a26bff, #6a3fd6); }

.operator { display: flex; align-items: center; gap: 1rem; }
.operator .avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--purple)); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem; color: #041022; box-shadow: 0 0 0 3px rgba(52,229,255,.25); }
.operator h5 { margin: 0; font-weight: 800; }
.operator .muted { color: var(--muted); font-size: .8rem; letter-spacing: .05em; }
.clock { font-size: 2rem; font-weight: 800; letter-spacing: .04em; }
.badge-status { font-weight: 700; font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; padding: .3em .6em; border-radius: 6px; }
.st-Aktif { background: var(--green); color: #041022; }
.st-Separuh { background: var(--orange); color: #041022; }
.st-Selesai { background: #4cc9f0; color: #041022; }
.st-Tutup { background: #2a3a5c; color: #fff; border: 1px solid var(--border); }
.st-Ronda { background: var(--green); color: #041022; }
.st-Standby { background: var(--yellow); color: #041022; }
.st-Pasif { background: var(--purple); color: #fff; }
.st-Gantung { background: #2a3a5c; color: #fff; }
.pr-High { background: var(--red); color: #fff; }
.pr-Medium { background: var(--yellow); color: #041022; }
.pr-Low { background: var(--green); color: #041022; }

.table-dark-c { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: var(--border); --bs-table-hover-bg: rgba(52,229,255,.06); --bs-table-hover-color: #fff; margin: 0; }
.table-dark-c th { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.table-dark-c td { vertical-align: middle; }
.form-control, .form-select { background: var(--panel-2); border-color: var(--border); color: var(--text); }
.form-control:focus, .form-select:focus { background: var(--panel-2); color: #fff; border-color: var(--cyan); box-shadow: 0 0 0 .2rem rgba(52,229,255,.15); }
.form-control::placeholder { color: var(--muted); }
.form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2334e5ff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.btn-cyan { background: var(--cyan); color: #041022; font-weight: 700; border: 0; }
.btn-cyan:hover { background: #7ff0ff; color: #041022; }
.btn-outline-cyan { border: 1px solid var(--cyan); color: var(--cyan); font-weight: 600; }
.btn-outline-cyan:hover, .btn-outline-cyan.active { background: var(--cyan); color: #041022; }

.map-wrap { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.map-wrap > div:first-child { width: 100%; height: 100%; }
.map-legend { position: absolute; bottom: 12px; left: 12px; background: rgba(5,11,24,.85); border: 1px solid var(--border); border-radius: 8px; padding: .5rem .75rem; font-size: .75rem; z-index: 5; }
.map-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.map-overlay { position: absolute; top: 12px; right: 12px; z-index: 5; display: flex; gap: .4rem; }

.resource-card { background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: .6rem .8rem; display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; cursor: pointer; transition: border-color .15s; }
.resource-card:hover { border-color: var(--cyan); }
.resource-card .cs { font-weight: 800; letter-spacing: .05em; }
.resource-card .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.scroll { overflow-y: auto; }
.scroll::-webkit-scrollbar { width: 6px; }
.scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.incident-item { padding: .7rem .9rem; border-bottom: 1px solid var(--border); cursor: pointer; }
.incident-item:hover, .incident-item.active { background: rgba(52,229,255,.08); }
.incident-item .id { font-weight: 800; font-size: 1rem; }
.incident-item .meta { color: var(--muted); font-size: .8rem; }
.field label { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem; display: block; }
.field .val { background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; padding: .45rem .6rem; min-height: 2.2rem; }

.timeline { display: flex; align-items: center; justify-content: center; gap: 0; margin-top: 1rem; flex-wrap: wrap; }
.timeline .step { width: 96px; height: 76px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); padding: .3rem; }
.timeline .step.done { background: linear-gradient(135deg, #2fb36b, #1f8f56); color: #fff; border-color: #2fb36b; box-shadow: 0 0 14px rgba(47,179,107,.4); }
.timeline .link { width: 56px; height: 3px; background: var(--border); position: relative; }
.timeline .link.done { background: #2fb36b; }
.timeline .link span { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: .7rem; color: var(--green); font-weight: 700; white-space: nowrap; }

.footer-bar { background: var(--panel); border-top: 1px solid var(--border); color: var(--muted); font-size: .75rem; letter-spacing: .05em; padding: .4rem 1rem; }
.chart { min-height: 300px; }
.news { background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: .6rem; }
.news .thumb { height: 90px; background: linear-gradient(135deg, #1d3b6b, #0b1730); display: flex; align-items: center; justify-content: center; color: var(--cyan); font-size: 1.8rem; }
.news .t { padding: .5rem .7rem; font-weight: 600; font-size: .85rem; }
.esri-view .esri-view-surface--touch-none:focus::after { outline: none; }
.text-muted { color: var(--muted) !important; }
.form-select { background-repeat: no-repeat; background-position: right .6rem center; background-size: 14px 10px; min-width: 130px; }
