:root {
  /* ===============================
     THEME COLORS (JS CONTROLS THESE)
     =============================== */
  --primary: #22344B;
  --secondary: #A83250;

  /* Derived colors (auto-update) */
  --primary-gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --primary-gradient-light: linear-gradient(
    135deg,
   rgba(34, 52, 75, 0.15),
   rgba(168, 50, 80, 0.15)

  );

  /* ===============================
     BASE UI COLORS
     =============================== */
  --bg: #f6fbff;
  --card: #ffffff;
  --text: #222;
  --muted: #6c757d;
  --warn: #dc3545;
   --info: #0dcaf0;
  --success: #198754;
  --neutral: #6c757d;

  /* White overlays */
  --white-rgba-15: rgba(255,255,255,0.15);
  --white-rgba-18: rgba(255,255,255,0.18);
  --white-rgba-25: rgba(255,255,255,0.25);

  /* ===============================
     LAYOUT SIZES (KEEP AS-IS)
     =============================== */
  --topbar-max-height: 60px;
  --topbar-height: 60px;
  --sidebar-width: 65px;
  --sidebar-top-offset: 51px;
  --content-margin-left: 75px;
  --content-margin-top: 45px;
  --footer-height: 45px;

  /* ===============================
     Z-INDEX SYSTEM
     =============================== */
  --z-footer: 1000;
  --z-content: 1500;
  --z-sidebar: 3000;
  --z-topbar: 9999;
  --z-submenu: 4000;
  --z-user-menu: 9999;
  --z-modal: 9999;

  /* ===============================
     SIZES
     =============================== */
  --control-height: 34px;
  --module-btn-size: 38px;
  --menu-link-height: 52px;
  --icon-size: 16px;
}

:root[data-theme="dark"] {
  --bg: #0f172a;
  --card: #020617;
  --text: #e5e7eb;
}