:root {
  /* Color palette */
  --color-primary: #ed7424;
  --color-primary-dark: #e8651a;
  --color-primary-light: #ffedd5;
  --color-secondary: #7c3aed;
  --color-accent: #06b6d4;

  --color-success: #16a34a;
  --color-success-light: #dcfce7;
  --color-warning: #d97706;
  --color-warning-light: #fef3c7;
  --color-error: #dc2626;
  --color-error-dark: #b91c1c;
  --color-error-light: #fee2e2;
  --color-info: #2563eb;
  --color-info-light: #dbeafe;

  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-text-inverse: #ffffff;
  --color-bg: #FCFCFC;
  --color-bg-alt: #F5F5F5;
  --color-bg-muted: #F5F5F5;
  --color-surface: #ffffff;
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;

  /* Spacing scale (4px base) */
  --space-3xs: 0.25rem;  /* 4px */
  --space-2xs: 0.5rem;   /* 8px */
  --space-xs: 0.75rem;   /* 12px */
  --space-s: 1rem;       /* 16px */
  --space-m: 1.5rem;     /* 24px */
  --space-l: 2rem;       /* 32px */
  --space-xl: 3rem;      /* 48px */
  --space-2xl: 4rem;     /* 64px */
  --space-3xl: 6rem;     /* 96px */

  /* Type scale (shifted down: base = 14px) */
  --text-2xs: 0.5625rem; /* 9px */
  --text-xs: 0.6875rem;  /* 11px */
  --text-sm: 0.8125rem;  /* 13px */
  --text-base: 0.875rem; /* 14px */
  --text-md: 1rem;       /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.375rem;   /* 22px */
  --text-2xl: 1.625rem;  /* 26px */
  --text-3xl: 2rem;      /* 32px */
  --text-4xl: 2.625rem;  /* 42px */

  /* Line heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;

  /* Font weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Font family */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, monospace;

  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  /* Layout */
  --max-width: 54rem;    /* 864px */
  --sidebar-width: 16rem;

  /* Progress */
  --progress-height: 3px;

  /* Panel surfaces (sidenav, popovers, drawers) */
  --color-panel: #F8F8F8;
  --color-panel-hover: rgba(0,0,0,0.04);
  --color-panel-active: rgba(0,0,0,0.06);
  --color-panel-border: #F0F0F0;

  /* Sidenav layout */
  --sidenav-width: 16rem;
  --sidenav-width-collapsed: 4rem;

  /* Drawer */
  --drawer-width: 54rem;
  --drawer-min-width: 40rem;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-arabic-v15-arabic_latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-arabic-v15-arabic_latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-arabic-v15-arabic_latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-arabic-v15-arabic_latin-700.woff2") format("woff2");
}

[dir="rtl"] {
  --font-sans: "IBM Plex Sans Arabic", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
