/*
 * SmartWiFi light glass theme for the Filament panels (admin and venue).
 * Soft tirkiz/violet light behind frosted white surfaces. Loaded via the HEAD_END render hook.
 */
:root {
  --sw-ink: #0F1E2E; --sw-muted: #5B6B7C;
  --sw-glass: rgba(255,255,255,.62); --sw-glass-strong: rgba(255,255,255,.8);
  --sw-edge: rgba(255,255,255,.85); --sw-line: rgba(15,30,46,.07);
  --sw-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 12px 32px -20px rgba(15,30,46,.28);
  --sw-tirkiz: #00C9AA;
  --sw-r: 8px; /* every corner like the "Aktiviraj internet" button (prijedlog 15, 5. 11. 2026) */
}
html:not(.dark) .fi-body {
  background:
    linear-gradient(135deg, #DFF7F3 0%, #EAF0FF 55%, #F4E9FF 100%) fixed;
  color: var(--sw-ink);
}
html:not(.dark) .fi-topbar {
  background: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 1px 0 var(--sw-line);
}
html:not(.dark) .fi-sidebar { background: rgba(255,255,255,.45); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-inline-end: 1px solid var(--sw-edge); }
@media (min-width: 1024px) { html:not(.dark) .fi-sidebar { background: transparent; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; } }
html:not(.dark) .fi-sidebar-item-btn { border-radius: var(--sw-r); transition: background .2s ease, transform .15s ease; }
html:not(.dark) .fi-sidebar-item-btn:hover { background: rgba(255,255,255,.6); }
html:not(.dark) .fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
  background: var(--sw-glass-strong); box-shadow: var(--sw-shadow), inset 3px 0 0 var(--sw-tirkiz);
}

/* 8 px corners everywhere: buttons, badges, inputs, dropdowns, modals, cards, login, uploads */
.fi-btn, .fi-icon-btn, .fi-badge, .fi-input-wrp, .fi-dropdown-panel, .fi-dropdown-list-item, .fi-modal-window, .fi-simple-main,
.fi-ta-ctn, .fi-section, .fi-wi-stats-overview-stat, .fi-fo-repeater-item, .fi-tabs, .fi-tabs-item,
.fi-pagination-item, .fi-pagination-items, .fi-fo-file-upload .filepond--panel-root, .fi-fo-toggle-buttons label {
  border-radius: var(--sw-r) !important;
}

/* Glass surfaces: tables, sections, stats, repeaters, form inputs, dropdowns, login card */
html:not(.dark) .fi-ta-ctn,
html:not(.dark) .fi-section:not(.fi-section-not-contained),
html:not(.dark) .fi-wi-stats-overview-stat,
html:not(.dark) .fi-fo-repeater-item,
html:not(.dark) .fi-simple-main {
  background: var(--sw-glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--sw-edge);
  box-shadow: var(--sw-shadow);
  --tw-ring-shadow: 0 0 #0000;
}
/* No overflow:hidden on the table card: it cut off the "Kolone" panel and filter dropdowns when the table is short or empty (8. 11. 2026).
   Corners are rounded on the first and last child instead. */
html:not(.dark) .fi-ta-ctn { border-radius: var(--sw-r); overflow: visible; }
html:not(.dark) .fi-ta-ctn > :first-child { border-top-left-radius: var(--sw-r); border-top-right-radius: var(--sw-r); }
html:not(.dark) .fi-ta-ctn > :last-child { border-bottom-left-radius: var(--sw-r); border-bottom-right-radius: var(--sw-r); }
html:not(.dark) .fi-ta-ctn .fi-dropdown-panel { z-index: 40; }
html:not(.dark) .fi-section:not(.fi-section-not-contained) { border-radius: var(--sw-r); }
html:not(.dark) .fi-ta-header, html:not(.dark) .fi-ta-header-toolbar { background: transparent; }
html:not(.dark) .fi-ta-row:hover { background: rgba(255,255,255,.55); }
html:not(.dark) .fi-input-wrp { background: rgba(255,255,255,.75); border-radius: var(--sw-r); }
html:not(.dark) .fi-dropdown-panel, html:not(.dark) .fi-modal-window {
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid var(--sw-edge);
}
html:not(.dark) .fi-simple-layout { background: transparent; }
html:not(.dark) .fi-header-heading { letter-spacing: -.02em; }
html:not(.dark) .fi-pagination { background: transparent; }

/* Top navigation (admin, desktop): links in the top bar instead of the sidebar.
   The top bar is sticky (Filament .fi-topbar-ctn), so the links stay visible while scrolling. */
