/* BOB Defense Threat Intelligence Platform Tactical HUD Stylesheet */
:root {
  --bg-primary: #060911;
  --bg-secondary: #0c121e;
  --bg-card: rgba(16, 24, 39, 0.75);
  --bg-card-hover: rgba(22, 34, 56, 0.9);
  --border-color: rgba(0, 240, 255, 0.18);
  --border-bright: rgba(0, 240, 255, 0.5);
  
  --cyan: #00f0ff;
  --cyan-dim: rgba(0, 240, 255, 0.15);
  --emerald: #00ff9d;
  --emerald-dim: rgba(0, 255, 157, 0.15);
  --amber: #ffb700;
  --amber-dim: rgba(255, 183, 0, 0.15);
  --crimson: #ff2a55;
  --crimson-dim: rgba(255, 42, 85, 0.18);
  --purple: #b057f5;
  
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-bright: #ffffff;
  
  --font-mono: 'JetBrains Mono', monospace, 'Courier New';
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --glass-blur: blur(12px);
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.55);
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 240, 255, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(255, 42, 85, 0.03) 0%, transparent 40%),
    linear-gradient(rgba(6, 9, 17, 0.95), rgba(6, 9, 17, 0.95)),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 240, 255, 0.015) 3px, rgba(0, 240, 255, 0.015) 3px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Header & Command Bar */
.command-header {
  background: rgba(12, 18, 30, 0.85);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-badge {
  background: linear-gradient(135deg, rgba(0,240,255,0.2), rgba(255,42,85,0.2));
  border: 1px solid var(--cyan);
  color: var(--cyan);
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 2px;
  font-family: var(--font-mono);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.brand-title h1 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-bright);
}

.brand-title .subtitle {
  font-size: 0.72rem;
  color: var(--cyan);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid var(--emerald);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--emerald);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.6; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.6; }
}

.btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 7px 14px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.btn-primary {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-primary:hover {
  background: var(--cyan);
  color: #000;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.5);
}

.btn-danger {
  background: rgba(255, 42, 85, 0.15);
  border-color: var(--crimson);
  color: var(--crimson);
}

.btn-danger:hover {
  background: var(--crimson);
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 42, 85, 0.5);
}

/* Nav Tabs */
.nav-tabs {
  display: flex;
  background: rgba(8, 12, 20, 0.95);
  border-bottom: 1px solid var(--border-color);
  padding: 0 24px;
  gap: 20px;
}

.nav-tab {
  padding: 12px 16px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-tab:hover {
  color: var(--text-bright);
}

.nav-tab.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

/* Main Container */
.main-wrapper {
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Tactical HUD Stats Bar */
.hud-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.metric-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--cyan);
}

.metric-card.crimson::before { background: var(--crimson); }
.metric-card.amber::before { background: var(--amber); }
.metric-card.emerald::before { background: var(--emerald); }

.metric-header {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: flex;
  justify-content: space-between;
}

.metric-val {
  font-size: 1.9rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-bright);
  margin: 6px 0 2px;
}

.metric-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Three Column Operational Layout */
.ops-grid {
  display: grid;
  grid-template-columns: 320px 1fr 340px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 1400px) {
  .ops-grid {
    grid-template-columns: 300px 1fr;
  }
  .ops-grid > .col-satellite-map {
    grid-column: span 2;
  }
}

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

/* Tactical Panel Base */
.tactical-panel {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-head {
  padding: 14px 18px;
  background: rgba(12, 18, 30, 0.7);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-title {
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-bright);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

.panel-body {
  padding: 16px;
  overflow-y: auto;
  max-height: 680px;
}

/* Multi-Source Feed Stream List */
.feed-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.feed-filter-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.feed-filter-btn.active {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  color: var(--cyan);
}

.alert-item {
  background: rgba(14, 20, 32, 0.85);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  position: relative;
}

.alert-item:hover {
  border-color: var(--cyan);
  background: rgba(20, 30, 48, 0.95);
}

.alert-item.is-fp {
  opacity: 0.55;
  border-left: 3px solid var(--text-muted);
}

.alert-item.is-genuine {
  border-left: 3px solid var(--crimson);
}

.alert-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.source-tag {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}

.source-tag.siem { background: rgba(0, 240, 255, 0.15); color: var(--cyan); border: 1px solid var(--cyan); }
.source-tag.satellite { background: rgba(176, 87, 245, 0.15); color: var(--purple); border: 1px solid var(--purple); }
.source-tag.cyber { background: rgba(255, 42, 85, 0.15); color: var(--crimson); border: 1px solid var(--crimson); }
.source-tag.intel { background: rgba(255, 183, 0, 0.15); color: var(--amber); border: 1px solid var(--amber); }

.alert-title {
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 4px;
}

.alert-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 8px;
}

.alert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.68rem;
  font-family: var(--font-mono);
}

