/* Be Vietnam Pro — Full Vietnamese diacritics support, geometric sans design */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ==========================================================================
   INDUSTRIAL ENTERPRISE DARK DESIGN SYSTEM — SOC-AI DASHBOARD
   Specifications:
   - Primary Accent: #fac306 (Gold)
   - Background: #000000 (Pure Black)
   - Zinc Grays: #0f0f0f (Surface), #1a1a1a (Elevated), #262626 (Borders)
   - Typography: General Sans (Headings/Body), JetBrains Mono (Technical Data/IPs/Logs)
   - Border Radius: Buttons (8px / rounded-lg), Cards (16px / rounded-2xl)
   - Glass-panel: rgba(15, 15, 15, 0.7) + blur(12px)
   - Gold-glow: 0 0 20px rgba(250, 195, 6, 0.15)
   ========================================================================== */

:root {
  --bg-black:       #000000;
  --zinc-950:       #080808;
  --zinc-900:       #0f0f0f;
  --zinc-800:       #1a1a1a;
  --zinc-700:       #262626;
  --zinc-600:       #525252;
  --zinc-500:       #737373;
  --zinc-400:       #a3a3a3;
  --zinc-300:       #d4d4d4;
  --zinc-100:       #f5f5f5;
  
  --gold:           #fac306;
  --gold-glow:      rgba(250, 195, 6, 0.18);
  --gold-muted:     rgba(250, 195, 6, 0.10);
  --gold-border:    rgba(250, 195, 6, 0.30);

  --emerald:        #10b981;
  --emerald-muted:  rgba(16, 185, 129, 0.12);
  --red:            #ef4444;
  --red-muted:      rgba(239, 68, 68, 0.12);
  --blue:           #3b82f6;
  --blue-muted:     rgba(59, 130, 246, 0.12);
  --purple:         #8b5cf6;
  --purple-muted:   rgba(139, 92, 246, 0.12);

  --border-subtle:  rgba(255, 255, 255, 0.05);
  --border-medium:  #262626;
  --radius-btn:     8px;
  --radius-card:    16px;
  --ease:           cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  background-color: var(--bg-black);
  color: var(--zinc-100);
  font-family: 'Be Vietnam Pro', -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Scanline cyberpunk overlay — subtle CRT effect on full viewport */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 9998;
  animation: scanlines-drift 8s linear infinite;
}
@keyframes scanlines-drift {
  0%   { background-position: 0 0; }
  100% { background-position: 0 100vh; }
}

/* Technical Monospace Elements */
.font-mono, .ip-text, .timestamp-text, code, pre {
  font-family: 'JetBrains Mono', monospace !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-black); }
::-webkit-scrollbar-thumb { background: var(--zinc-700); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---- Fixed 64px Navigation Bar ---- */
.enterprise-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-gold-box {
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: #000000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 0 16px var(--gold-glow);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
}
.brand-tag {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--zinc-500);
  letter-spacing: 0.05em;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--zinc-400);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s var(--ease);
}
.nav-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.03);
}
.nav-link.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--emerald-muted);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--emerald);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Status Pulse Dot (Spec: 6px, 0.95 to 1.05 scale, opacity 0.5 to 1.0) */
.status-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: status-pulse 2s ease-in-out infinite;
}
.status-pulse-dot.danger {
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}
@keyframes status-pulse {
  0%   { transform: scale(0.95); opacity: 0.5; }
  50%  { transform: scale(1.05); opacity: 1.0; }
  100% { transform: scale(0.95); opacity: 0.5; }
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--zinc-800);
  border: 1px solid var(--zinc-700);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
}

.btn-logout {
  color: var(--zinc-500);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.btn-logout:hover {
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.2);
  background: var(--red-muted);
}

/* ---- Main Workspace Layout ---- */
.main-workspace {
  margin-top: 64px;
  margin-bottom: 32px; /* space for 32px footer */
  padding: 32px 24px 64px;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Header Section (Breadcrumb + Actions) ---- */
.header-section {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.header-titles h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 4px;
}
.header-titles .subtitle {
  color: var(--zinc-500);
  font-size: 14px;
}

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

.search-input-wrap {
  position: relative;
}
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--zinc-500);
  pointer-events: none;
}
.enterprise-search {
  background: var(--zinc-900);
  border: 1px solid var(--zinc-700);
  border-radius: var(--radius-btn);
  padding: 9px 14px 9px 36px;
  color: var(--zinc-100);
  font-size: 13px;
  outline: none;
  width: 220px;
  transition: all 0.2s var(--ease);
}
.enterprise-search:focus {
  border-color: var(--gold);
  box-shadow: 0 0 14px var(--gold-glow);
  width: 260px;
}

