/* ==========================================================================
   GEOLIBRE CYBER DEFENSE - ULTRA-SLEEK MODERN DARK THEME
   Clean, vibrant, high-contrast, crystal-clear 3D globe with subtle neon accents.
   No obscuring scanlines, no distracting target rings over the map.
   ========================================================================== */

:root {
  --geo-bg-void: #060b18;
  --geo-bg-surface: rgba(10, 17, 34, 0.85);
  --geo-bg-card: rgba(15, 23, 46, 0.8);
  --geo-border-neon: rgba(0, 240, 255, 0.25);
  --geo-border-glow: 0 0 15px rgba(0, 240, 255, 0.35);
  
  --geo-neon-cyan: #00f0ff;
  --geo-neon-emerald: #00ff9d;
  --geo-neon-purple: #b5179e;
  --geo-neon-amber: #ffaa00;
  --geo-neon-crimson: #ff0055;

  --geo-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --geo-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --geo-font-display: 'Orbitron', 'Inter', sans-serif;
}

/* Ensure canvas and map are crystal-clear and never dimmed */
canvas,
.cesium-widget,
.maplibregl-map,
#root {
  filter: none !important;
  opacity: 1 !important;
}

/* Top Sleek Mission Bar */
#geo-quantum-command-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: rgba(7, 12, 24, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--geo-border-neon);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 10000;
  font-family: var(--geo-font-mono);
  user-select: none;
}

.command-bar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  font-size: 13px;
  font-family: var(--geo-font-display);
}

.brand-badge {
  background: linear-gradient(135deg, var(--geo-neon-cyan), #0070f3);
  color: #000;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.command-bar-center {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  color: #cbd5e1;
}

.hud-stat-pill.defcon-5 {
  border-color: rgba(0, 255, 157, 0.4);
  background: rgba(0, 255, 157, 0.08);
  color: var(--geo-neon-emerald);
}

.command-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cyber-btn {
  background: rgba(15, 23, 46, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #e2e8f0;
  padding: 5px 11px;
  border-radius: 6px;
  font-family: var(--geo-font-mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.cyber-btn:hover {
  background: rgba(0, 240, 255, 0.18);
  border-color: var(--geo-neon-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

.cyber-btn-accent {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(0, 112, 243, 0.35));
  border-color: var(--geo-neon-cyan);
  color: #fff;
}

.cyber-btn-accent:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.4), rgba(0, 112, 243, 0.5));
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.6);
}

.cyber-btn-danger {
  border-color: var(--geo-neon-crimson);
  color: var(--geo-neon-crimson);
}

/* Modals & Cyber Panels */
.cyber-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cyber-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cyber-modal-window {
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  background: rgba(8, 14, 28, 0.96);
  border: 1px solid var(--geo-neon-cyan);
  border-radius: 12px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 240, 255, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: cyberModalSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cyberModalSlideIn {
  from { transform: scale(0.97) translateY(12px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.cyber-modal-header {
  padding: 14px 20px;
  background: rgba(12, 20, 38, 0.95);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cyber-modal-title {
  font-family: var(--geo-font-mono);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.8px;
}

.cyber-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  font-family: var(--geo-font-sans);
}

/* Biometric Scanner HUD */
.biometric-scanner-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px 20px;
  border: 1px dashed rgba(0, 240, 255, 0.35);
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.03);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.scanner-laser-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--geo-neon-cyan), transparent);
  box-shadow: 0 0 10px var(--geo-neon-cyan);
  opacity: 0;
}

.scanning .scanner-laser-line {
  opacity: 1;
  animation: laserScan 1.6s infinite alternate ease-in-out;
}

@keyframes laserScan {
  0% { top: 5%; }
  100% { top: 95%; }
}

.biometric-fingerprint-icon {
  width: 80px;
  height: 80px;
  cursor: pointer;
  transition: all 0.25s;
}

.biometric-fingerprint-icon:hover {
  filter: drop-shadow(0 0 12px var(--geo-neon-cyan));
  transform: scale(1.04);
}

/* Ledger & SOC Tables */
.cyber-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--geo-font-mono);
  font-size: 11px;
}

.cyber-table th {
  background: rgba(12, 20, 38, 0.95);
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--geo-border-neon);
  color: var(--geo-neon-cyan);
}

.cyber-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.cyber-table tr:hover td {
  background: rgba(0, 240, 255, 0.04);
}

.hash-pill {
  font-family: var(--geo-font-mono);
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--geo-neon-emerald);
}

.cyber-code-block {
  background: #030712;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 6px;
  padding: 12px;
  font-family: var(--geo-font-mono);
  font-size: 11px;
  color: #a5f3fc;
  overflow-x: auto;
  white-space: pre-wrap;
  max-height: 250px;
}
