/**
 * Theme variables — light (default) and dark.
 * Original fallback CSS (Velzon assets not bundled).
 */

:root,
[data-bs-theme="light"],
[data-layout-mode="light"] {
  --apj-primary: #0b5cab;
  --apj-primary-hover: #094a8c;
  --apj-primary-soft: rgba(11, 92, 171, 0.12);
  --blue: #0b5cab;
  --orange: #e67e00;
  --apj-success: #198754;
  --apj-info: #0dcaf0;
  --apj-warning: #ffc107;
  --apj-danger: #dc3545;
  --apj-body-bg: #f0f3f7;
  --apj-surface: #ffffff;
  --apj-sidebar-bg: #ffffff;
  --apj-topbar-bg: #ffffff;
  --apj-text: #1f2937;
  --apj-muted: #6b7280;
  --apj-border: #e5e7eb;
  --apj-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  --apj-shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.1);
  --apj-sidebar-width: 260px;
  --apj-sidebar-collapsed: 72px;
  --apj-topbar-height: 64px;
  --apj-radius: 10px;
  --apj-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --apj-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}

[data-bs-theme="dark"],
[data-layout-mode="dark"] {
  --apj-primary: #4d9de0;
  --apj-primary-hover: #6aafeb;
  --apj-primary-soft: rgba(77, 157, 224, 0.18);
  --blue: #4d9de0;
  --orange: #ff9A2E;
  --apj-body-bg: #12151a;
  --apj-surface: #1c2128;
  --apj-sidebar-bg: #1c2128;
  --apj-topbar-bg: #1c2128;
  --apj-text: #e8edf2;
  --apj-muted: #9aa4b2;
  --apj-border: #2d3540;
  --apj-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  --apj-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

[data-bs-theme="dark"] .icon-sun { display: none; }
[data-bs-theme="dark"] .icon-moon { display: block !important; }
[data-bs-theme="light"] .icon-moon { display: none; }
[data-bs-theme="light"] .icon-sun { display: block; }