/* Primary Gold Button */
.btn-gold-primary {
  background: var(--gold);
  color: #000000;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 10px 20px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  box-shadow: 0 0 20px var(--gold-glow);
  transition: all 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-gold-primary:hover {
  background: #fcd34d;
  box-shadow: 0 0 28px rgba(250, 195, 6, 0.35);
  transform: translateY(-1px);
}
.btn-gold-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--zinc-900);
  color: var(--zinc-300);
  border: 1px solid var(--zinc-700);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-secondary:hover {
  color: #FFFFFF;
  border-color: var(--zinc-500);
}

/* ---- Enterprise Cards & Glass Panels ---- */
.glass-panel {
  background: rgba(15, 15, 15, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.glass-panel:hover {
  transform: translateY(-2px);
  border-color: var(--gold-border);
}

/* ---- Entity Grid (4 Columns) ---- */
.entity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
@media (max-width: 1024px) {
  .entity-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .entity-grid { grid-template-columns: 1fr; }
}

.entity-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.entity-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.entity-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.entity-icon-box.gold    { background: var(--gold-muted);    color: var(--gold); }
.entity-icon-box.emerald { background: var(--emerald-muted); color: var(--emerald); }
.entity-icon-box.red     { background: var(--red-muted);     color: var(--red); }
.entity-icon-box.purple  { background: var(--purple-muted);  color: var(--purple); }

.entity-badge-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--zinc-400);
}

.entity-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 4px;
}
.entity-desc {
  font-size: 13px;
  color: var(--zinc-500);
  margin-bottom: 20px;
}

/* Technical Progress Bar (Spec: h-1.5, bg-zinc-800, rounded-full) */
.tech-progress-track {
  width: 100%;
  height: 6px;
  background: var(--zinc-800);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 16px;
}
.tech-progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.4s var(--ease);
}
.tech-progress-fill.gold    { background: var(--gold);    box-shadow: 0 0 10px var(--gold); }
.tech-progress-fill.emerald { background: var(--emerald); box-shadow: 0 0 10px var(--emerald); }
.tech-progress-fill.red     { background: var(--red);     box-shadow: 0 0 10px var(--red); }
.tech-progress-fill.blue    { background: var(--blue);    box-shadow: 0 0 10px var(--blue); }

.entity-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  font-size: 12px;
}
.entity-link-gold {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.entity-link-gold:hover {
  text-decoration: underline;
  gap: 6px;
}

/* ---- Management Workspace (2/3 + 1/3 Split) ---- */
.management-workspace {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
@media (max-width: 1024px) {
  .management-workspace { grid-template-columns: 1fr; }
}

.workspace-panel {
  padding: 24px;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.panel-title {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

/* Data Table (Spec: zinc-900/40, uppercase 12px bold header, subtle hover) */
.enterprise-table-container {
  overflow-x: auto;
}
.enterprise-table {
  width: 100%;
  border-collapse: collapse;
}
.enterprise-table th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--zinc-500);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-medium);
}
.enterprise-table td {
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}
.enterprise-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.enterprise-table tr:last-child td {
  border-bottom: none;
}

/* Attack Label Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
}
.status-pill.portscan {
  background: var(--blue-muted);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.2);
}
.status-pill.dos {
  background: var(--red-muted);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.2);
}
.status-pill.bruteforce {
  background: var(--gold-muted);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}
.status-pill.webattack {
  background: var(--purple-muted);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.2);
}

/* Policy Toggle Switch (Spec: 40px wide, 20px high, active gold with black knob) */
.policy-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.policy-toggle-row:last-child {
  border-bottom: none;
}
.policy-info {
  display: flex;
  flex-direction: column;
}
.policy-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--zinc-200);
}
.policy-desc {
  font-size: 11px;
  color: var(--zinc-500);
}

.policy-switch {
  width: 40px;
  height: 20px;
  border-radius: 9999px;
  background: var(--gold);
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.policy-switch .knob {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #000000;
  position: absolute;
  top: 4px;
  right: 4px;
  transition: transform 0.2s;
}
.policy-switch.inactive {
  background: var(--zinc-700);
}
.policy-switch.inactive .knob {
  background: var(--zinc-400);
  right: auto;
  left: 4px;
}

/* Audit Trail / Timeline Item */
.audit-item {
  display: flex;
  gap: 12px;
  padding-bottom: 18px;
  position: relative;
}
.audit-item::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: 0;
  width: 1px;
  background: var(--zinc-800);
}
.audit-item:last-child::before {
  display: none;
}
.audit-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg-black);
  flex-shrink: 0;
  margin-top: 2px;
}
.audit-dot.danger { background: var(--red); }
.audit-dot.emerald { background: var(--emerald); }

