/* The panel's foundations: its font (served from the panel itself), colours, sizes and the base text.
   layout.css (the app shell) and components.css (cards, buttons, forms...) build on these names only. */

@font-face {
  font-family: "Vazirmatn";
  src: url("/static/fonts/Vazirmatn-wght.woff2") format("woff2");
  font-weight: 100 900;               /* one variable file holds every weight */
  font-style: normal;
  font-display: swap;
}

:root {
  /* surfaces and text */
  --bg:#f6f5fb; --surface:#fff; --surface-2:#f3f1fa; --surface-3:#faf9fe;
  --ink:#14122b; --ink-2:#3b3a52; --muted:#5f5e76;
  --line:#ebe8f4; --line-2:#dcd7ec;
  /* brand: violet and indigo, a pink spark for counts */
  --primary:#1b1840; --accent:#6d28d9; --accent-2:#4f46e5; --accent-ink:#fff; --accent-soft:#f1ecfe; --spark:#db2777;
  --grad:linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  --grad-side:linear-gradient(180deg, #1b1840 0%, #231f55 60%, #2a1760 100%);
  /* states: always with an icon or text too, never colour alone */
  --ok:#047857; --ok-soft:#e7f7f0; --warn:#b45309; --warn-soft:#fdf3e2; --bad:#b91c1c; --bad-soft:#fdecec;
  --info:#1d4ed8; --info-soft:#e8effd;
  /* shape and depth */
  --radius:16px; --radius-sm:10px;
  --shadow:0 1px 2px rgba(20,18,43,.04), 0 8px 24px -14px rgba(20,18,43,.12);
  --shadow-lg:0 16px 36px -14px rgba(76,29,149,.28);
  --glow:0 8px 20px -8px rgba(109,40,217,.55);
  /* spacing: a 4px step */
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px;
  /* type scale: 12 13 15 16 22 28 */
  --t-xs:12px; --t-sm:13px; --t-base:15px; --t-md:16px; --t-lg:22px; --t-xl:28px;
  --side:232px; --ease:cubic-bezier(.2,.7,.2,1);
}

* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
html, body { overflow-x:clip; }
body { margin:0; color:var(--ink); font:var(--t-base)/1.8 "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
       background:radial-gradient(1000px 560px at 105% -10%, rgba(124,58,237,.07), transparent 60%), var(--bg);
       background-attachment:fixed; }
a { color:var(--accent); text-decoration:none; transition:color .15s var(--ease); }
a:hover { color:var(--accent-2); }
::selection { background:#ddd6fe; color:#1e1b4b; }
:focus-visible { outline:3px solid #8b5cf6; outline-offset:2px; border-radius:6px; }
* { scrollbar-width:thin; scrollbar-color:#cfc6ea transparent; }
.ic { flex:none; vertical-align:-3px; }
.num, td.num, .stat b, code { font-variant-numeric:tabular-nums; }
.muted { color:var(--muted); font-size:var(--t-sm); }
.ok { color:var(--ok); } .bad { color:var(--bad); } .warn { color:var(--warn); }
hr { border:0; border-top:1px solid var(--line); margin:var(--s4) 0; }
code { background:var(--surface-2); padding:1px 6px; border-radius:4px; direction:ltr; display:inline-block; font-size:var(--t-sm); }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation:none !important; transition:none !important; }
}
