/* Prilagodljivi tamni način rada za javne stranice. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e8edf0;
  --orange: #ff9b4a;
  --paper: #141b20;
  --line: #36434a;
  --muted: #b0bbc1;
  --night: #0e171e;
  --night-soft: #18252d;
  --surface: #1b252b;
  --surface-raised: #222e35;
  --surface-soft: #202b30;
  --text-soft: #bdc8cd;
  --link: #ffb16e;
}
:root[data-theme="dark"] body { background: var(--paper); color: var(--ink); }
:root[data-theme="dark"] header { background: #141b20f2; border-color: var(--line); }
:root[data-theme="dark"] .top { background: #0b1217; color: #e8edf0; }
:root[data-theme="dark"] .navlinks { background: var(--surface); border-color: var(--line); }
:root[data-theme="dark"] .navlinks a:hover,
:root[data-theme="dark"] .content-body a:not(.btn):hover,
:root[data-theme="dark"] .content-next a:hover { color: var(--link); }
:root[data-theme="dark"] .nav>.app { border-color: #66757d; }
:root[data-theme="dark"] .menu { color: var(--ink); border-color: #52616a; }
:root[data-theme="dark"] .mobilebar { background: var(--surface); border-color: var(--line); color: var(--ink); }
:root[data-theme="dark"] .hero { background: linear-gradient(115deg, #182126, #141b20); }
:root[data-theme="dark"] .hero h1,
:root[data-theme="dark"] .request-page-heading h1 { color: #e8edf0; }
:root[data-theme="dark"] .request-form legend,
:root[data-theme="dark"] .repair-callout strong,
:root[data-theme="dark"] .repair-reasons>p { color: var(--ink); }
:root[data-theme="dark"] .request-form legend>span,
:root[data-theme="dark"] .repair-callout>a,
:root[data-theme="dark"] .photo-preview button { color: var(--link); }
:root[data-theme="dark"] .photo-errors { color: #ffb4a5; }
:root[data-theme="dark"] .hero h1 em { color: #ffad68; }
:root[data-theme="dark"] .hero .lead,
:root[data-theme="dark"] .hero-note,
:root[data-theme="dark"] .facts span,
:root[data-theme="dark"] .content-breadcrumbs,
:root[data-theme="dark"] .content-heading>p,
:root[data-theme="dark"] .content-card p,
:root[data-theme="dark"] .request-page-heading>p,
:root[data-theme="dark"] .request-form label,
:root[data-theme="dark"] .request-submit>span,
:root[data-theme="dark"] .request-delivery-note,
:root[data-theme="dark"] .units-intro p,
:root[data-theme="dark"] .unit-limit,
:root[data-theme="dark"] .request-form label small,
:root[data-theme="dark"] .repair-callout p,
:root[data-theme="dark"] .reason-hint,
:root[data-theme="dark"] .photo-delivery-note,
:root[data-theme="dark"] .map-consent-placeholder p,
:root[data-theme="dark"] .privacy-copy p,
:root[data-theme="dark"] .privacy-copy li { color: var(--text-soft); }
:root[data-theme="dark"] .quick,
:root[data-theme="dark"] .utility-grid,
:root[data-theme="dark"] .hub-content,
:root[data-theme="dark"] .news-feature,
:root[data-theme="dark"] .ebill-box,
:root[data-theme="dark"] .contact-box,
:root[data-theme="dark"] .team-card,
:root[data-theme="dark"] .location-card,
:root[data-theme="dark"] .content-card,
:root[data-theme="dark"] .request-form,
:root[data-theme="dark"] .request-review,
:root[data-theme="dark"] .cities-dialog,
:root[data-theme="dark"] .cookie-banner,
:root[data-theme="dark"] .cookie-dialog,
:root[data-theme="dark"] .dialog,
:root[data-theme="dark"] dialog:not(.cookie-dialog) {
  background-color: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
:root[data-theme="dark"] .support-hub,
:root[data-theme="dark"] .news-section,
:root[data-theme="dark"] .funding-section,
:root[data-theme="dark"] .request-page,
:root[data-theme="dark"] .content-note,
:root[data-theme="dark"] .privacy-notice,
:root[data-theme="dark"] .cities-next,
:root[data-theme="dark"] .ebill-visual,
:root[data-theme="dark"] .map-consent-slot,
:root[data-theme="dark"] .map-actions {
  background-color: var(--surface-soft);
  color: var(--ink);
  border-color: var(--line);
}
:root[data-theme="dark"] .hub-tabs { background: #182228; border-color: var(--line); }
:root[data-theme="dark"] .hub-tabs button { color: var(--text-soft); border-color: var(--line); }
:root[data-theme="dark"] .hub-tabs button[aria-selected="true"] { background: var(--surface-raised); color: var(--ink); }
:root[data-theme="dark"] .hub-panel>a,
:root[data-theme="dark"] .hub-panel>button,
:root[data-theme="dark"] .news-list>a,
:root[data-theme="dark"] .content-heading,
:root[data-theme="dark"] .content-next,
:root[data-theme="dark"] .request-form fieldset,
:root[data-theme="dark"] .request-delivery-note,
:root[data-theme="dark"] .review-row,
:root[data-theme="dark"] .cookie-category,
:root[data-theme="dark"] .privacy-copy th,
:root[data-theme="dark"] .privacy-copy td { border-color: var(--line); }
:root[data-theme="dark"] .hub-panel>.hub-notice,
:root[data-theme="dark"] .news-feature p,
:root[data-theme="dark"] .news-list p,
:root[data-theme="dark"] .content-card .eyebrow,
:root[data-theme="dark"] .review-recipient,
:root[data-theme="dark"] .review-recipient strong,
:root[data-theme="dark"] .review-row dt,
:root[data-theme="dark"] .review-row dd,
:root[data-theme="dark"] .request-secondary,
:root[data-theme="dark"] .request-download,
:root[data-theme="dark"] .request-status,
:root[data-theme="dark"] .privacy-shortcut { color: var(--text-soft); }
:root[data-theme="dark"] .content-note,
:root[data-theme="dark"] .cities-next,
:root[data-theme="dark"] .unit-entry,
:root[data-theme="dark"] .unit-entry .remove-unit,
:root[data-theme="dark"] .add-unit,
:root[data-theme="dark"] .photo-upload,
:root[data-theme="dark"] .photo-preview,
:root[data-theme="dark"] .repair-callout,
:root[data-theme="dark"] .review-notice,
:root[data-theme="dark"] .review-photo-note,
:root[data-theme="dark"] #review-eml,
:root[data-theme="dark"] .privacy-notice {
  background-color: #252d30;
  color: var(--ink);
  border-color: #49565b;
}
:root[data-theme="dark"] .accounting-card { background: #29251f; }
:root[data-theme="dark"] .content-card-mark { background: #293532; color: #b8c5bf; }
:root[data-theme="dark"] .portal,
:root[data-theme="dark"] .photo-num,
:root[data-theme="dark"] .ebill-sheet,
:root[data-theme="dark"] .funding-logos,
:root[data-theme="dark"] .funding-logos>*,
:root[data-theme="dark"] .photo-preview figcaption { background-color: #f2f4f1; color: #26343b; }
:root[data-theme="dark"] .portal .building,
:root[data-theme="dark"] .portal-top,
:root[data-theme="dark"] .portal small,
:root[data-theme="dark"] .portal-row,
:root[data-theme="dark"] .ebill-sheet,
:root[data-theme="dark"] .ebill-sheet * { color: #34434a; }
:root[data-theme="dark"] .balance { background: #e8eceb; color: #34434a; }
:root[data-theme="dark"] .photo-num span { color: #59666b; }
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
  color-scheme: dark;
  background-color: #11191e;
  color: var(--ink);
  border-color: #52616a;
}
:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder { color: #98a6ad; }
:root[data-theme="dark"] input[type="checkbox"],
:root[data-theme="dark"] input[type="radio"] { accent-color: #ff9b4a; }
:root[data-theme="dark"] .cookie-banner { color: var(--ink); }
:root[data-theme="dark"] .cookie-banner a,
:root[data-theme="dark"] .privacy-notice a,
:root[data-theme="dark"] .privacy-copy a,
:root[data-theme="dark"] .content-body a:not(.btn),
:root[data-theme="dark"] .content-read { color: var(--link); }
:root[data-theme="dark"] .cookie-actions button,
:root[data-theme="dark"] .cookie-dialog button,
:root[data-theme="dark"] .map-consent-placeholder button { background: var(--surface-raised); color: var(--ink); border-color: #58666d; }
:root[data-theme="dark"] .cookie-actions [data-cookie-accept],
:root[data-theme="dark"] .cookie-actions [data-cookie-reject] { background: #e5822d; color: #1b2328; border-color: #e5822d; }
:root[data-theme="dark"] .cookie-dialog header { background: transparent; }
:root[data-theme="dark"] .emergency-card,
:root[data-theme="dark"] .office-map { background: #202a2e; }
:root[data-theme="dark"] .back-to-top { background: #10191dcc; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--line, #dce0e2);
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: 600 11px/1.2 'DM Sans', sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s;
}
.theme-toggle:hover { background: #f5822014; border-color: #f58220; }
.theme-toggle:focus-visible { outline: 3px solid #f58220; outline-offset: 3px; }
.theme-toggle-icon { font-size: 15px; line-height: 1; }
:root[data-theme="dark"] .theme-toggle { border-color: #59666d; }
:root[data-theme="dark"] .theme-toggle:hover { background: #ff9b4a20; border-color: var(--orange); }
@media(max-width:1080px) {
  .theme-toggle { width: 40px; min-width: 40px; padding: 8px; }
  .theme-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media(max-width:760px) {
  :root[data-theme="dark"] .navlinks { background: var(--surface); }
  .theme-toggle { width: auto; min-width: 0; justify-content: flex-start; padding: 10px 12px; }
  .theme-toggle-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; }
}
@media(prefers-reduced-motion:reduce) { .theme-toggle { transition: none; } }