.meta-chip {
  background: rgba(255,255,255,0.05);
  padding: 2px 6px;
  border-radius: 3px;
  color: #cbd5e1;
}

.fp-badge {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid #64748b;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.68rem;
}

/* Correlated Clusters Card */
.cluster-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  position: relative;
  transition: all 0.2s;
}

.cluster-card.critical {
  border-left: 4px solid var(--crimson);
  box-shadow: 0 0 20px rgba(255, 42, 85, 0.12);
}

.cluster-card.high {
  border-left: 4px solid var(--amber);
}

.cluster-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.cluster-title-wrap h3 {
  font-size: 1.05rem;
  color: var(--text-bright);
  margin-bottom: 4px;
}

.cluster-actor {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--crimson);
  font-weight: 700;
}

.cluster-badge-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cluster-body {
  font-size: 0.82rem;
  color: var(--text-main);
  margin-bottom: 12px;
}

.kill-chain-wrap {
  margin: 10px 0;
}

.kill-chain-label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 4px;
}

.kill-chain-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.kill-chain-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber), var(--crimson));
  border-radius: 3px;
}

.converged-sources {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.cluster-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

/* Tactical Satellite Map Visualizer */
.map-canvas-wrap {
  width: 100%;
  height: 280px;
  background: #040810;
  border-radius: 6px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

#tacticalMapCanvas {
  width: 100%;
  height: 100%;
}

.map-legend {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  padding: 6px 0;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* MITRE Matrix Grid Tab */
.mitre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  overflow-x: auto;
}

.mitre-tactic-col {
  background: rgba(14, 20, 32, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mitre-tactic-name {
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--cyan);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.mitre-tech-card {
  background: rgba(20, 28, 44, 0.9);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 8px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  transition: all 0.2s;
}

.mitre-tech-card.active-threat {
  border-color: var(--crimson);
  background: rgba(255, 42, 85, 0.12);
  box-shadow: 0 0 10px rgba(255, 42, 85, 0.25);
}

.mitre-tech-id {
  font-weight: 700;
  color: var(--text-bright);
}

.mitre-tech-name {
  color: var(--text-muted);
  font-size: 0.68rem;
  margin-top: 2px;
}

/* BLUF Commander Briefing Center */
.bluf-container {
  background: #080d16;
  border: 2px solid var(--border-bright);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.15);
  font-family: var(--font-sans);
  position: relative;
}

.bluf-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--crimson);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.classification-tag {
  background: var(--crimson);
  color: #fff;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.bluf-headline-box {
  background: rgba(255, 42, 85, 0.08);
  border: 1px solid var(--crimson);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 20px;
}

.bluf-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--crimson);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.bluf-text {
  font-size: 0.95rem;
  color: var(--text-bright);
  line-height: 1.5;
  font-weight: 500;
}

.bluf-section-title {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 18px 0 10px;
  border-left: 3px solid var(--cyan);
  padding-left: 8px;
}

.judgments-list, .impact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.judgment-item, .impact-item {
  background: rgba(14, 22, 36, 0.7);
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 0.85rem;
  border-left: 3px solid var(--amber);
}

.commander-actions-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.82rem;
}

.commander-actions-table th {
  background: rgba(0, 240, 255, 0.1);
  color: var(--cyan);
  font-family: var(--font-mono);
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-color);
}

.commander-actions-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.priority-badge {
  padding: 3px 8px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
}

