/* Design tokens. Change colors here only; components read these variables. */
:root {
  --app-primary: #4f46e5;
  --app-primary-strong: #4338ca;
  --app-primary-soft: #eef2ff;
  --app-accent: #0d9488;
  --app-accent-soft: #e6f6f4;
  --app-success: #15803d;
  --app-success-soft: #e8f6ec;
  --app-warning: #b45309;
  --app-warning-soft: #fdf3e2;
  --app-danger: #b91c1c;
  --app-danger-soft: #fdecec;

  --app-bg: #f5f6fb;
  --app-surface: #ffffff;
  --app-border: #e3e6ef;
  --app-text: #1f2333;
  --app-text-muted: #5b6275;

  --app-radius-sm: 0.375rem;
  --app-radius: 0.75rem;
  --app-radius-lg: 1rem;
  --app-space-1: 0.25rem;
  --app-space-2: 0.5rem;
  --app-space-3: 1rem;
  --app-space-4: 1.5rem;
  --app-space-5: 2.5rem;
  --app-shadow-sm: 0 1px 2px rgb(16 24 40 / 6%);
  --app-shadow: 0 4px 16px rgb(16 24 40 / 8%);

  --app-font: "Segoe UI", "Noto Sans Arabic", "Noto Sans", Tahoma, system-ui, sans-serif;
  --app-sidebar-width: 15rem;
  --app-focus-ring: 0 0 0 3px rgb(79 70 229 / 45%);

  --app-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --app-duration: 180ms;

  /* Map onto Bootstrap */
  --bs-primary: var(--app-primary);
  --bs-primary-rgb: 79, 70, 229;
  --bs-body-bg: var(--app-bg);
  --bs-body-color: var(--app-text);
  --bs-body-font-family: var(--app-font);
  --bs-border-color: var(--app-border);
  --bs-border-radius: var(--app-radius-sm);
  --bs-link-color: var(--app-primary);
  --bs-link-color-rgb: 79, 70, 229;
  --bs-link-hover-color: var(--app-primary-strong);
}

@media (prefers-reduced-motion: reduce) {
  :root { --app-duration: 0ms; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
