/* ==========================================================================
   CELLULAR COVERAGE ANALYSIS HUD
   Advanced Cybernetic Intelligence System - Futuristic Edition
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&family=Orbitron:wght@500;600;700;800;900&display=swap');

:root {
  --bg-core: #060913;
  --bg-surface: #0a0f1d;
  --bg-card: rgba(13, 21, 39, 0.88);
  --bg-card-hover: rgba(18, 30, 56, 0.95);
  --bg-glass: rgba(10, 16, 30, 0.75);
  
  --border-dim: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.3);
  --border-neon: rgba(0, 240, 255, 0.45);
  
  --cyan-core: #00f0ff;
  --cyan-dim: #0284c7;
  --emerald-core: #10b981;
  --amber-core: #f59e0b;
  --crimson-core: #ef4444;
  --violet-core: #8b5cf6;
  --blue-core: #3b82f6;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-hud: 'Orbitron', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: #060913;
  color: var(--text-main);
  background: #060913;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-core);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan-core);
}

/* APP SHELL (NATURAL SMOOTH PAGE SCROLLING) */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR TACTICAL */
.sidebar-tactical {
  width: 275px;
  background: #070c18;
  border-right: 1px solid var(--border-dim);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  z-index: 1040;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.brand-box {
  padding: 20px 18px;
  border-bottom: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 240, 255, 0.02);
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.brand-text-title {
  font-family: var(--font-hud);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #ffffff, #00f0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  color: #38bdf8;
  font-weight: 600;
  text-transform: uppercase;
}

.nav-section-title {
  padding: 16px 18px 6px 18px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #64748b;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.nav-item-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav-item-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  border-left-color: rgba(0, 240, 255, 0.4);
}

.nav-item-btn.active {
  color: #fff;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.12) 0%, rgba(0, 240, 255, 0.01) 100%);
  border-left-color: var(--cyan-core);
  font-weight: 600;
}

.nav-item-btn i {
  width: 18px;
  text-align: center;
  font-size: 14px;
}

/* SIDEBAR FOOTER & SOLID LOGOUT BUTTON */
.sidebar-footer-lock {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 7, 17, 0.85);
}

.sidebar-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 6px;
  background: #dc2626 !important; /* SOLID RED, NON-TRANSPARENT */
  border: 1px solid #ef4444 !important;
  color: #ffffff !important;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45);
}

.sidebar-logout-btn:hover {
  background: #b91c1c !important;
  border-color: #fca5a5 !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.7);
  transform: translateY(-1px);
}

/* TOP HUD BAR */
.top-hud-bar {
  height: 64px;
  background: rgba(10, 15, 28, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.hud-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dim);
  border-radius: 20px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald-core);
  box-shadow: 0 0 10px var(--emerald-core);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* BUTTONS */
.hud-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.hud-btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #00f0ff 100%);
  color: #040711;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.hud-btn-primary:hover {
  background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 100%);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
  color: #000;
}

.hud-btn-outline {
  background: transparent;
  border-color: var(--border-dim);
  color: var(--text-main);
}

.hud-btn-outline:hover {
  border-color: var(--cyan-core);
  color: var(--cyan-core);
  background: rgba(0, 240, 255, 0.05);
}

.hud-btn-emerald {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.hud-btn-emerald:hover {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.5);
}

.hud-btn-danger {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

/* CARDS */
.hud-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hud-card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.015);
}

