/* ═══════════════════════════════════════════════════════════════
   NEXORA Enterprise — Dark Mode
   ═══════════════════════════════════════════════════════════════ */

[data-theme="dark"] {
  --bg: #0B1220;
  --bg-secondary: #111827;
  --surface: #1a2236;
  --surface-hover: #1e293b;
  --border: #253049;
  --border-strong: #334155;

  --text: #e8edf5;
  --text-secondary: #94a3c0;
  --text-muted: #64748b;

  --primary-bg: #172241;
  --primary-bg-light: #131c36;
  --gold-light: #241f10;

  --success-light: #052e16;
  --danger-light: #2d0a0a;
  --warning-light: #2d1f05;
  --info-light: #0c1f3f;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3), 0 1px 4px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.45), 0 4px 16px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] body {
  background: var(--bg);
  color: var(--text);
}

[data-theme="dark"] table th {
  background: var(--primary-dark);
}

[data-theme="dark"] table tbody tr:hover {
  background: rgba(30, 58, 138, 0.08);
}

[data-theme="dark"] .sidebar {
  background: #0f1829;
  border-color: var(--border);
}

[data-theme="dark"] .top-header {
  background: #0f1829;
  border-color: var(--border);
}

[data-theme="dark"] .sidebar-link.active {
  background: rgba(30, 58, 138, 0.15);
}

[data-theme="dark"] .header-search input {
  background: #111827;
}

[data-theme="dark"] .header-action {
  background: #111827;
}

[data-theme="dark"] .toast {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .modal {
  background: var(--surface);
}

[data-theme="dark"] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3c0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

[data-theme="dark"] .empty-state i {
  opacity: 0.2;
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: #111827;
  border-color: var(--border);
  color: var(--text);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
  background: #1a2236;
}
