/* POU Plava: vrijednosti boja su u tokens.css; DaisyUI paleta i stari nazivi ovdje samo upućuju na njih. */
html[data-theme="light"] { color-scheme: light; --color-success-content: #ffffff; --color-warning-content: #ffffff; }
html[data-theme="dark"] { color-scheme: dark; --color-success-content: #052e16; --color-warning-content: #1a0f02; }
:root, html[data-theme] {
  --color-base-100: var(--surface);
  --color-base-200: var(--bg);
  --color-base-300: var(--subtle);
  --color-base-content: var(--ink);
  --color-primary: var(--primary);
  --color-primary-content: var(--on-primary);
  --color-secondary: var(--primary-soft);
  --color-secondary-content: var(--primary);
  --color-accent: var(--accent);
  --color-accent-content: var(--on-accent);
  --color-neutral: var(--deep);
  --color-neutral-content: var(--on-deep);
  --color-info: var(--primary);
  --color-info-content: var(--on-primary);
  --color-success: var(--success);
  --color-warning: var(--warning);
  --color-error: var(--danger);
  --color-error-content: var(--on-danger);
  --radius-selector: 1rem;
  --radius-field: 0.625rem;
  --radius-box: 1rem;
  --size-selector: 0.25rem;
  --size-field: 0.25rem;
  --border: 1px;
  --depth: 0;
  --noise: 0;
}
/* Stari nazivi: samo upućuju na tokene. Nove stranice ih ne koriste. */
html[data-theme] {
  --page-bg: var(--bg);
  --section-bg: var(--subtle);
  --footer-bg: var(--subtle);
  --text: var(--ink);
  --text-muted: var(--ink-muted);
  --pou-border: var(--line);
  --accent-hover: var(--primary-strong);
  --button-bg: var(--primary);
  --button-text: var(--on-primary);
  --education-bg: var(--primary-soft);
  --education-ink: var(--primary);
  --education-art: var(--line);
  --education-arrow: var(--primary);
  --badge-bg: var(--primary-soft);
  --badge-ink: var(--primary);
  --badge-paid-bg: var(--subtle);
  --badge-paid-ink: var(--ink);
  --callout-bg: var(--primary-soft);
  --warm-bg: var(--cat-dogadanja);
  --warm-ink: var(--ink);
  --paper: var(--bg); --muted: var(--ink-muted); --navy: var(--deep);
  --orange: var(--primary); --brand: var(--primary);
  --education-accent: var(--primary);
}
.brand-logo{display:block;width:auto;height:30.8px;flex-shrink:0;object-fit:contain}
.brand .brand-name{display:block;color:var(--text)}
body{background:var(--page-bg);color:var(--text)}
.theme-control{position:relative;display:inline-flex;align-items:center;justify-content:space-between;gap:10px;width:76px;height:40px;padding:8px;border:1px solid var(--pou-border);border-radius:24px;background:var(--surface);color:var(--text-muted);flex-shrink:0;cursor:pointer}
.theme-control::before{content:'';position:absolute;left:4px;top:4px;width:30px;height:30px;border-radius:50%;background:var(--button-bg);transition:transform .2s}
.theme-control svg{position:relative;width:20px;height:20px;z-index:1;flex-shrink:0}
.theme-control .theme-sun{color:var(--button-text)}
.theme-control[aria-checked="true"]::before{transform:translateX(36px)}
.theme-control[aria-checked="true"] .theme-sun{color:var(--text-muted)}
.theme-control[aria-checked="true"] .theme-moon{color:var(--button-text)}
@media(prefers-reduced-motion:reduce){.theme-control::before{transition:none}}
.utility .wrap,.utility-links{align-items:center}
.education,.site-footer,.footer{background:var(--section-bg)}
.site-footer,.footer{background:var(--footer-bg)}
.education-feature{background:var(--education-bg)}
.education-feature .eyebrow,.education-help strong{color:var(--education-ink)}
.learning-art span{background:var(--education-art)}.learning-art i{color:var(--education-arrow)}
.course,.page-home .course{border-color:var(--pou-border)}
.badge{background:var(--badge-bg);color:var(--badge-ink)}
.badge.paid,.page-content .badge.paid{background:var(--badge-paid-bg);color:var(--badge-paid-ink)}
.advice{background:var(--callout-bg)}.advice p{color:var(--text-muted)}
.newsletter{background:var(--warm-bg)}.newsletter .eyebrow,.newsletter p:not(.eyebrow){color:var(--warm-ink)}
.dark,.primary,.nav-contact,.home-filter-form .btn,.page-content :is(.btn-primary,.btn-info,.btn-success){background:var(--button-bg);border-color:var(--button-bg);color:var(--button-text)}
.dark:hover,.primary:hover,.nav-contact:hover,.home-filter-form .btn:hover{background:var(--primary-strong);border-color:var(--primary-strong);color:var(--on-primary)}
.orange{background:var(--accent);color:var(--on-accent)}.orange:hover{background:var(--accent);box-shadow:inset 0 0 0 2px var(--on-accent)}

.page-content .home-filter-form .btn-outline,.page-content .btn-outline,.outline{background:transparent;color:var(--text);border-color:var(--pou-border)}
.page-content .home-filter-form .btn-primary{background:var(--button-bg);color:var(--button-text);border-color:var(--button-bg)}
.page-content .home-filter-form .btn-primary:hover{background:var(--primary-strong);color:var(--on-primary);border-color:var(--primary-strong)}
.page-content .btn-secondary{background:var(--callout-bg);border-color:var(--pou-border);color:var(--text)}
.page-content .btn-secondary{background:var(--color-secondary);color:var(--color-secondary-content);border-color:var(--color-secondary)}
.page-content .btn-info{background:var(--color-info);color:var(--color-info-content);border-color:var(--color-info)}
.page-content .btn-success{background:var(--color-success);color:var(--color-success-content);border-color:var(--color-success)}
.page-content .btn-warning{background:var(--color-warning);color:var(--color-warning-content);border-color:var(--color-warning)}
.page-content .btn-danger,.page-content .btn-error{background:var(--color-error);color:var(--color-error-content);border-color:var(--color-error)}
.page-content :is(.card,.detalji,.course,.content-panel,.document-group,.movie-item,.table-responsive,table,.dropdown-menu,.modal-content){background:var(--surface);color:var(--text);border-color:var(--pou-border)}
.page-content :is(.program-summary,.card-title-event,.empty-state,.list-group-item,.movie-term,th){background:var(--section-bg);color:var(--text);border-color:var(--pou-border)}
.page-content tbody tr:hover{background:var(--section-bg)}
.page-content :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]),select,textarea){background:var(--surface);color:var(--text);border-color:var(--line-strong)}
.home-filter-form select{background:var(--surface);color:var(--text);border-color:var(--line-strong)}
.page-content :is(.text-black,.text-dark){color:var(--text)}
.page-content :is(.text-primary,.text-secondary,.card-title-event){color:var(--primary)}
.page-content .errorlist{background:var(--color-error);color:var(--color-error-content)}
.page-content .text-danger,.page-content .invalid-feedback{color:var(--color-error)}
.poster-placeholder{color:var(--text-muted);background:var(--section-bg)}
.skip{background:var(--surface);color:var(--text)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:var(--focus)}
/* The stage and membership card are fixed artwork, independent of theme. */
.hero-stage{color:#fff}.hero-stage .outline-tag{color:#fff}
.membership{color:var(--deep)}
@media(max-width:800px){.utility-links{flex-wrap:wrap;gap:7px 14px}.theme-control{margin-left:auto}.utility .wrap{padding-block:7px}}
@media print{html[data-theme][data-theme]{--bg:#fff;--surface:#fff;--subtle:#fff;--ink:#0f1d2e;--ink-muted:#475569;--line:#ccc}.theme-control{display:none}}
