/* MasterPanel design tokens — 100% original.
   Four real themes, selected with [data-theme] on <html>.
   Every component in components.css reads these variables and nothing else,
   so a new theme is only a new [data-theme] block below. */

:root {
  /* Spacing scale */
  --mp-space-1: 4px;
  --mp-space-2: 8px;
  --mp-space-3: 12px;
  --mp-space-4: 16px;
  --mp-space-5: 24px;
  --mp-space-6: 32px;
  --mp-space-7: 48px;

  /* Radii */
  --mp-radius-sm: 4px;
  --mp-radius-md: 8px;
  --mp-radius-lg: 12px;

  /* Layout */
  --mp-sidebar-width: 240px;
  --mp-topbar-height: 56px;
  --mp-content-max: none;

  /* Type — system fonts only, never a web font */
  --mp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Noto Sans Arabic", "Helvetica Neue", Arial, sans-serif;
  --mp-font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas,
    monospace;
  --mp-font-size: 15px;
  --mp-line-height: 1.55;
}

/* ---------- Light (default, Webuzo-like) ---------- */
:root,
[data-theme="light"] {
  --mp-bg: #eef1f4;
  --mp-surface: #ffffff;
  --mp-surface-muted: #f6f8fa;
  --mp-text: #1c2733;
  --mp-text-muted: #5b6b7c;
  --mp-text-on-accent: #ffffff;
  --mp-border: #d7dee6;
  --mp-border-strong: #b9c4d0;
  --mp-accent: #2b7cd3;
  --mp-accent-hover: #1f66b3;
  --mp-accent-soft: #dbeafe;
  --mp-danger: #dc2626;
  --mp-danger-soft: #fee2e2;
  --mp-success: #15803d;
  --mp-success-soft: #dcfce7;
  --mp-warning: #b45309;
  --mp-warning-soft: #fef3c7;
  --mp-sidebar-bg: #232f3e;
  --mp-sidebar-text: #d5dde6;
  --mp-sidebar-text-muted: #8fa1b3;
  --mp-sidebar-active-bg: #2b7cd3;
  --mp-sidebar-active-text: #ffffff;
  --mp-topbar-bg: #ffffff;
  --mp-shadow: 0 1px 3px rgb(16 24 40 / 0.1);
  --mp-focus-ring: 0 0 0 3px rgb(43 124 211 / 0.35);
}

/* ---------- Dark ---------- */
[data-theme="dark"] {
  --mp-bg: #0e141b;
  --mp-surface: #17202b;
  --mp-surface-muted: #1f2b39;
  --mp-text: #e6edf3;
  --mp-text-muted: #93a3b5;
  --mp-text-on-accent: #04121f;
  --mp-border: #2b3948;
  --mp-border-strong: #43566b;
  --mp-accent: #4d9fff;
  --mp-accent-hover: #7db9ff;
  --mp-accent-soft: #0c2f42;
  --mp-danger: #f87171;
  --mp-danger-soft: #3f1d1d;
  --mp-success: #4ade80;
  --mp-success-soft: #12351f;
  --mp-warning: #fbbf24;
  --mp-warning-soft: #3a2c07;
  --mp-sidebar-bg: #121a23;
  --mp-sidebar-text: #c3d0de;
  --mp-sidebar-text-muted: #6b7d92;
  --mp-sidebar-active-bg: #4d9fff;
  --mp-sidebar-active-text: #04121f;
  --mp-topbar-bg: #17202b;
  --mp-shadow: 0 1px 3px rgb(0 0 0 / 0.5);
  --mp-focus-ring: 0 0 0 3px rgb(56 189 248 / 0.4);
}

/* ---------- Classic (warm paper, serif, deep green) ---------- */
[data-theme="classic"] {
  --mp-font: Georgia, "Nimbus Roman", "Times New Roman", serif;
  --mp-font-mono: ui-monospace, Menlo, Consolas, monospace;
  --mp-radius-sm: 2px;
  --mp-radius-md: 4px;
  --mp-radius-lg: 6px;
  --mp-bg: #f6f1e5;
  --mp-surface: #fffdf4;
  --mp-surface-muted: #efe8d3;
  --mp-text: #2e2a21;
  --mp-text-muted: #6f6653;
  --mp-text-on-accent: #ffffff;
  --mp-border: #d9cfb6;
  --mp-border-strong: #b3a582;
  --mp-accent: #2f6b3a;
  --mp-accent-hover: #24552d;
  --mp-accent-soft: #ddebd9;
  --mp-danger: #a83226;
  --mp-danger-soft: #f6ddd7;
  --mp-success: #2f6b3a;
  --mp-success-soft: #ddebd9;
  --mp-warning: #8a5a00;
  --mp-warning-soft: #f3e5bd;
  --mp-sidebar-bg: #2f2a20;
  --mp-sidebar-text: #e9e0c9;
  --mp-sidebar-text-muted: #a89a7c;
  --mp-sidebar-active-bg: #2f6b3a;
  --mp-sidebar-active-text: #ffffff;
  --mp-topbar-bg: #fffdf4;
  --mp-shadow: 0 1px 2px rgb(46 42 33 / 0.18);
  --mp-focus-ring: 0 0 0 3px rgb(47 107 58 / 0.35);
}

/* ---------- Modern (violet accent, roomy radii, airy spacing) ---------- */
[data-theme="modern"] {
  --mp-radius-sm: 8px;
  --mp-radius-md: 14px;
  --mp-radius-lg: 20px;
  --mp-space-4: 20px;
  --mp-space-5: 28px;
  --mp-bg: #eef0f8;
  --mp-surface: #ffffff;
  --mp-surface-muted: #e7e9f4;
  --mp-text: #14141f;
  --mp-text-muted: #6a6a80;
  --mp-text-on-accent: #ffffff;
  --mp-border: #dfe2f0;
  --mp-border-strong: #c2c6de;
  --mp-accent: #6d28d9;
  --mp-accent-hover: #5b21b6;
  --mp-accent-soft: #ede9fe;
  --mp-danger: #e11d48;
  --mp-danger-soft: #ffe4e6;
  --mp-success: #059669;
  --mp-success-soft: #d1fae5;
  --mp-warning: #d97706;
  --mp-warning-soft: #fef3c7;
  --mp-sidebar-bg: #1e1b38;
  --mp-sidebar-text: #ddd9f5;
  --mp-sidebar-text-muted: #8f89bd;
  --mp-sidebar-active-bg: #6d28d9;
  --mp-sidebar-active-text: #ffffff;
  --mp-topbar-bg: #ffffff;
  --mp-shadow: 0 6px 18px rgb(20 20 31 / 0.08);
  --mp-focus-ring: 0 0 0 3px rgb(109 40 217 / 0.3);
}