.hud-card-title {
  font-family: var(--font-hud);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-card-body {
  padding: 20px;
}

/* INPUTS */
.hud-input-group {
  display: flex;
  gap: 8px;
}

.hud-input {
  background: rgba(8, 13, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 14px;
  transition: all 0.2s ease;
  width: 100%;
}

.hud-input:focus {
  outline: none;
  border-color: var(--cyan-core);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
  background: rgba(10, 18, 36, 0.95);
}

/* BADGES & CHIPS */
.sample-chip {
  display: inline-block;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: #00f0ff;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sample-chip:hover {
  background: rgba(0, 240, 255, 0.2);
  border-color: #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.cmd-badge {
  display: inline-block;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #00f0ff;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

/* PROTECTED PAYLOAD BOX (PRIVACY SHIELD) */
.payload-security-box {
  background: #050811;
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 14px;
}

.payload-toggle-bar {
  padding: 10px 14px;
  background: rgba(0, 240, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.payload-content-masked {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: #a5f3fc;
  background: #03050a;
  white-space: pre-wrap;
  word-break: break-word;
}

.btn-xs {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-xs:hover {
  background: var(--cyan-core);
  color: #000;
}

/* SMART E-KTP CARD */
.id-smart-card {
  background: #090e1a;
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.08);
}

.id-photo-frame {
  width: 130px;
  height: 160px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.8);
  background: #040711;
}

.id-grid-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.id-field-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 8px 12px;
}

.id-field-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #64748b;
  text-transform: uppercase;
}

.id-field-value {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 2px;
}

/* BIOMETRIC SCANNER */
.biometric-scanner-viewport {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 320px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(0, 240, 255, 0.5);
  background: #02050e;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

.biometric-target-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scanner-laser-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #00f0ff;
  box-shadow: 0 0 15px #00f0ff, 0 0 30px #00f0ff;
  z-index: 10;
  animation: laserScan 2s infinite ease-in-out;
}

@keyframes laserScan {
  0% { top: 0%; opacity: 0.8; }
  50% { top: 96%; opacity: 1; }
  100% { top: 0%; opacity: 0.8; }
}

.scanner-crosshair {
  position: absolute;
  inset: 15px;
  pointer-events: none;
  z-index: 5;
}

.scanner-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: #00f0ff;
  border-style: solid;
}
.scanner-corner.tl { top: 0; left: 0; border-width: 3px 0 0 3px; }
.scanner-corner.tr { top: 0; right: 0; border-width: 3px 3px 0 0; }
.scanner-corner.bl { bottom: 0; left: 0; border-width: 0 0 3px 3px; }
.scanner-corner.br { bottom: 0; right: 0; border-width: 0 3px 3px 0; }

.biometric-metric-gauge {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

/* LOGIN SCREEN OVERLAY */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #0a1124 0%, #03060f 100%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: rgba(13, 21, 39, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 16px;
  padding: 36px 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.15);
  text-align: center;
  animation: loginAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginAppear {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.login-logo-wrap {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #00f0ff, #3b82f6);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
}

.login-logo-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* RESPONSIVE UTILITIES */
.row { display: flex; flex-wrap: wrap; margin-right: -10px; margin-left: -10px; }
[class*="col-"] { position: relative; width: 100%; padding-right: 10px; padding-left: 10px; box-sizing: border-box; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }

@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
}

.d-flex { display: flex !important; }
.d-none { display: none !important; }
@media (min-width: 768px) { .d-md-flex { display: flex !important; } }
@media (min-width: 992px) { .d-lg-none { display: none !important; } }

.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }

.gap-1 { gap: 4px !important; }
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 14px !important; }

.m-0 { margin: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 24px !important; }
.mr-1 { margin-right: 4px !important; }
.mr-2 { margin-right: 8px !important; }
.p-0 { padding: 0 !important; }
.p-2 { padding: 8px !important; }
.p-3 { padding: 16px !important; }
.p-4 { padding: 24px !important; }
.py-1 { padding-top: 4px !important; padding-bottom: 4px !important; }
.py-2 { padding-top: 8px !important; padding-bottom: 8px !important; }
.px-2 { padding-left: 8px !important; padding-right: 8px !important; }
.px-3 { padding-left: 14px !important; padding-right: 14px !important; }
.w-100 { width: 100% !important; }

.text-white { color: #ffffff !important; }
.text-muted { color: var(--text-muted) !important; }
.text-info { color: #38bdf8 !important; }
.text-success { color: var(--emerald-core) !important; }
.text-warning { color: var(--amber-core) !important; }
.text-danger { color: var(--crimson-core) !important; }
.text-cyan { color: var(--cyan-core) !important; }
.text-xs { font-size: 11px !important; }
.font-weight-bold { font-weight: 700 !important; }
.font-monospace { font-family: var(--font-mono) !important; }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* TACTICAL STATIC FOOTER */
.tactical-footer {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--border-dim);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

@media (max-width: 991px) {
  .sidebar-tactical {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
  }
  .sidebar-tactical.open {
    transform: translateX(0);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
  }
}