.priority-badge.immediate { background: rgba(255, 42, 85, 0.2); color: var(--crimson); border: 1px solid var(--crimson); }
.priority-badge.priority { background: rgba(255, 183, 0, 0.2); color: var(--amber); border: 1px solid var(--amber); }
.priority-badge.routine { background: rgba(0, 255, 157, 0.2); color: var(--emerald); border: 1px solid var(--emerald); }

/* Modal & Forms */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 200;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--cyan);
  border-radius: 8px;
  width: 90%;
  max-width: 650px;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.25);
  overflow: hidden;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--cyan);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(6, 9, 17, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 8px 12px;
  color: var(--text-bright);
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* AI Copilot & Chat Box Styles */
.copilot-chat-box {
  background: rgba(6, 9, 17, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 16px;
  min-height: 280px;
  max-height: 480px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.copilot-msg {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.86rem;
  line-height: 1.5;
  animation: fadeIn 0.25s ease-in-out;
}

.copilot-msg.bot {
  background: rgba(14, 22, 36, 0.85);
  border-left: 3px solid var(--cyan);
  color: var(--text-bright);
}

.copilot-msg.user {
  background: rgba(0, 240, 255, 0.1);
  border-right: 3px solid var(--emerald);
  color: #ffffff;
  align-self: flex-end;
  max-width: 85%;
}

.btn-quick-prompt {
  background: rgba(14, 22, 36, 0.7);
  border: 1px solid var(--border-color);
  color: var(--text-bright);
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 4px;
}

.btn-quick-prompt:hover {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan);
}

.btn-preset {
  background: rgba(14, 22, 36, 0.9);
  border: 1px dashed var(--cyan);
  color: var(--cyan);
}

.btn-preset:hover {
  background: rgba(0, 240, 255, 0.2);
}

/* Print Styles for Commander Briefing PDF */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .command-header, .nav-tabs, .hud-metrics-grid, .btn {
    display: none !important;
  }
  .tab-pane {
    display: none !important;
  }
  #tab-bluf {
    display: block !important;
  }
  .bluf-container {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #000000 !important;
  }
  .bluf-headline-box {
    background: #f1f5f9 !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
  }
  .bluf-title {
    color: #990000 !important;
  }
  .bluf-text {
    color: #111111 !important;
  }
  .commander-actions-table th {
    background: #e2e8f0 !important;
    color: #000000 !important;
  }
  .commander-actions-table td {
    color: #000000 !important;
    border-bottom: 1px solid #cccccc !important;
  }
}

/* Authentication Gate Overlay */
.auth-gate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, rgba(14, 22, 36, 0.95) 0%, rgba(6, 9, 17, 0.98) 100%);
  backdrop-filter: blur(16px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-gate-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-card {
  background: rgba(14, 22, 36, 0.92);
  border: 1px solid var(--cyan);
  border-radius: 10px;
  width: 90%;
  max-width: 540px;
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.3), inset 0 0 20px rgba(0, 240, 255, 0.05);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--emerald), var(--cyan));
}

.auth-header {
  text-align: center;
  margin-bottom: 20px;
}

.auth-logo-badge {
  display: inline-block;
  background: linear-gradient(135deg, #00f0ff, #0077b6);
  color: #060911;
  font-weight: 900;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.auth-header h2 {
  font-size: 1.15rem;
  font-family: var(--font-mono);
  color: var(--text-bright);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 18px;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 10px 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn:hover {
  color: var(--cyan);
}

.auth-tab-btn.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  font-weight: 700;
  background: rgba(0, 240, 255, 0.05);
}

.demo-logins-box {
  background: rgba(6, 9, 17, 0.7);
  border: 1px dashed rgba(0, 240, 255, 0.3);
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 16px;
}

.btn-demo-auth {
  background: rgba(14, 22, 36, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-bright);
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 4px;
}

.btn-demo-auth:hover {
  border-color: var(--emerald);
  color: var(--emerald);
  background: rgba(0, 255, 157, 0.1);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}

.btn-auth-submit {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  font-size: 0.85rem;
  font-weight: 700;
}

.auth-error-msg {
  color: var(--crimson);
  font-size: 0.76rem;
  font-family: var(--font-mono);
  margin-top: 6px;
  margin-bottom: 6px;
  min-height: 16px;
}

.auth-footer {
  margin-top: 16px;
  text-align: center;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* User Clearance Profile in Header */
.user-clearance-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 22, 36, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
}

.user-avatar {
  font-size: 1.1rem;
}

.user-info-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-bright);
}