.audit-content {
  display: flex;
  flex-direction: column;
}
.audit-action {
  font-size: 13px;
  font-weight: 600;
  color: var(--zinc-200);
}
.audit-meta {
  font-size: 11px;
  color: var(--zinc-500);
  font-family: 'JetBrains Mono', monospace;
}

/* Quarantined Item in Sidebar */
.quarantine-box {
  background: var(--zinc-900);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}
.quarantine-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.timer-gold {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
}

/* ---- Fixed 32px Footer Status Bar ---- */
.enterprise-footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: var(--zinc-900);
  border-top: 1px solid var(--border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 24px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--zinc-600);
  letter-spacing: 0.12em;
  justify-content: space-between;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-health-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.micro-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald);
}
.micro-status-dot.warn { background: var(--gold); }
.micro-status-dot.down { background: var(--red); }

/* Form Elements */
.select-zinc, .input-zinc {
  background: var(--zinc-900);
  border: 1px solid var(--zinc-700);
  border-radius: var(--radius-btn);
  padding: 8px 14px;
  color: var(--zinc-200);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.select-zinc:focus, .input-zinc:focus {
  border-color: var(--gold);
}

/* Pagination Buttons */
.pg-box-btn {
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--zinc-900);
  border: 1px solid var(--zinc-700);
  color: var(--zinc-400);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.pg-box-btn:hover, .pg-box-btn.active {
  background: var(--gold);
  color: #000000;
  border-color: var(--gold);
}

/* ==========================================================================
   INCIDENT INSPECTOR & AI EXPLAINABILITY MODAL
   ========================================================================== */
.modal-backdrop-dark {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop-dark.active {
  display: flex;
}

.modal-inspector-dialog {
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  background: #0a0a0a;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-card);
  padding: 32px;
  position: relative;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.95), 0 0 30px var(--gold-glow);
  animation: modal-pop 0.25s var(--ease);
}
@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.97) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-medium);
}
.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.modal-close-btn {
  background: var(--zinc-900);
  border: 1px solid var(--zinc-700);
  color: var(--zinc-400);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-close-btn:hover {
  color: #FFFFFF;
  border-color: var(--gold);
}

.section-label-gold {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .telemetry-grid { grid-template-columns: 1fr; }
}

.telemetry-card {
  background: var(--zinc-900);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px 14px;
}
.telemetry-label {
  font-size: 11px;
  color: var(--zinc-500);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}
.telemetry-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
}

.feature-weight-row {
  background: var(--zinc-900);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
}
.feature-weight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.feature-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--zinc-200);
}
.feature-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
}
.feature-desc {
  font-size: 12px;
  color: var(--zinc-500);
  line-height: 1.4;
}

/* Toast Notification */
.enterprise-toast {
  position: fixed;
  top: 76px;
  right: 24px;
  background: var(--zinc-900);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 12px 18px;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 0 25px var(--gold-glow);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-in 0.3s var(--ease);
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Notification Bell Dropdown */
.bell-dropdown-menu {
  position: absolute;
  top: 45px;
  right: 0;
  width: 320px;
  background: #0a0a0a;
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
  padding: 16px;
  z-index: 2000;
  display: none;
}
.bell-dropdown-menu.active {
  display: block;
  animation: modal-pop 0.2s var(--ease);
}
.bell-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.bell-item:last-child { border-bottom: none; }



/* ==========================================================================
   AI RATIONALE QUOTE BOX — was missing, caused unstyled text in AI modals
   ========================================================================== */
.rationale-quote-box {
  background: linear-gradient(135deg, rgba(250,195,6,0.06) 0%, rgba(15,15,15,0.8) 100%);
  border: 1px solid var(--gold-border);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 14px 18px 14px 36px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--zinc-300);
  font-style: italic;
  position: relative;
}
.rationale-quote-box::before {
  content: '"';
  position: absolute;
  top: 4px;
  left: 14px;
  font-size: 30px;
  color: var(--gold);
  opacity: 0.45;
  line-height: 1;
  font-style: normal;
  font-family: 'Be Vietnam Pro', sans-serif;
}

