/* ========================================
   KongresApp - Custom CSS
   ======================================== */

/* ---- Admin Layout ---- */
.admin-body {
  background: #f0f2f5;
  min-height: 100vh;
}

.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  min-height: 100vh;
  background: linear-gradient(180deg, #1a3a6c 0%, #0f2249 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.admin-sidebar .sidebar-brand {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-sidebar .sidebar-brand:hover { color: #fff; }

.admin-sidebar .sidebar-brand .brand-icon {
  font-size: 1.5rem;
  color: #fbbf24;
}

.admin-sidebar .sidebar-brand .brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}

.admin-sidebar .sidebar-brand .brand-version {
  font-size: 0.65rem;
  opacity: 0.6;
}

.admin-sidebar .nav-section {
  padding: 0.9rem 1.5rem 0.3rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fbbf24;
  font-weight: 700;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* Crta koja razdvaja stavke UNUTAR iste sekcije (npr. Potvrde | Placanja).
   Jaca je od crte iznad naslova sekcije (0.08) jer ondje razdvajanje nosi i
   zuti naslov, a ovdje crta stoji sama pa bi se pri 0.08 jedva vidjela. */
.admin-sidebar .nav-crta {
  height: 1px;
  margin: 0.4rem 1.5rem;
  background: rgba(255,255,255,0.18);
  list-style: none;
}

.admin-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.5rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  border-left: 3px solid transparent;
  transition: all 0.18s;
  text-decoration: none;
}

.admin-sidebar .nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.07);
  border-left-color: rgba(255,255,255,0.3);
}

.admin-sidebar .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.12);
  border-left-color: #fbbf24;
  font-weight: 600;
}

.admin-sidebar .nav-link i {
  font-size: 1rem;
  width: 1.2rem;
  text-align: center;
  opacity: 0.85;
}

.admin-sidebar .nav-link .badge {
  margin-left: auto;
  font-size: 0.65rem;
}