.user-clearance {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--cyan);
}

/* Interactive Search & Classification Bar */
.interactive-search-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: rgba(14, 22, 36, 0.7);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 6px;
  flex-wrap: wrap;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 280px;
}

.search-input {
  background: rgba(6, 9, 17, 0.9) !important;
  border: 1px solid rgba(0, 240, 255, 0.25) !important;
  padding: 6px 12px;
  font-size: 0.8rem;
}

.classification-watermark {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(6, 9, 17, 0.8);
  border: 1px solid rgba(0, 255, 157, 0.3);
  padding: 5px 12px;
  border-radius: 4px;
  letter-spacing: 1px;
}

/* Cluster Interactive Triage & Mitigation Actions */
.cluster-mitigation-row {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-color);
  flex-wrap: wrap;
  align-items: center;
}

.btn-mitigate {
  font-size: 0.7rem;
  padding: 3px 8px;
  background: rgba(14, 22, 36, 0.9);
  border: 1px solid var(--border-color);
  color: var(--text-bright);
}

.btn-mitigate:hover {
  border-color: var(--emerald);
  color: var(--emerald);
  background: rgba(0, 255, 157, 0.15);
}

.btn-mitigate.isolated {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(255, 183, 0, 0.15);
}

/* MITRE Playbook Modal */
.playbook-section {
  margin-bottom: 14px;
}

.playbook-title {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 700;
}

.playbook-text {
  font-size: 0.84rem;
  color: var(--text-main);
  line-height: 1.5;
  background: rgba(6, 9, 17, 0.6);
  padding: 10px;
  border-radius: 4px;
  border-left: 2px solid var(--cyan);
}

.playbook-code {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  background: #060911;
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 4px;
  color: var(--emerald);
  overflow-x: auto;
  margin-top: 4px;
}

.redacted-tag {
  color: var(--crimson);
  font-family: var(--font-mono);
  font-weight: 700;
  background: rgba(255, 42, 85, 0.1);
  padding: 1px 4px;
  border-radius: 2px;
}

/* DEFCON Color Themes & Alert Pulses */
.defcon-selector-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 22, 36, 0.9);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 6px;
}

.defcon-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-bright);
  font-weight: 800;
}

.defcon-select {
  background: #060911;
  color: var(--cyan);
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
}

body.defcon-1 {
  border: 3px solid var(--crimson);
  box-shadow: inset 0 0 50px rgba(255, 42, 85, 0.25);
  animation: defcon1Pulse 2s infinite alternate;
}

@keyframes defcon1Pulse {
  0% { box-shadow: inset 0 0 30px rgba(255, 42, 85, 0.2); }
  100% { box-shadow: inset 0 0 70px rgba(255, 42, 85, 0.45); }
}

body.defcon-1 .defcon-select {
  color: var(--crimson);
  border-color: var(--crimson);
}

/* Scenario Injector Bar */
.scenario-injector-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(90deg, rgba(14, 22, 36, 0.95), rgba(6, 9, 17, 0.9));
  border: 1px solid var(--cyan);
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.15);
  flex-wrap: wrap;
}

.scenario-btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-scenario {
  background: rgba(14, 22, 36, 0.9);
  border: 1px solid var(--border-color);
  font-size: 0.74rem;
  padding: 5px 10px;
  border-radius: 4px;
}

.btn-scenario:hover {
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan);
}

/* Attack Topology & Oscilloscope Layout */
.topology-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.topology-canvas-wrap {
  width: 100%;
  height: 480px;
  background: #04070e;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.topology-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  cursor: grab;
}

.topology-canvas-wrap canvas:active {
  cursor: grabbing;
}

.topology-legend-bar {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.legend-pill {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: rgba(14, 22, 36, 0.8);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: 4px;
}

.oscilloscope-canvas-wrap {
  width: 100%;
  height: 260px;
  background: #03060c;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.oscilloscope-canvas-wrap canvas {
  width: 100%;
  height: 100%;
}




