/* ==========================================================================
   NusaShield Super Command Center - Kemenko Polkam & Pimpinan Lembaga Negara
   Design: Tactical Military War Room / HUD Cyber Radar / High Situational Awareness
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700;800&display=swap');

:root {
  --bg-warroom: #030508;
  --bg-panel: rgba(8, 14, 24, 0.9);
  --bg-panel-hover: rgba(14, 24, 40, 0.98);
  --border-hud: rgba(0, 240, 255, 0.25);
  --border-red: rgba(255, 51, 102, 0.4);
  
  --cyan-tactical: #00f0ff;
  --red-tactical: #ff3366;
  --gold-tactical: #ffd700;
  --green-tactical: #00ff88;
  --purple-tactical: #9933ff;
  --orange-tactical: #ff9900;
  
  --text-main: #f0f6fc;
  --text-dim: #7d8b9f;
  --text-dark: #3f4e65;
  
  --font-hud: 'JetBrains Mono', monospace;
  --font-main: 'Outfit', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-warroom);
  color: var(--text-main);
  font-family: var(--font-main);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 10%, rgba(0, 240, 255, 0.05) 0%, transparent 70%),
    linear-gradient(to bottom, #030508, #05080e);
}

/* War Room Header */
.warroom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 36px;
  background: rgba(6, 10, 18, 0.95);
  border-bottom: 2px solid var(--border-hud);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.agency-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.garuda-emblem {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #b30000, #ff3366);
  border: 2px solid var(--gold-tactical);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 0 20px rgba(255, 51, 102, 0.5);
}

.brand-text h1 {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #fff;
}

.brand-text p {
  font-size: 11px;
  font-family: var(--font-hud);
  color: var(--gold-tactical);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* DEFCON Alert Meter */
.defcon-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 30px;
}

.defcon-item {
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-family: var(--font-hud);
  font-weight: 700;
  opacity: 0.35;
  transition: all 0.3s;
}

.defcon-item.active {
  opacity: 1;
  transform: scale(1.05);
}

.defcon-5 { background: rgba(0, 255, 136, 0.2); color: var(--green-tactical); border: 1px solid var(--green-tactical); }
.defcon-4 { background: rgba(0, 240, 255, 0.2); color: var(--cyan-tactical); border: 1px solid var(--cyan-tactical); }
.defcon-3 { background: rgba(255, 215, 0, 0.2); color: var(--gold-tactical); border: 1px solid var(--gold-tactical); }
.defcon-2 { background: rgba(255, 153, 0, 0.2); color: var(--orange-tactical); border: 1px solid var(--orange-tactical); }
.defcon-1 { background: rgba(255, 51, 102, 0.3); color: var(--red-tactical); border: 1px solid var(--red-tactical); animation: alertPulse 1.5s infinite; }

@keyframes alertPulse {
  0% { box-shadow: 0 0 10px var(--red-tactical); }
  50% { box-shadow: 0 0 24px var(--red-tactical); }
  100% { box-shadow: 0 0 10px var(--red-tactical); }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.live-clock {
  font-family: var(--font-hud);
  font-size: 14px;
  color: var(--cyan-tactical);
  background: rgba(0, 240, 255, 0.08);
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-hud);
}

/* War Room Grid Layout */
.command-grid {
  display: grid;
  grid-template-columns: 320px 1fr 360px;
  gap: 20px;
  padding: 20px;
  min-height: calc(100vh - 85px);
}

/* Column Panels */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-hud);
  border-radius: 12px;
  padding: 18px;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

/* Agency Tabs (BSSN, BIN, TNI, POLRI) */
.agency-tab-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.agency-btn {
  padding: 8px 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.agency-btn.active {
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan-tactical);
  border-color: var(--cyan-tactical);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

/* Threat Feed Cards */
.agency-feed-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 480px;
  overflow-y: auto;
}

.feed-entry {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--cyan-tactical);
  padding: 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
}

.feed-entry.critical { border-left-color: var(--red-tactical); }
.feed-entry.high { border-left-color: var(--orange-tactical); }

.feed-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-hud);
  font-size: 10px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

/* Center Column: Heatmap & Radar */
.center-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.map-container {
  background: #020408;
  border: 1px solid var(--border-hud);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.map-svg-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.island-point {
  fill: rgba(0, 240, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s;
}

.island-point:hover {
  fill: var(--gold-tactical);
  filter: drop-shadow(0 0 8px var(--gold-tactical));
}

.island-point.critical-hotspot {
  fill: var(--red-tactical);
  animation: radarBlink 1s infinite alternate;
}

@keyframes radarBlink {
  from { opacity: 0.4; transform: scale(1); }
  to { opacity: 1; transform: scale(1.3); }
}

/* Critical Infrastructure (NusaOT/ICS Guard) */
.scada-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.scada-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px;
}

.scada-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}

.scada-metric {
  font-family: var(--font-hud);
  font-size: 18px;
  font-weight: 800;
  color: var(--cyan-tactical);
}

/* Crisis Action Buttons */
.crisis-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-crisis {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-family: var(--font-hud);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-defcon1 {
  background: linear-gradient(135deg, #b30000, #ff3366);
  color: white;
  box-shadow: 0 0 16px rgba(255, 51, 102, 0.5);
}

.btn-defcon1:hover {
  background: #ff1a53;
  box-shadow: 0 0 26px rgba(255, 51, 102, 0.8);
}

.btn-airgap {
  background: rgba(255, 153, 0, 0.15);
  border: 1px solid var(--orange-tactical);
  color: var(--orange-tactical);
}

.btn-airgap:hover {
  background: rgba(255, 153, 0, 0.3);
}

@media (max-width: 1200px) {
  .command-grid { grid-template-columns: 1fr; }
}
