@import url("https://fonts.googleapis.com/css2?family=Mulish:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap");
/* PONS — Design tokeni (Faza 1, v2). Izvor istine: design/DESIGN.md + design/pons-dashboard-demo.html.

   Svetla tema = :root. Tamna tema = <html data-theme="dark"> (pons-theme.js ga uvek postavlja: sačuvan izbor ili
   prefers-color-scheme), ali SAMO unutar elementa sa atributom data-ui. Atribut se dodaje tek kad je ekran (ili njegov
   deo) migriran, da nemigrirani delovi sa tvrdo kodiranim bojama ne bi izgledali polovično tamni.
   Prekidač i čuvanje izbora (localStorage 'pons-theme'): pons-theme.js.

   Brend salona: ekrani ubrizgavaju <style id="soze-theme-override"> POSLE ovog fajla sa :root{--rose:…}.
   --teal i sve izvedene (-ink, -solid, teal2, hero) računaju se iz --rose, pa brend prepisuje SAMO akcenat.
   --deep, --bg, --surface, --text su PONS i ne zavise od brenda.

   Ukljucivanje (u head, PRE glavnog style bloka):
     <link rel="stylesheet" href="pons-theme.css?v=2"> */

:root{
  color-scheme:light;
  /* ── PONS površine (tačno kao demo) ── */
  --bg:#EFE6DC;--bg2:#E0D2C7;--surface:#FBF7F2;--surface2:#F3ECE4;
  --line:rgba(15,63,68,.12);--text:#0F3F44;--muted:rgba(15,63,68,.58);
  --deep:#0F3F44;--cream:#E0D2C7;
  --hero-text:#E0D2C7;
  --shadow:0 10px 30px -14px rgba(15,63,68,.35);
  --r-lg:22px;--r-md:16px;--r-sm:10px;--r-xs:6px;--r:var(--r-md);

  /* ── Akcenat (brend): --rose je ulaz, ostalo se izvodi ── */
  --rose:#217F72;
  --teal:var(--rose);
  --teal2:color-mix(in srgb,var(--teal) 60%,#42CCB8);
  --hero-a:var(--deep);--hero-b:var(--teal);

  /* ── Čitljivost (nisu u demou; izmereno ≥4.5:1 tekst, ≥3:1 obrubi) ── */
  --muted-strong:rgba(15,63,68,.78);
  --line-strong:rgba(15,63,68,.58);
  --teal-ink:color-mix(in srgb,var(--teal) 25%,var(--text));
  --teal-solid:color-mix(in srgb,var(--teal) 55%,#000);
  --on-teal:#F5EFE8;
  --amber:#E5A043;--amber-ink:#76500F;

  /* ── Gradijenti (samo sidebar, hero, stubići, primarno dugme, aktivna nav stavka, avatar, meter, slot, donja traka) ── */
  --sidebar-bg:linear-gradient(160deg,var(--deep),#0B3036 70%);
  --grad-primary:linear-gradient(135deg,#217F72,#0F3F44);--on-primary:#FFFFFF;

  /* ── Tipografija ── */
  --font:Mulish,system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-display:"Playfair Display",Georgia,serif;
  --tr:.18s cubic-bezier(.4,0,.2,1);

  /* ══ ALIASI starih promenljivih (moduli ih i dalje koriste) ══ */
  --rose-dark:var(--deep);
  --rose-light:color-mix(in srgb,var(--rose) 24.5%,#fff);
  --rose-xlight:color-mix(in srgb,var(--rose) 8.5%,#fff);
  --pink:var(--rose);--pink-light:var(--rose-light);--pink-dark:var(--rose-dark);
  --gold:#8E7050;--gold-light:#EDE5DA;
  --white:var(--surface);
  --g50:var(--surface);--g100:var(--surface2);
  --g200:color-mix(in srgb,var(--text) 12%,var(--surface));
  --g300:color-mix(in srgb,var(--text) 20%,var(--surface));
  --g400:var(--muted-strong);--g500:var(--muted-strong);
  --g600:color-mix(in srgb,var(--text) 72%,var(--surface));
  --g700:color-mix(in srgb,var(--text) 84%,var(--surface));
  --g800:var(--text);
  --gray-50:var(--g50);--gray-100:var(--g100);--gray-200:var(--g200);--gray-300:var(--g300);--gray-400:var(--g400);
  --gray-500:var(--g500);--gray-600:var(--g600);--gray-700:var(--g700);--gray-800:var(--g800);--gray-900:var(--text);
  --green:#22c55e;--green-light:#dcfce7;--green-dark:#166534;
  --red:#ef4444;--red-light:#fee2e2;--red-dark:#991b1b;
  --blue:#3b82f6;--blue-light:#dbeafe;--blue-dark:#1e40af;
  --orange:#f59e0b;--orange-light:#fef3c7;--orange-dark:#78350f;
  --purple:#8b5cf6;--purple-light:#ede9fe;--purple-dark:#5b21b6;
  --amber-light:var(--orange-light);--yellow:var(--orange);
  --shadow-sm:0 1px 3px rgba(0,0,0,.07);--shadow-md:var(--shadow);--shadow-lg:0 12px 40px rgba(0,0,0,.14);
  --dark:var(--deep);--nav-bg:var(--deep);
}

/* ── Tamna tema ──
   Važi za element sa data-ui (ili njegovu decu) kad je <html data-theme="dark">.
   pons-theme.js uvek postavi data-theme (sačuvan izbor ili prefers-color-scheme), pa nema posebnog @media bloka.
   Tokeni se vezuju za element (ne samo :root), pa se migrirani deo stranice može menjati dok ostatak ostaje svetao.
   Zavisni aliasi se ponavljaju jer se var() razrešava tamo gde je deklarisan. */
:root[data-theme="dark"][data-ui],:root[data-theme="dark"] [data-ui]{
  color-scheme:dark;
  --bg:#092629;--bg2:#0B2F33;--surface:#0F3F44;--surface2:#124850;
  --line:rgba(224,210,199,.10);--text:#E0D2C7;--muted:rgba(224,210,199,.58);
  --hero-a:var(--teal);--hero-b:var(--deep);
  --shadow:0 18px 40px -18px rgba(0,0,0,.6);
  --muted-strong:rgba(224,210,199,.8);--line-strong:rgba(224,210,199,.56);
  --teal-ink:color-mix(in srgb,var(--teal) 25%,var(--text));
  --amber-ink:#F0B35A;
  --rose-light:color-mix(in srgb,var(--rose) 30%,var(--surface));
  --rose-xlight:color-mix(in srgb,var(--rose) 14%,var(--surface));
  --pink-light:var(--rose-light);
  --gold:#C2A07C;--gold-light:color-mix(in srgb,var(--gold) 22%,var(--surface));
  --green-light:color-mix(in srgb,var(--green) 18%,var(--surface));--green-dark:color-mix(in srgb,var(--green) 38%,var(--text));
  --red-light:color-mix(in srgb,var(--red) 18%,var(--surface));--red-dark:color-mix(in srgb,var(--red) 38%,var(--text));
  --blue-light:color-mix(in srgb,var(--blue) 18%,var(--surface));--blue-dark:color-mix(in srgb,var(--blue) 38%,var(--text));
  --orange-light:color-mix(in srgb,var(--orange) 18%,var(--surface));--orange-dark:color-mix(in srgb,var(--orange) 45%,var(--text));
  --purple-light:color-mix(in srgb,var(--purple) 18%,var(--surface));--purple-dark:color-mix(in srgb,var(--purple) 45%,var(--text));
  --amber-light:var(--orange-light);
  --shadow-sm:0 1px 3px rgba(0,0,0,.4);--shadow-md:var(--shadow);--shadow-lg:0 24px 60px -20px rgba(0,0,0,.55);
  --white:var(--surface);
  --g50:var(--surface);--g100:var(--surface2);
  --g200:color-mix(in srgb,var(--text) 12%,var(--surface));
  --g300:color-mix(in srgb,var(--text) 20%,var(--surface));
  --g400:var(--muted-strong);--g500:var(--muted-strong);
  --g600:color-mix(in srgb,var(--text) 72%,var(--surface));
  --g700:color-mix(in srgb,var(--text) 84%,var(--surface));
  --g800:var(--text);
  --gray-50:var(--g50);--gray-100:var(--g100);--gray-200:var(--g200);--gray-300:var(--g300);--gray-400:var(--g400);
  --gray-500:var(--g500);--gray-600:var(--g600);--gray-700:var(--g700);--gray-800:var(--g800);--gray-900:var(--text);
}

/* ── Prekidač teme (krug iz dugmeta; View Transitions) ── */
.theme{width:40px;height:40px;border-radius:999px;background:var(--surface);border:1px solid var(--line-strong);display:grid;place-items:center;color:var(--text);cursor:pointer;padding:0}
.theme svg{width:18px;height:18px}
.theme .sun{display:none}
:root[data-theme="dark"] .theme .sun{display:block}
:root[data-theme="dark"] .theme .moon{display:none}
::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}
::view-transition-new(root){clip-path:circle(0 at var(--cx,90%) var(--cy,5%));animation:pons-reveal .7s cubic-bezier(.2,.8,.2,1) forwards}
@keyframes pons-reveal{to{clip-path:circle(160vmax at var(--cx,90%) var(--cy,5%))}}
:focus-visible{outline:2px solid var(--teal2);outline-offset:3px}
@media (prefers-reduced-motion:reduce){::view-transition-new(root){animation:none;clip-path:none}}
