/* چک‌لیست — design tokens
   Default theme is dark. Light theme is optional via html[data-theme="light"].
   Do not use prefers-color-scheme for the default; keep :root dark. */

:root {
  color-scheme: dark;

  /* Surfaces */
  --bg: #0A0F14;
  --bg-glow: rgba(95, 212, 232, 0.07);
  --surface: #141B23;
  --surface-2: #1A232C;
  --surface-hover: #1E2832;
  --surface-translucent: rgba(20, 27, 35, 0.92);

  /* Text */
  --text: #EDEAE4;
  --text-muted: #8A949E;
  --text-faint: #6A7380;

  /* Lines */
  --border: rgba(237, 234, 228, 0.08);
  --border-strong: rgba(237, 234, 228, 0.14);

  /* Accent — cyan, used sparingly */
  --accent: #5FD4E8;
  --accent-hover: #7EE0F0;
  --accent-active: #4BC4DA;
  --accent-text: #04161A;
  --accent-soft: rgba(95, 212, 232, 0.14);
  --accent-ring: rgba(95, 212, 232, 0.5);

  /* Status */
  --danger: #F07567;
  --danger-hover: #F58B80;
  --danger-soft: rgba(240, 117, 103, 0.14);
  --success: #5EC98A;
  --success-soft: rgba(94, 201, 138, 0.14);
  --focus: #5FD4E8;

  /* Item colors (readable on dark) + muted tints for row backgrounds */
  --color-rose: #F07167;
  --color-rose-soft: rgba(240, 113, 103, 0.16);
  --color-amber: #E8B86D;
  --color-amber-soft: rgba(232, 184, 109, 0.16);
  --color-lime: #8FCB6E;
  --color-lime-soft: rgba(143, 203, 110, 0.16);
  --color-cyan: #5FD4E8;
  --color-cyan-soft: rgba(95, 212, 232, 0.16);
  --color-blue: #6BA4F8;
  --color-blue-soft: rgba(107, 164, 248, 0.16);
  --color-violet: #B794F6;
  --color-violet-soft: rgba(183, 148, 246, 0.16);

  /* Typography */
  --font: "Vazirmatn", system-ui, sans-serif;
  --fs-xs: 0.75rem;    /* 12 */
  --fs-sm: 0.8125rem;  /* 13 */
  --fs-md: 0.9375rem;  /* 15 */
  --fs-base: 1rem;     /* 16 */
  --fs-lg: 1.25rem;    /* 20 */
  --fs-xl: 1.625rem;   /* 26 */
  --fs-2xl: 1.875rem;  /* 30 */
  --lh-tight: 1.35;
  --lh-body: 1.7;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;

  /* Spacing (4px base) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.25rem;
  --s-6: 1.5rem;
  --s-8: 2rem;
  --s-10: 2.5rem;
  --s-12: 3rem;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-full: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-pop: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 120ms var(--ease);
  --t: 180ms var(--ease);

  /* Layout */
  --shell-width: 35rem; /* 560px */
  --tap: 2.75rem;       /* 44px */
  --header-h: 3.5rem;
}

/* Optional light theme — activate with <html data-theme="light"> */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #F4F1EB;
  --bg-glow: rgba(12, 110, 118, 0.06);
  --surface: #FFFFFF;
  --surface-2: #F7F4EF;
  --surface-hover: #F3F0EA;
  --surface-translucent: rgba(255, 255, 255, 0.94);
  --text: #1C1917;
  --text-muted: #5C5854;
  --text-faint: #8A8580;
  --border: rgba(28, 25, 23, 0.08);
  --border-strong: rgba(28, 25, 23, 0.14);
  --accent: #0C6E76;
  --accent-hover: #0A5E65;
  --accent-active: #085056;
  --accent-text: #F4FBFB;
  --accent-soft: rgba(12, 110, 118, 0.12);
  --accent-ring: rgba(12, 110, 118, 0.45);
  --danger: #C13515;
  --danger-hover: #A62D12;
  --danger-soft: rgba(193, 53, 21, 0.1);
  --success: #2F7D4A;
  --success-soft: rgba(47, 125, 74, 0.12);
  --focus: #0C6E76;
  --color-rose: #D4524A;
  --color-rose-soft: rgba(212, 82, 74, 0.14);
  --color-amber: #C4882A;
  --color-amber-soft: rgba(196, 136, 42, 0.14);
  --color-lime: #4F8D36;
  --color-lime-soft: rgba(79, 141, 54, 0.14);
  --color-cyan: #0C6E76;
  --color-cyan-soft: rgba(12, 110, 118, 0.14);
  --color-blue: #2F6FBF;
  --color-blue-soft: rgba(47, 111, 191, 0.14);
  --color-violet: #6D4FBF;
  --color-violet-soft: rgba(109, 79, 191, 0.14);
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 8px 24px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 16px 40px rgba(28, 25, 23, 0.12);
  --shadow-pop: 0 12px 32px rgba(28, 25, 23, 0.12), 0 0 0 1px var(--border);
}