.admin-sidebar .sidebar-footer {
  margin-top: auto;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* ---- Admin Content ---- */
.admin-content {
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  flex: 1;
  /* Bez ovoga široka tablica raširi cijelu stranicu preko ruba zaslona (flex stavka se ne
     smanjuje ispod širine sadržaja), pa na užem zaslonu naslov i gumbi desno ostanu izvan
     njega. Ovako se pomiče samo tablica, unutar svog .table-responsive okvira. */
  min-width: 0;
}

/* Tablica šira od zaslona pomiče se vodoravno unutar svog okvira (kartice), umjesto da joj
   desni dio ostane odrezan. Vrijedi za sve tablice u adminu, i one bez .table-responsive.
   Samo na zaslonu — pri ispisu se tablica ne smije rezati. */
@media screen {
  .admin-content :has(> table.table) { overflow-x: auto; }
}

/* Krafna na Dashboardu je kvadrat širok kao kartica — na širini 768–990 px kartica zauzme
   cijeli red pa je graf narastao na ~830 × 830 px. */
/* Kongres → Cjenik: naziv kategorije mora biti čitljiv; ako nema mjesta, tablica se pomiče. */
.cjenik-naziv { min-width: 11rem; }

.graf-krafna { position: relative; width: 100%; max-width: 320px; margin: 0 auto; }

/* Tablica u kartici bez unutarnjeg ruba (.card-body.p-0): prvi i zadnji stupac odmaknuti od
   ruba kartice — kod tablica „table-sm" tekst je inače bio prilijepljen uz rub. */
.admin-content .card-body.p-0 .table > :not(caption) > tr > :first-child { padding-left: .75rem; }
.admin-content .card-body.p-0 .table > :not(caption) > tr > :last-child { padding-right: .75rem; }

.admin-topbar {
  background: #1a3a6c !important;
  border-bottom: 1px solid #0f2249;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.admin-topbar .topbar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a3a6c;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-topbar .topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Birac radnog kongresa u gornjoj traci.
   Nazivi kongresa znaju biti jako dugi, a sirinu <select>a inace diktira najduza
   stavka - bez gornje granice traka bi se razvukla i gurnula gumbe iz vidnog polja. */
.admin-kongres-birac select {
  width: auto;
  max-width: 16rem;
  text-overflow: ellipsis;
}
@media (max-width: 991.98px) {
  .admin-kongres-birac select { max-width: 8rem; }
}

.admin-main {
  padding: 1.5rem;
  flex: 1;
}

/* ---- Stat Cards ---- */
.stat-card {
  background: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  border: 1px solid #f0f2f5;
  transition: transform 0.15s, box-shadow 0.15s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-card .stat-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.stat-card .stat-value {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
  color: #111827;
}

.stat-card .stat-label {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 0.15rem;
}

.stat-card.text-white .stat-value,
.stat-card.text-white .stat-label {
  color: #fff !important;
  font-weight: 700;
}

.stat-card .stat-change {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* ---- Hover Cards (public pages) ---- */
.hover-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid #e5e7eb !important;
}

.hover-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
}

/* ---- Badge Preview (admin/bedzi.php) ---- */
.badge-preview {
  width: 243px;     /* 85.6mm × 2.835 px/mm ≈ 243px */
  max-width: 100%;  /* u uskom stupcu mreže inače viri ~20 px preko ruba */
  height: 153px;    /* 54mm  × 2.835 px/mm ≈ 153px */
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #d1d5db;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  background: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
  font-family: Arial, sans-serif;
}

.badge-preview .badge-header {
  padding: 0.4rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.badge-preview .badge-body {
  flex: 1;
  padding: 0.4rem 0.75rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.badge-preview .badge-qr {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.badge-preview .badge-name {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
  color: #111;
}

.badge-preview .badge-org {
  font-size: 0.65rem;
  color: #555;
  margin-top: 0.15rem;
}

.badge-preview .badge-type-label {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 10px;
  display: inline-block;
  margin-top: 0.2rem;
}

.badge-preview .badge-footer {
  padding: 0.2rem 0.75rem;
  font-size: 0.55rem;
  color: #999;
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}

/* ---- Mono font helper ---- */
.fw-mono {
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 0.05em;
}

/* ---- Timeline (public raspored) ---- */
.timeline { position: relative; }

/* ---- Tables ---- */
.table-actions .btn {
  padding: 0.2rem 0.45rem;
  font-size: 0.8rem;
}

/* ---- Forms ---- */
.form-label {
  font-weight: 500;
  font-size: 0.875rem;
  color: #374151;
}

.form-section {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  margin-bottom: 1.25rem;
}

.form-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

/* ---- Status badges ---- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ---- Print styles ---- */
@media print {
  .admin-sidebar,
  .admin-topbar,
  .no-print {
    display: none !important;
  }

  .admin-content {
    margin-left: 0 !important;
  }

  .admin-main {
    padding: 0 !important;
  }
}

/* ---- Responsive sidebar collapse ---- */
.sidebar-toggle { display: none; }
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1040;
}
.sidebar-overlay.show { display: block; }

@media (max-width: 991.98px) {
  .sidebar-toggle { display: inline-flex; }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1050;
    transform: translateX(-270px);
    transition: transform 0.25s ease;
  }
  .admin-sidebar.show { transform: translateX(0); }

  .admin-content { margin-left: 0; }

  /* Tablice — horizontalni scroll na mobitelu */
  .table-responsive-admin { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Smanjiti padding na mobitelu */
  .admin-content-inner { padding: 1rem 0.75rem; }
}

/* ---- Boje javnog dijela (boja po kongresu, 04.11.2026.) ----
   Zadane vrijednosti = dosadašnji izgled. Kongres s odabranom bojom iz palete ih nadjača
   blokom <style> u includes/header.php (kongresBojeCss() u includes/functions.php). */
:root {
  --k-tamna: #0a1f3d;          --k-tamna-rgb: 10,31,61;
  --k-najtamnija: #07172e;
  --k-srednja: #1a3a6c;        --k-srednja-rgb: 26,58,108;
  --k-svijetla: #1a4fba;
  --k-akcent: #2563eb;         --k-akcent-rgb: 37,99,235;
  --k-akcent-tamniji: #1e4fc2;
  --k-tint: #f0f4ff;
  --k-rub: #bfdbfe;
  --k-naglasak: #fbbf24;
  --k-naglasak-tamniji: #f59e0b;
  --k-naglasak-2: #f0c040;      /* oznake datuma i traka u Programu */
  --k-naglasak-tekst: #0a1f3d;  /* tekst na boji naglaska */
  --k-ph-od: #e8f0fe; --k-ph-do: #c7d7f8; --k-ph-ikona: #7c9fd4;  /* hotel bez slike */
  /* Prijelazi velikih ploha ("Prijavite se danas", inicijali predavača). U zadanoj plavoj idu u akcent,
     a u ostalim paletama u glavnu boju — akcent je ondje druga nijansa (Grafit: nebo plava) pa bi ploha iskakala. */
  --k-cta-sredina: #1e4fc2; --k-cta-kraj: #2563eb; --k-ini-kraj: #2563eb;
  --k-kolacic: #1a2e4a; --k-kolacic-link: #93c5fd;  /* traka za kolačiće */
}

/* ---- Public site — base ---- */
html, body { overflow-x: hidden; max-width: 100%; }
/* Admin: "clip" umjesto "hidden" — tijelo onda nije spremnik za pomicanje,
   pa traka gumba .sticky-bottom (npr. Spremi u uređivanju kongresa) ostaje na dnu ekrana. */
body.admin-body { overflow-x: clip; }
body { font-family: 'Inter', system-ui, sans-serif; background: #f4f6f9; }

/* ---- Public Navbar ---- */
.pub-navbar {
  background: var(--k-tamna) !important;
  box-shadow: 0 2px 16px rgba(var(--k-tamna-rgb),0.25);
  padding: 0.6rem 0;
}

.pub-brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: #fff !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pub-brand i { color: var(--k-naglasak); font-size: 1.1rem; }

.pub-nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7) !important;
  padding: 0.45rem 0.75rem !important;
  border-radius: 6px;
  transition: all 0.15s;
  text-decoration: none;
}

.pub-nav-link:hover { color: #fff !important; background: rgba(255,255,255,0.08); }
.pub-nav-link.active { color: #fff !important; background: rgba(255,255,255,0.1); font-weight: 600; }

.pub-lang-btn {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.8) !important;
  text-decoration: none !important;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.pub-lang-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff !important;
  border-color: rgba(255,255,255,0.45);
}

/* ---- Hero section (public) ---- */
.hero-section {
  background:
    radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(135deg, var(--k-tamna) 0%, var(--k-svijetla) 100%);
  background-size: 28px 28px, 100% 100%;
  border-radius: 16px;
  padding: 3rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -100px; left: 25%;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}

.hero-logo {
  height: 100px;
  max-width: 200px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  display: block;
}
.hero-inicijali {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.hero-stat {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

/* ---- Section headers (public) ---- */
.pub-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.pub-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--k-tamna);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pub-section-title i { color: var(--k-akcent); }

/* ---- Talk cards (public) ---- */
.talk-card {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: transform 0.18s, box-shadow 0.18s;
  overflow: hidden;
  height: 100%;
}

.talk-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.09);
}

.talk-card .card-body { padding: 1.1rem 1.25rem; }

/* ---- Speaker cards (public) ---- */
.speaker-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  padding: 0 0 1.25rem;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  height: 100%;
}

.speaker-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-color: var(--k-rub);
}

.speaker-card h6 { color: #111827; padding: 0 1rem; }
.speaker-card p { color: #6b7280 !important; padding: 0 1rem; }

.speaker-photo {
  width: 100%; height: 360px;
  border-radius: 0;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 1rem;
  display: block;
  transition: transform 0.45s ease;
}

.speaker-card:hover .speaker-photo {
  transform: scale(1.05);
}

.speaker-initials {
  width: 100%; height: 220px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--k-tamna), var(--k-ini-kraj));
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

/* ---- CTA section (public) ---- */
.cta-section {
  background: linear-gradient(150deg, var(--k-tamna) 0%, var(--k-cta-sredina) 60%, var(--k-cta-kraj) 100%);
  border-radius: 16px;
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}

/* ---- Newsletter strip ---- */
.pub-newsletter {
  background: linear-gradient(135deg, var(--k-tamna) 0%, var(--k-srednja) 100%);
  padding: 3rem 0;
  margin-top: 4rem;
}

.pub-newsletter-btn { background: var(--k-naglasak); color: var(--k-tamna); }
.pub-newsletter-btn:hover { background: var(--k-naglasak-tamniji); color: var(--k-tamna); }

.pub-newsletter-title {
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.pub-newsletter-sub {
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  margin: 0;
}

.pub-newsletter-input {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.875rem;
  padding: 0.55rem 0.9rem;
}

.pub-newsletter-input:focus {
  border-color: var(--k-akcent);
  box-shadow: 0 0 0 3px rgba(var(--k-akcent-rgb),0.1);
}

.pub-newsletter-btn {
  background: var(--k-tamna);
  color: #fff;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  white-space: nowrap;
  transition: background 0.15s;
}

.pub-newsletter-btn:hover { background: var(--k-srednja); color: #fff; }

/* ---- Public Footer ---- */
.pub-footer {
  background: var(--k-najtamnija);
  padding: 3rem 0 1.25rem;
  margin-top: 4rem;
}

.pub-footer-brand {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.pub-footer-brand i { color: var(--k-naglasak); }

.pub-footer-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
}

.pub-footer-heading {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255,255,255,0.35);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.pub-footer a {
  display: block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
  transition: color 0.15s;
}

.pub-footer a:hover { color: #fff; }

.pub-footer-contact {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
}

.pub-footer-hr {
  border-color: rgba(255,255,255,0.07);
  margin: 1.75rem 0 1rem;
}

.pub-footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
  text-align: center;
}

/* ---- Chart containers ---- */
.chart-container {
  position: relative;
  min-height: 200px;
}

/* ---- Loading spinner ---- */
.spinner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* ---- Alert flash messages ---- */
.flash-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9998;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.flash-container .alert {
  animation: slideInRight 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ---- Invoice print ---- */
.invoice-header { border-bottom: 3px solid #1a3a6c; padding-bottom: 1rem; margin-bottom: 1.5rem; }
.invoice-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  border: 4px solid;
  border-radius: 8px;
  padding: 6px 20px;
  font-size: 2rem;
  font-weight: 900;
  opacity: 0.2;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---- QR code placeholder ---- */
.qr-placeholder {
  width: 100px;
  height: 100px;
  background: #f3f4f6;
  border: 2px dashed #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  border-radius: 6px;
}

/* ---- Progress bar striped animated ---- */
.progress-bar-striped-animated {
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.15) 0px,
    rgba(255,255,255,0.15) 10px,
    transparent 10px,
    transparent 20px
  );
  animation: progressStripe 1s linear infinite;
}

@keyframes progressStripe {
  from { background-position: 0 0; }
  to   { background-position: 28px 0; }
}

/* ---- Datatable overrides ---- */
.dataTables_wrapper .dataTables_filter input {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  margin-left: 0.4rem;
}

.dataTables_wrapper .dataTables_length select {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0.25rem 2rem 0.25rem 0.5rem;
  min-width: 70px;
  appearance: auto;
  -webkit-appearance: auto;
}

table.dataTable tbody tr:hover {
  background: #f0f7ff !important;
}

table.dataTable thead th,
table.dataTable thead td {
  position: relative;
  overflow: hidden;
}

table.dataTable thead .sorting::after,
table.dataTable thead .sorting_asc::after,
table.dataTable thead .sorting_desc::after,
table.dataTable thead .sorting_asc_disabled::after,
table.dataTable thead .sorting_desc_disabled::after {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  opacity: 0.5;
}

/* ---- Select2 Bootstrap 5 fix ---- */
.select2-container--bootstrap-5 .select2-selection {
  font-size: 0.9rem;
}

/* ---- Stranica page content ---- */
.page-content {
  overflow-x: hidden;
}
.page-content img {
  display: block;
  max-width: 100% !important;
  height: auto;
  border-radius: 14px;
  margin-top: 1rem;
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 24px rgba(var(--k-tamna-rgb),0.15);
}
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.page-content table th {
  background: var(--k-srednja);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}
.page-content table td {
  padding: 9px 14px;
  border-bottom: 1px solid #e9ecef;
  color: #374151;
}
.page-content table tr:last-child td { border-bottom: none; }
.page-content table tr:nth-child(even) td { background: #f8f9fa; }
.page-content blockquote {
  border-left: 4px solid var(--k-srednja);
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: var(--k-tint);
  border-radius: 0 8px 8px 0;
  color: #374151;
  font-style: italic;
}
.page-content h1, .page-content h2, .page-content h3,
.page-content h4, .page-content h5 {
  color: var(--k-tamna);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.page-content h2 { font-size: 1.5rem; border-bottom: 2px solid #e9ecef; padding-bottom: 0.4rem; }
.page-content h3 { font-size: 1.2rem; }
.page-content a { color: #1a6c4c; text-decoration: underline; }
.page-content a:hover { color: #0a4a2c; }
.page-content ul, .page-content ol {
  padding-left: 1.5rem;
  margin: 1rem 0;
}
.page-content li { margin-bottom: 0.4rem; }
.page-content hr {
  border: none;
  border-top: 2px solid #e9ecef;
  margin: 2rem 0;
}

/* ---- Heading font ---- */
h1, h2, h3, h4, h5, h6,
.display-6, .pub-section-title, .hero-section h1 {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

/* GLightbox — lighter overlay */
.goverlay {
  background: rgba(0, 0, 0, 0.60) !important;
}

/* ---- Page hero (inner pages) ----
   Isti izgled na svim unutarnjim stranicama, prema zaglavlju Smještaja (korisnik
   06.11.2026.: mirni prijelaz tamne u srednju boju kongresa, ikona uz naslov). */
.page-hero {
  background: linear-gradient(135deg, var(--k-tamna) 0%, var(--k-srednja) 100%);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  color: white;
}
.page-hero-title { font-size: 2rem; }
.page-hero-subtitle { color: rgba(255,255,255,0.75); font-size: 1rem; }
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,0.5); font-size: .85rem; }
.page-hero .breadcrumb-item a { color: rgba(255,255,255,0.7); text-decoration: none; }
.page-hero .breadcrumb-item a:hover { color: #fff; }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,0.9); }

@media (max-width: 576px) {
  .page-hero { padding: 1.5rem 1.25rem; border-radius: 10px; }
  .page-hero-title { font-size: 1.4rem; }
}


/* Gumb "Natrag" — jednak na svim stranicama admina i dobro vidljiv (korisnik 30.10.2026.:
   siv obrubljeni "preslabo se vidi"). Tamnoplava kao bočni izbornik, da se ne miješa sa
   svijetloplavim gumbima glavnih radnji ("+ Novi", "Spremi"). */
.btn-natrag { background: #1a3a6c; border-color: #1a3a6c; color: #fff; }
.btn-natrag:hover, .btn-natrag:focus { background: #0f2249; border-color: #0f2249; color: #fff; }