/* ==========================================================================
   KEYBOARD / FOCUS RING — accessibility + UX
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}
.enterprise-search::placeholder { color: var(--zinc-600); }

/* Fix: .enterprise-toast must sit above scanline overlay (body::before z:9998) */
.enterprise-toast { z-index: 10000; }

/* ==========================================================================
   WAZUH-STYLE TIME RANGE & MULTI-DIMENSIONAL FILTER CONTROLS
   ========================================================================== */
.wazuh-control-bar {
  background: linear-gradient(180deg, #13151b 0%, #0a0b0f 100%);
  border: 1px solid rgba(250, 195, 6, 0.28);
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.wazuh-control-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  flex: 1;
}

.wazuh-control-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.filter-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filter-group-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #a1a1aa;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  user-select: none;
}

.filter-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 2px;
  flex-shrink: 0;
}

/* Time Range Segmented Capsule */
.time-range-group {
  display: inline-flex;
  align-items: center;
  background: #000000;
  border: 1px solid #27272a;
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.7);
}

.time-range-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #a1a1aa;
  padding: 6px 13px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  line-height: 1.1;
}

.time-range-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.time-range-btn.active {
  background: linear-gradient(135deg, #fac306 0%, #e0aa05 100%);
  color: #000000;
  border-color: #fac306;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(250, 195, 6, 0.45);
  transform: translateY(-0.5px);
}

/* Custom Dropdown for Threat Vector */
.custom-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.custom-select {
  appearance: none;
  -webkit-appearance: none;
  background: #000000;
  border: 1px solid #27272a;
  color: #e4e4e7;
  border-radius: 8px;
  padding: 6px 30px 6px 12px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.custom-select:hover, .custom-select:focus {
  border-color: #fac306;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(250, 195, 6, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.select-chevron {
  position: absolute;
  right: 10px;
  pointer-events: none;
  color: #71717a;
}

/* Custom Search Input */
.search-input-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 11px;
  pointer-events: none;
}

.custom-search-input {
  background: #000000;
  border: 1px solid #27272a;
  color: #ffffff;
  border-radius: 8px;
  padding: 6px 30px 6px 32px;
  font-size: 11px;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  width: 210px;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.custom-search-input::placeholder {
  color: #71717a;
}

.custom-search-input:focus {
  width: 250px;
  border-color: #fac306;
  box-shadow: 0 0 12px rgba(250, 195, 6, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.search-clear-btn {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: #71717a;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.search-clear-btn:hover {
  color: #fac306;
}

/* Auto Refresh Pill */
.auto-refresh-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #000000;
  border: 1px solid #27272a;
  border-radius: 8px;
  padding: 4px 10px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50% !important;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: liveRadarPulse 2s infinite ease-in-out;
}

.auto-refresh-text {
  font-size: 10px;
  font-weight: 700;
  color: #71717a;
  letter-spacing: 0.05em;
}

.auto-refresh-select {
  background: transparent;
  border: none;
  color: #e4e4e7;
  font-size: 11px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  outline: none;
  padding: 0;
}

/* Toolbar Refresh Button */
.btn-toolbar-refresh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(250, 195, 6, 0.08);
  border: 1px solid rgba(250, 195, 6, 0.3);
  color: #fac306;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: 0.04em;
}

.btn-toolbar-refresh:hover {
  background: #fac306;
  color: #000000;
  box-shadow: 0 0 12px rgba(250, 195, 6, 0.4);
}

.spinning {
  animation: spinIcon 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes spinIcon {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes liveRadarPulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Active Filter Strip */
.active-filter-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  padding: 8px 14px;
  background: rgba(250, 195, 6, 0.04);
  border: 1px dashed rgba(250, 195, 6, 0.35);
  border-radius: 8px;
}

.filter-strip-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fac306;
  font-family: 'JetBrains Mono', monospace;
}

.active-filter-pills-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.active-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(250, 195, 6, 0.12);
  border: 1px solid rgba(250, 195, 6, 0.4);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  color: #fac306;
  font-family: 'JetBrains Mono', monospace;
}

.active-filter-pill button {
  background: transparent;
  border: none;
  color: #fac306;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.reset-all-filters-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reset-all-filters-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ffffff;
}

.top-breakdown-card {
  padding: 16px 18px;
}

.top-breakdown-row {
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.top-breakdown-row:last-child {
  border-bottom: none;
}

.top-breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  font-size: 12px;
}

.quick-drill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-medium);
  color: var(--zinc-300);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'JetBrains Mono', monospace;
}

.quick-drill-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(250, 195, 6, 0.1);
}
