/* =========================================================================
   LEADSDATAHUB ENTERPRISE SAAS DESIGN SYSTEM (TAILWIND + CSS VARIABLES)
   ========================================================================= */
:root,
[data-theme="dark_cyber"] {
  --bg-primary: #060a12;
  --bg-secondary: #0b1120;
  --bg-card: rgba(15, 23, 42, 0.85);
  --bg-card-hover: rgba(30, 41, 59, 0.92);
  --bg-sidebar: #080d1a;
  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(56, 189, 248, 0.28);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-primary: #2563eb;
  --accent-bright: #38bdf8;
  --accent-glow: rgba(37, 99, 235, 0.35);
}

[data-theme="emerald_matrix"] {
  --bg-primary: #040d0a;
  --bg-secondary: #071712;
  --bg-card: rgba(6, 28, 20, 0.88);
  --bg-card-hover: rgba(10, 42, 30, 0.95);
  --bg-sidebar: #05120e;
  --border-subtle: rgba(52, 211, 153, 0.14);
  --border-strong: rgba(16, 185, 129, 0.35);
  --text-main: #ecfdf5;
  --text-muted: #6ee7b7;
  --accent-primary: #059669;
  --accent-bright: #34d399;
  --accent-glow: rgba(16, 185, 129, 0.35);
}

[data-theme="royal_indigo"] {
  --bg-primary: #090716;
  --bg-secondary: #110e26;
  --bg-card: rgba(22, 18, 48, 0.88);
  --bg-card-hover: rgba(34, 28, 72, 0.95);
  --bg-sidebar: #0c091e;
  --border-subtle: rgba(167, 139, 250, 0.15);
  --border-strong: rgba(139, 92, 246, 0.38);
  --text-main: #f5f3ff;
  --text-muted: #c4b5fd;
  --accent-primary: #7c3aed;
  --accent-bright: #a78bfa;
  --accent-glow: rgba(124, 58, 237, 0.35);
}

[data-theme="crimson_exec"] {
  --bg-primary: #11070a;
  --bg-secondary: #1c0c12;
  --bg-card: rgba(31, 14, 21, 0.88);
  --bg-card-hover: rgba(48, 20, 32, 0.95);
  --bg-sidebar: #14080d;
  --border-subtle: rgba(251, 113, 133, 0.15);
  --border-strong: rgba(244, 63, 94, 0.38);
  --text-main: #fff1f2;
  --text-muted: #fda4af;
  --accent-primary: #e11d48;
  --accent-bright: #fb7185;
  --accent-glow: rgba(225, 29, 72, 0.35);
}

[data-theme="daylight_pro"] {
  --bg-primary: #f1f5f9;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: #f8fafc;
  --bg-sidebar: #0f172a;
  --border-subtle: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(37, 99, 235, 0.3);
  --text-main: #0f172a;
  --text-muted: #475569;
  --accent-primary: #2563eb;
  --accent-bright: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.4);
}
::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.45);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.7);
}

.ldh-nav-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  transition: all 0.16s ease;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  gap: 10px;
}

.ldh-nav-item:hover {
  background: rgba(56, 189, 248, 0.08);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.18);
}

.ldh-nav-item.active {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.28) 0%, rgba(56, 189, 248, 0.10) 100%);
  color: #ffffff;
  font-weight: 700;
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: inset 3px 0 0 #38bdf8, 0 4px 14px rgba(0, 0, 0, 0.25);
}

.ldh-subnav-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  text-align: left;
  padding: 6.5px 10px 6.5px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
  transition: all 0.14s ease;
  cursor: pointer;
  gap: 8px;
  border-left: 2px solid rgba(148, 163, 184, 0.18);
  margin-left: 14px;
}

.ldh-subnav-item:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.04);
  border-left-color: #60a5fa;
}

.ldh-subnav-item.active {
  color: #38bdf8;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.1);
  border-left: 2px solid #38bdf8;
}

.matrix-terminal {
  background: #050811;
  border: 1px solid rgba(16, 185, 129, 0.32);
  border-radius: 12px;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.85), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.matrix-log-row {
  font-size: 12px;
  line-height: 1.65;
  padding: 3px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
  word-break: break-word;
}

.matrix-log-row:hover {
  background: rgba(16, 185, 129, 0.06);
}

.ldh-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
}