@media (min-width: 1024px) {
  html:not(.dark) .fi-topbar { min-height: 4.25rem; background: rgba(255,255,255,.62); }
  html:not(.dark) .fi-topbar-nav-groups {
    margin-inline: auto; gap: 4px; padding: 5px; border-radius: var(--sw-r);
    background: rgba(255,255,255,.55); border: 1px solid var(--sw-edge); box-shadow: var(--sw-shadow);
  }
  html:not(.dark) .fi-topbar-item-btn { border-radius: var(--sw-r); padding: 8px 14px; transition: background .2s ease, box-shadow .2s ease, transform .15s ease; }
  html:not(.dark) .fi-topbar-item-btn:hover { background: rgba(255,255,255,.92); }
  html:not(.dark) .fi-topbar-item-btn:active { transform: scale(.97); }
  html:not(.dark) .fi-topbar-item-label { font-weight: 600; color: var(--sw-ink); }
  /* Text only in the top bar: no icons next to the links (the group chevron stays). */
  .fi-topbar-item-btn > .fi-topbar-item-icon { display: none; }
  html:not(.dark) .fi-topbar-item.fi-active .fi-topbar-item-btn {
    background: linear-gradient(135deg, #00C9AA, #2F6BFF);
    box-shadow: 0 8px 18px -10px rgba(47,107,255,.7);
  }
  html:not(.dark) .fi-topbar-item.fi-active .fi-topbar-item-label,
  html:not(.dark) .fi-topbar-item.fi-active .fi-topbar-item-btn > .fi-icon,
  html:not(.dark) .fi-topbar-item.fi-active .fi-topbar-group-toggle-icon { color: #fff; }
}


/* Desktop: everything smaller (Filament sizes are in rem, so this scales the whole panel: 13.5 px = about 16 % under the default). */
@media (min-width: 1024px) { html { font-size: 13.5px; } }


/* List with one toolbar row (Kampanje, 5. 11. 2026): search · filters side by side · Kolone · + Nova kampanja.
   Filament's header container becomes one flex row; its wrappers use display: contents so their children line up.
   Widths are fixed so the whole row fits on a desktop (about 1000 CSS px wide card); below 1024 px it may wrap. */
body:has(.fi-ta.sw-tb) .fi-header { display: none; }
.sw-tb .fi-ta-header-ctn { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; padding: 12px 16px; }
.sw-tb .fi-ta-header-toolbar,
.sw-tb .fi-ta-header-toolbar > div:not(.fi-ta-actions),
.sw-tb .fi-ta-filters-above-content-ctn,
.sw-tb .fi-ta-filters-above-content-ctn > .fi-ta-filters { display: contents; }
.sw-tb .fi-ta-header-toolbar, .sw-tb .fi-ta-filters-above-content-ctn { padding: 0; border: 0; }
.sw-tb .fi-ta-search-field { order: 1; flex: 0 1 210px; min-width: 150px; }
.sw-tb .fi-ta-filters-header, .sw-tb .fi-ta-filters-actions-ctn { display: none; }
.sw-tb .fi-ta-filters > :not(.fi-ta-filters-header):not(.fi-ta-filters-actions-ctn) {
    order: 2; display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; flex: 0 1 auto; min-width: 0; }
.sw-tb .fi-ta-filters > :not(.fi-ta-filters-header):not(.fi-ta-filters-actions-ctn) > * { flex: 0 0 auto; width: auto; margin: 0; }
.sw-tb .fi-ta-filters .fi-fo-field, .sw-tb .fi-ta-filters .fi-fo-field-wrp { display: flex; align-items: center; gap: 6px; }
.sw-tb .fi-ta-filters .fi-fo-field-label-col, .sw-tb .fi-ta-filters .fi-fo-field-content-col { width: auto; padding: 0; }
.sw-tb .fi-ta-filters label, .sw-tb .fi-ta-filters .fi-fo-field-label-content { font-size: 12px; font-weight: 500; color: var(--sw-muted); white-space: nowrap; }
.sw-tb .fi-ta-filters .fi-input-wrp { width: 120px; min-width: 0; }
.sw-tb .fi-ta-filters .fi-input-wrp select, .sw-tb .fi-ta-filters .fi-select-input { font-size: 13px; }
.sw-tb .fi-ta-col-manager-dropdown, .sw-tb .fi-ta-col-manager-modal { order: 3; flex: 0 0 auto; }
.sw-tb .fi-ta-header-toolbar > .fi-ta-actions { order: 4; margin-inline-start: auto; flex: 0 0 auto; flex-wrap: nowrap; }
.sw-tb .fi-ta-header-toolbar > .fi-ta-actions .fi-btn { white-space: nowrap; }
/* No "Aktivni filteri" row: the chosen values are already visible in the dropdowns. */
.sw-tb .fi-ta-filter-indicators { display: none; }
/* Filter dropdowns without the arrow. */
.sw-tb .fi-ta-filters .fi-select-input, .sw-tb .fi-ta-filters .fi-select-input .fi-select-input-btn { background-image: none; padding-inline-end: 12px; }
@media (max-width: 1023px) { .sw-tb .fi-ta-header-ctn, .sw-tb .fi-ta-filters > :not(.fi-ta-filters-header):not(.fi-ta-filters-actions-ctn) { flex-wrap: wrap; } }

/* Top bar dropdowns (Administracija, profile menu) always open DOWN, under their button (6. 11. 2026).
   The glass top bar (backdrop-filter) changes the containing block of Filament's floating panels, so on some
   browsers/resolutions the computed position flipped the panel above the bar (only a thin strip was visible).
   The panel is now anchored to its own dropdown wrapper; inline top/left from the float script are overridden. */
@media (min-width: 1024px) {
  .fi-topbar :has(> .fi-dropdown-panel) { position: relative; }
  .fi-topbar .fi-dropdown-panel {
    position: absolute !important; top: calc(100% + 8px) !important; bottom: auto !important;
    left: 0 !important; right: auto !important; margin: 0 !important; max-height: none;
  }
  /* Profile menu sits at the right edge: open it to the left, so it stays on screen. */
  .fi-topbar .fi-user-menu .fi-dropdown-panel,
  .fi-topbar .fi-topbar-end .fi-dropdown-panel { left: auto !important; right: 0 !important; }
}

/* Open dropdowns inside glass cards (8. 11. 2026): backdrop-filter makes every card its own layer, so a Select list opened
   near the bottom of a card was drawn UNDER the next card and under "Sačuvaj / Odustani". The card holding the open
   field is lifted above its neighbours while it has focus or an open list. */
html:not(.dark) .fi-section:focus-within,
html:not(.dark) .fi-section:has([aria-expanded="true"]),
html:not(.dark) .fi-fo-repeater-item:focus-within,
html:not(.dark) .fi-fo-repeater-item:has([aria-expanded="true"]) { position: relative; z-index: 30; }

/* Notifications (8. 11. 2026): centred (AppServiceProvider) and larger, same glass as the cards. */
.fi-no-notification {
  width: min(460px, calc(100vw - 32px)) !important; max-width: none !important;
  padding: 20px 22px !important; border-radius: 14px !important;
  background: rgba(255,255,255,.94) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: 0 30px 70px -20px rgba(15,23,42,.45) !important;
}
.fi-no-notification .fi-no-notification-icon { width: 36px !important; height: 36px !important; }
.fi-no-notification .fi-no-notification-title { font-size: 1.3rem !important; line-height: 1.3; font-weight: 700; }
.fi-no-notification .fi-no-notification-body { font-size: 1rem !important; margin-top: 4px; }


/* Campaign list switch "Uživo / Pauza" (prijedlog 2, 8. 11. 2026). */
.sw-onoff { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.sw-onoff i { position: relative; width: 40px; height: 22px; border-radius: 11px; background: #CBD3E3; box-shadow: inset 0 1px 2px rgba(0,0,0,.15); transition: background .2s; flex: none; }
.sw-onoff i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .2s; }
.sw-onoff.on { color: #15803D; } .sw-onoff.on i { background: #16A34A; } .sw-onoff.on i::after { left: 21px; }
.sw-onoff.off { color: #92400E; }
.sw-onoff.on.wait { color: #1D4ED8; } .sw-onoff.on.wait i { background: #3B82F6; }
.sw-onoff.end { color: #64748B; cursor: default; } .sw-onoff.end i { background: #E2E8F0; }
.fi-ta-actions .sw-stop { background: #FEE2E2; color: #B91C1C; box-shadow: none; } .fi-ta-actions .sw-stop:hover { background: #FECACA; }
/* Akcije u redovima tabela (8. 11. 2026): ikonice iste visine kao dugme Stop i prekidač Uživo, izgled ostaje isti. */
.fi-ta-row .fi-ta-actions { align-items: center; }
.fi-ta-row .fi-ta-actions .fi-icon-btn { width: 2rem; height: 2rem; }
.fi-ta-row .fi-ta-actions .fi-btn { min-height: 2rem; height: 2rem; padding-block: 0; }
/* Forma kampanje (8. 11. 2026): kartice u paru iste visine; link vizuala desno s tirkiznom linijom. */
.sw-eq { min-height: 100%; }
.sw-cr-redirect { border-left: 3px solid #14C7B4; padding-left: 16px; }
/* Kartice u paru stvarno iste visine (9. 11. 2026): Filament renders .fi-grid-col > .fi-sc-component > section.sw-eq;
   a flex chain (no percentage heights) makes each card fill the row, so the bottoms line up. */
.fi-grid-col:has(> .fi-sc-component > .sw-eq) { align-self: stretch; display: flex; flex-direction: column; }
.fi-grid-col > .fi-sc-component:has(> .sw-eq) { flex: 1 1 auto; display: flex; flex-direction: column; height: auto; }
.fi-sc-component > .sw-eq { flex: 1 1 auto; height: auto; }
