/**
 * Design Tokens — wa-gateway
 * موحّدة عبر الموقع واللوحة
 */

:root {
  /* === Brand Colors === */
  --brand-primary: #0d9488; /* Turquoise / Teal */
  --brand-primary-strong: #14b8a6; /* Bright Teal */
  --brand-primary-dark: #0f766e; /* Dark Teal */
  --brand-admin: #0d9488;
  --brand-admin-dark: #0f766e;
  --brand-accent: #f59e0b; /* Amber */
  --brand-accent-hover: #d97706;
  --brand-ink: #080d1a;

  /* === Semantic Colors === */
  --bg: #080d1a; /* Dark Navy */
  --bg-soft: #0f172a;
  --sidebar: #090f1e;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #e2e8f0;

  /* === Text Colors === */
  --text: #0f172a;
  --text-soft: #475569; /* darker gray for better accessibility/contrast */
  --text-muted: #64748b;

  /* === Status Colors === */
  --success: #0d9488;
  --success-bg: #ccfbf1;
  --danger: #e11d48;
  --danger-bg: #ffe4e6;
  --warning: #d97706;
  --warning-bg: #fef3c7;
  --info: #06b6d4;
  --info-bg: #ecfeff;
  --muted: #475569;
  --muted-bg: #f1f5f9;
  --color-success: var(--success);
  --color-warning: var(--warning);
  --color-danger: var(--danger);
  --color-info: var(--info);
  --color-muted: var(--muted);

  /* === Typography === */
  --font-ar: "Cairo", "IBM Plex Sans Arabic", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "SF Mono", Consolas, monospace;

  /* === Spacing === */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* === Border Radius === */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --radius-full: 999px;

  /* === Shadows === */
  --shadow-sm: 0 1px 2px rgba(15, 23, 41, 0.04);
  --shadow: 0 1px 3px rgba(15, 23, 41, 0.08), 0 1px 2px rgba(15, 23, 41, 0.04);
  --shadow-md: 0 4px 6px rgba(15, 23, 41, 0.08);
  --shadow-lg: 0 8px 28px rgba(37, 99, 235, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3);

  /* === Transitions === */
  --transition-fast: 0.15s ease;
  --transition: 0.25s ease;
  --transition-slow: 0.35s ease;

  /* === Layout === */
  --sidebar-width: 248px;
  --sidebar-width-tenant: 220px;
  --topbar-height: 62px;
  --container-max: 1100px;

  /* Backward-compatible aliases used by existing pages. */
  --primary: var(--brand-admin);
  --primary-dark: var(--brand-admin-dark);
  --radius: var(--radius-md);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
