:root{
  --aktivno-boja: #2b9dd2;
  --main-font: Helvetica, sans-serif;
   --boja-tamna:  #111827;   
  --boja-akcent: #6C63FF;   
  --font-glavni: 'Segoe UI', system-ui, sans-serif;
  --bg: white;
  --text: black;
  --nav-bg: white;
  --border: black;
}
*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: background-color 0.4s ease, 
              color 0.4s ease, 
              border-color 0.4s ease;
}
body{
  font-family: var(--main-font);
  background: var(--bg);
  color: var(--text);
}
.nav{
  font-family: var(--main-font);
  font-size: 1.2rem;
  font: bold;
display: flex;
position: fixed;
top: 0;
width: 100%;
justify-content: space-between;
padding: 0em 5em;
box-sizing: border-box;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.5);
}

.logo img {
  height: 120px;
}


.nav2{
  list-style: none;
  display: flex;
   align-items: center;
  gap: 30px;
  margin: 0;
   
}
.nav2 li {
  display: flex;
  align-items: center;
}

.nav2 a {
  text-decoration: none;
  color:  var(--text);
 display: inline-block; 
    transition: transform 0.3s ease, color 0.3s ease;
}

.nav2 a:hover {
    color: var(--aktivno-boja); 
    transform: translateY(-4px);  
}
.nav2 a.aktivna{
  color: var(--aktivno-boja);
  font-weight: bolder;
}

.github-icon svg {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  fill: currentColor;
  transition: transform 0.3s ease, fill 0.3s ease;
  cursor: pointer;
}

.github-icon:hover svg {
  transform: scale(1.3);
  fill: var(--aktivno-boja);
}

.dark {
  --bg: var(--boja-tamna);
  --text: white;
  --nav-bg:var(--boja-tamna);
  --border: #646e64;
}

#dark-mode-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.dark-mode-label {
  display: inline-block;
  cursor: pointer;
}

.dark-mode-label svg {
  display: block;
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  transition: transform 0.5s ease-out, stroke 0.1s ease-out;
}

.moon-path {
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.sun-circle,
.sun-rays line {
  transition: opacity 0.2s ease-out;
}


#dark-mode-toggle:checked + svg,
#dark-mode-toggle-mob:checked + svg {
  transform: rotate(-360deg);
}

#dark-mode-toggle:checked + svg .moon-path,
#dark-mode-toggle-mob:checked + svg .moon-path {
  opacity: 1;
}

#dark-mode-toggle:checked + svg .sun-circle,
#dark-mode-toggle-mob:checked + svg .sun-circle {
  opacity: 0;
}

#dark-mode-toggle:checked + svg .sun-rays,
#dark-mode-toggle-mob:checked + svg .sun-rays {
  opacity: 0;
}

.interaktivno{
  text-align: center;
  background:linear-gradient( to left, #F97316, rgb(211, 26, 26));
  max-width: auto;
 margin:  40px auto;
 margin-top: 140px;
 padding-top: 35px;
 padding-bottom: 35px;
 color: white;
 border-radius: 20px ;
 box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
 font-family:var(--main-font) ;
 margin-left: 40px;
 margin-right: 40px;
}
.promo-banner h2 {
    font-size: 28px;
}

@keyframes leti {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.animirani-svg {
  width: 60px;
  vertical-align: middle;
  animation: leti 2s ease-in-out infinite;
}

.countdown{
  display: flex;
  justify-content: center;
  gap: 100px;
  margin-bottom: 60px;
}

.vrijeme{
  background-color: rgba(255, 255, 255, 0.1);
    padding: 25px 60px;
    border-radius: 15px; 
    min-width: 80px;
    margin-top: 45px;
}

.vrijeme span {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: white;
}

.vrijeme p {
    margin: 5px 0 0;
    font-size: 12px;
    color: #aaaaaa;
    letter-spacing: 2px;
}

@keyframes pulsiraj {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.kupi-kartu{
  background-color: white;
  color:red;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: pulsiraj 2s ease-in-out infinite;
}
.kupi-kartu:hover{
  transform: translateY(-5px);
  background:linear-gradient(to bottom right,rgb(224, 83, 205),rgb(210, 44, 160));
}
.kupi-kartu:hover a {
  color: white;
}

.kupi-kartu a{
  text-decoration: none;
}

.statistika {
  display: flex;
  gap: 20px;
  max-width: auto;   
  margin: 0 40px 40px 40px; 
}

.stat-kartica {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
 padding: 25px 40px;
  border-radius: 12px;
  color: white;
  text-align: center;
}

.stat-kartica:nth-child(2) {
  transform: scale(1.05);
}

.stat-broj {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.stat-tekst {
  font-size: 1rem;
}

#lokacija{
  background: linear-gradient(135deg, #ce93d8, #7b1fa2);
}

#posjetilaca{
  background: linear-gradient(135deg, #ffb74d, #e64a19);
}
 #događaja{
  background: linear-gradient(135deg, #4fc3f7, #1565c0);
 }

 

 
.side-nav {
  width: 220px;
  flex-shrink: 0;
  margin-left: 25px;
   margin-top: 3.5rem;
}

.side-nav-naslov {
  font-size: 15px;
  font-weight: 600;
   color: var(--text);
  margin: 0 0 12px 0;
  padding: 0 8px;
}

.side-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s;
}

.side-nav li a:hover {
  background: #95a4c2;
}

.side-nav li a.aktivno {
  background: #2563EB;
  
}

body.dark .side-nav a{
  color: var(--text);
}

.page-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  align-items: flex-start;
}
main {
  padding: 2rem;
  min-width: 0;
}

main h2.naslov-maina{
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}
.naslov-maina::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background: var(--aktivno-boja);
  margin-top: 8px;
}

.kartica img {
  width: 100%;
  height: 180px;       
  object-fit: cover;    
  display: block;
  flex-shrink: 0;
}

.kartice-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  min-width: 0; 
}


.kartica {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #8e8f91;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.kartica:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.kartica img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}


.kategorija-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  width: fit-content;
  color: white;
}

.kategorija-badge.koncerti  { background: #dbeafe; color: #1d4ed8; }
.kategorija-badge.pozoriste { background: #ede9fe; color: #6d28d9; }
.kategorija-badge.filmovi   { background: #fce7f3; color: #be185d; }
.kategorija-badge.festivali { background: #fef3c7; color: #b45309; }
.kategorija-badge.sport     { background: #dcfce7; color: #15803d; }
.kategorija-badge.ostalo    { background: #f3f4f6; color: #374151; }

.kartica-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kartica-naslov {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.kartica-datum {
  font-size: 13px;
  color: #888;
  margin: 0;
}

.kartica-opis {
  font-size: 14px;
  color: #555;
  margin: 0;
}


.dugme-kartice {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 20px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  width: fit-content;
}

.dugme-kartice:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.dugme-kartice:focus {
  outline: 2px solid var(--aktivno-boja);
}

body.dark .kartica {
  background: #1f2937; 
  border: 1px solid #374151;
}

body.dark .kartica:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

body.dark .kartica-datum {
  color: #9ca3af;
}

body.dark .kartica-opis {
  color: #d1d5db;
}

.mapa {
  width: 260px;
  flex-shrink: 0;
 background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
   color: var(--text);
  overflow: hidden;
  margin-top: 3.5rem;
}

.aside-tekst {
  padding: 1rem;
}

.aside-tekst h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.aside-tekst p {
  font-size: 13px;
  color: var(--text);
  margin: 0;
  line-height: 1.5;
}


.sajt-footer {
  background-color: var(--boja-tamna);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 1.5rem;
  margin-top: 4rem;
  font-family: var(--font-glavni);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--boja-akcent);
  animation: pulsiranje 2.5s ease-in-out infinite;
}

@keyframes pulsiranje {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.35); }
}

.footer-logo-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.footer-tagline {
  font-size: 0.82rem;
  opacity: 0.45;
  margin: 0;
  letter-spacing: 0.03em;
}


.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--boja-akcent);
}


.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover,
.footer-social a:focus {
  color: var(--boja-akcent);
  border-color: var(--boja-akcent);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 17px;
  height: 17px;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}


.footer-authors {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
}

.footer-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--boja-akcent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.author-name {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 2px;
  font-weight: 600;
}

.author-role {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.38);
  margin: 0;
}


.footer-copy {
  text-align: center;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.25);
  margin: 0;
  letter-spacing: 0.02em;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.2rem;
}

body.dark .sajt-footer  { background-color: white; }
body.light .sajt-footer { background-color: var(--boja-tamna); }

body.dark .sajt-footer,
body.dark .sajt-footer a,
body.dark .sajt-footer p,
body.dark .sajt-footer span {
  color: #111827 !important;
}

body.dark .footer-links a:hover,
body.dark .footer-social a:hover {
  color: var(--boja-akcent) !important;
}

.korpa-dugme {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  text-align: center;
  padding: 4px;
  transition: color 0.2s;
}

.korpa-dugme svg {
  width: 1.4em;
  height: 1.4em;
}

.korpa-dugme:hover {
  color: var(--aktivno-boja);
}

.korpa-broj {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--aktivno-boja);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}


.korpa-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.korpa-overlay.aktivna {
  opacity: 1;
  pointer-events: all;
}

.korpa-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg);
  border-left: 1px solid var(--border);
  z-index: 1999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}

.korpa-panel.otvorena {
  transform: translateX(0);
}


.korpa-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.korpa-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.korpa-zatvori {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 6px;
  transition: background 0.2s;
}

.korpa-zatvori:hover {
  background: var(--border);
}

.korpa-zatvori svg {
  width: 1.2em;
  height: 1.2em;
}


.korpa-lista {
  list-style: none;
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.korpa-prazna {
  color: #888;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 2rem;
}

.korpa-stavka {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.korpa-stavka img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.korpa-stavka-info {
  flex: 1;
}

.korpa-stavka-naziv {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
}

.korpa-stavka-cijena {
  font-size: 0.85rem;
  color: var(--aktivno-boja);
  margin: 0;
}

.korpa-ukloni {
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  font-size: 1.1rem;
  padding: 4px;
  transition: color 0.2s;
  flex-shrink: 0;
}

.korpa-ukloni:hover {
  color: #e53e3e;
}


.korpa-footer {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.korpa-ukupno {
  font-size: 1rem;
  color: var(--text);
  display: flex;
  justify-content: space-between;
}

.korpa-kupi {
  display: block;
  text-align: center;
  background: var(--aktivno-boja);
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.korpa-kupi:hover {
  opacity: 0.85;
}


body.dark .korpa-panel {
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
}


.mob-desno {
  display: none;
  align-items: center;
  gap: 8px;
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.aktivan span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.aktivan span:nth-child(2) {
  opacity: 0;
}
.hamburger.aktivan span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mob-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: 70px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mob-overlay.aktivna {
  opacity: 1;
  pointer-events: all;
}

.mob-meni {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  align-items: center;
  text-align: center;
  background: var(--nav-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  flex-direction: column;
  padding: 0.5rem 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mob-meni-dark #dark-mode-toggle-mob {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.mob-meni.aktivan {
  clip-path: inset(0 0 0% 0);
}

.mob-meni a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
}

.mob-meni a:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--aktivno-boja);
}

.mob-meni-dark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  color: var(--text);
  font-size: 1rem;
}



@media (max-width: 900px) {
  
  .nav2       { display: none; }
  .mob-desno  { display: flex; }
  .mob-overlay { display: block; }
  .mob-meni   { display: flex; }
  .nav        { position: fixed; flex-wrap: wrap; }

 
  .kartice-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  
  .countdown { gap: 30px; }
  .vrijeme   { padding: 25px 40px; }

 
  .page-wrapper { flex-direction: column; }
  .side-nav     { width: 100%; margin-left: 0; }
  .mapa         { 
    width: 100%; 
    margin-top: 0; 
  }

  
  .interaktivno {
    max-width: 800px;
    margin-right: 15px;
    margin-left: 15px;
  }

  
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto auto auto;
    align-items: center;
    gap: 1.5rem 2rem;
  }

  .footer-brand   { grid-column: 1; grid-row: 1; align-items: flex-start; text-align: left; }
  .footer-links   { grid-column: 2; grid-row: 1; }
  .footer-social  { grid-column: 3; grid-row: 1; justify-content: flex-end; }
  .footer-divider { grid-column: 1 / -1; grid-row: 2; }
  .footer-authors { grid-column: 1 / -1; grid-row: 3; justify-content: space-around; }
  .footer-copy    { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  
  .kartice-grid { grid-template-columns: 1fr; }

 
  .countdown { gap: 10px; flex-wrap: wrap; }
  .vrijeme   { padding: 15px 20px; }

 
  .nav      { padding: 0 1em; }
  .logo img { height: 70px; }


  .statistika { flex-direction: column; margin: 0 20px 20px 20px; }

  
  .interaktivno { margin: 90px 10px; border-radius: 12px; }

  
  .footer-authors { gap: 1.5rem 4rem; }
  

  .footer-authors{
  flex-direction: column;
  align-items: flex-start;
}

.footer-author{
  justify-content: flex-start;
  width: 100%;
}

.footer-author div{
  text-align: left;
}

.author-name,
.author-role{
  text-align: left;
}
  
}

@media (max-width: 400px) {
  .nav2 { gap: 10px; font-size: 0.9rem; }
  .nav  { padding: 0 0.5em; }
  .interaktivno { margin-top: 90px; }
  .vrijeme { padding: 10px 15px; }

  .footer-authors{
  flex-direction: column;
  align-items: flex-start;
}

.footer-author{
  justify-content: flex-start;
  width: 100%;
}

.footer-author div{
  text-align: left;
}

.author-name,
.author-role{
  text-align: left;
}
}

label[for="Kontakt"] h3 {
  text-align: center;
  margin-top: 140px;
  margin-bottom: 20px;
  font-family: var(--main-font);
  color: var(--text);
  letter-spacing: 1px;
}

.Kontakt {
  max-width: 100%;
  margin: 0 20px 40px 20px;
  padding: 25px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(38, 36, 75, 0.315);
  border-radius: 12px;
}
/*Obmotava sve elemnte kontakta u zaobljenoj kutiji */
.Kontakt form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/*reda u redove*/
.Kontakt .info,
.Kontakt .kreditna {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.Kontakt label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 5px;
}
/*labeli formi uredjeni*/
.Kontakt input[type="text"],
.Kontakt input[type="email"],
.Kontakt input[type="tel"],
.Kontakt input[type="month"],
.Kontakt select,
.Kontakt textarea {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  background-color: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--main-font);
  box-sizing: border-box;
}
/*inputi uredjeni*/
.Kontakt textarea {
  resize: vertical;
  min-height: 100px;
}

.Kontakt input:focus,
.Kontakt select:focus,
.Kontakt textarea:focus {
  border-color: var(--aktivno-boja);
  box-shadow: 0 0 0 4px rgba(43, 157, 210, 0.15);
}
/*ai izabro box shadow rgba values */
.Kontakt .dugmici {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-top: 10px;
}

.Kontakt button {
  flex: 1;
  padding: 14px;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.Kontakt button[type="submit"] {
  background-color: var(--aktivno-boja);
  color: white;
}

.Kontakt button[type="reset"] {
  background-color: #b0b1b6;
  color: #2b3341;
}

.Kontakt button[type="submit"]:hover {
  background-color: #1d7fae;
  transform: translateY(-2px);
}

.Kontakt button[type="reset"]:hover {
  
  background-color: #888a8e;
  transform: translateY(-2px);
}

@media (min-width: 1025px) {
  .Kontakt {
    max-width: 1000px;
    margin: 0 auto 60px auto;
    padding: 40px;
  }

  .Kontakt form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  .Kontakt .info {
    grid-column: 1;
  }

  .Kontakt .kreditna {
    grid-column: 2;
  }

  .Kontakt label[for="usluga"],
  .Kontakt select,
  .Kontakt label[for="tekstkutija"],
  .Kontakt textarea,
  .Kontakt .dugmici {
    grid-column: 1 / span 2;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .Kontakt label[for="usluga"] {
    text-align: center;
    margin-top: 15px;
  }

  .Kontakt label[for="tekstkutija"] {
    text-align: center;
  }

  .Kontakt textarea {
    min-height: 120px;
  }

  .Kontakt .dugmici {
    max-width: 400px;
    margin-top: 15px;
  }
}

body.dark .Kontakt{ 
 background: #1f2937;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
} 
body.dark .Kontakt input, 
body.dark .Kontakt select, 
body.dark .Kontakt textarea { 
  background: white; 
  color: #111827; 
  border: 1px solid #d1d5db; 
} 

body.dark .Kontakt input:focus,
body.dark .Kontakt select:focus,
body.dark .Kontakt textarea:focus {
  border-color: var(--aktivno-boja);
  box-shadow: 0 0 0 4px rgba(43, 157, 210, 0.2);
}
body.dark .Kontakt input::placeholder, 
body.dark .Kontakt textarea::placeholder { 
  color: #6b7280; 
}
.error{
  display: block;
  min-height: 18px;
  margin-top: 4px;
  color: red;
  font-size: 12px;
}
body.dark .error {
  color: #f87171;
}








#Mapaa h2,
#Galerija h2,
#Tabela h2,
#lista h2 {
  font-family: var(--main-font);
  color: var(--text);
  margin-top: 100px;
  margin-bottom: 20px;
  padding: 0 15px;
}

h2.podnaslov {
  display: block;
  border: 2px solid var(--aktivno-boja);
  border-radius: 6px;
  width: fit-content;
  color: var(--aktivno-boja) !important;
  padding: 6px 12px;
  margin-left: 15px;
}

.sadrzajnav {
  position: fixed;
  left: 45%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  list-style-type: none;
  background: var(--nav-bg);
  border: 1px solid var(--border);
  border-radius: 40px;
  margin: 0;
  padding: 0 10px;
  height: 50px;
  width: calc(100% - 20px);
  max-width: fit-content;
  gap: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  z-index: 1005;
  box-sizing: border-box;
}

.sadrzajnav li {
  display: inline-block;
}

.sadrzajnav a {
  text-decoration: none;
  color: var(--aktivno-boja);
  font-size: 13px;
  font-family: var(--main-font);
  font-weight: bold;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.sadrzajnav a:hover {
  color: var(--text);
}

.Tabela {
  width: auto;
  margin: 0 15px 40px 15px;
  display: block;
  max-width: 100%;
  border-radius: 8px;
  box-sizing: border-box;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--main-font);
  background-color: var(--nav-bg);
  table-layout: fixed;
  word-wrap: break-word;
}

table caption {
  padding: 10px;
  color: var(--text);
  text-align: left;
  font-family: var(--main-font);
}

table caption h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

table, th, td {
  border: 1px solid var(--border);
}

th, td {
  padding: 10px 8px;
  text-align: left;
  font-size: 13px;
  word-break: break-all;
}

th {
  background-color: var(--aktivno-boja);
  color: white;
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.03);
}

.zeleno { color: #2ecc71; font-weight: bold; }
.zuta   { color: #f1c40f; font-weight: bold; }
.crveno { color: #e74c3c; font-weight: bold; }

/*Kod tabele ai pomogo da tabela ne priliva preko ekrana na mobitelu dodati posebni uslovi za desktop kasnije u kodu takodje uz pomoc ai=a  */
.babo {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 15px 15px 40px 15px !important;
  gap: 15px;
  list-style: none;
}
/*nije htjelo iz nekog razloga da proradi  poslato geminju zalijepo imprtant tagove proradilo */
.babo li {
  border-radius: 12px;
  padding: 5px;
  list-style: none;
  color: var(--text);
  border: 1px solid var(--border);
  background-color: var(--nav-bg);
}

.babo details {
  width: 100%;
}

summary {
  padding: 12px 10px;
  font-family: var(--main-font);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}

summary h3 {
  display: inline;
  margin: 0;
  font-size: 1rem;
}

.podlista {
  list-style-type: disc;
  padding-left: 30px !important;
  padding-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.podlista li {
  border: none !important;
  background: none !important;
  padding: 0 !important;
  font-family: var(--main-font);
  font-size: 14px;
  color: var(--text);
  border-radius: 0 !important;
}

#lista ul.babo > li:nth-child(odd) { 
  background-color: rgba(43, 157, 210, 0.08); 
}

.galerija {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0 15px;
  margin-bottom: 40px;
}

.galerija figure {
  background-color: var(--nav-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 0;
  padding: 12px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 4px 6px -2px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}

.galerija img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.galerija figcaption {
  padding-top: 12px;
  font-size: 0.85rem;
  text-align: center;
  color: var(--text);
  opacity: 0.85;
  font-style: italic;
  font-family: var(--main-font);
}

.galerija figure:hover {
  transform: translateY(-5px);
  border-color: var(--aktivno-boja);
}

@media screen and (min-width: 768px) {
  .Tabela {
    margin: 0 auto 40px auto; 
  }
  
  table {
    table-layout: auto;
  }
}

@media (min-width: 1025px) {
  #Mapaa h2, #Galerija h2, #Tabela h2, #lista h2 {
    margin-top: 140px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
  }

  h2.podnaslov {
    margin-left: auto;
    margin-right: auto;
  }
/*ai pomgo da razrjesim problem sa poziocioniranjem navbara na stranici sadrzaj */
  .sadrzajnav {
    top: 25px;
    height: 70px;
    padding: 0 30px;
    gap: 25px;
    width: auto;
  }

  .sadrzajnav a {
    font-size: 16px;
  }

  #Mapaa .slika {
    max-width: 800px;
  }

  .tabela {
    display: flex;
    justify-content: center;
    overflow-x: visible;
    max-width: 1000px;
    margin: 0 auto 50px auto;
    width: 100%;
  }

  table {
    min-width: 0;
  }

  th, td {
    padding: 12px 16px;
    font-size: 15px;
  }

  .babo {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 25px auto 60px auto !important;
  }

  .babo li {
    flex: 1;
    min-width: 220px;
    border-radius: 20px;
    padding: 10px;
  }

  .galerija {
    max-width: 1100px;
    margin: 0 auto 60px auto;
    gap: 25px;
    padding: 0;
  }

  .galerija figure {
    width: 320px;
    max-width: none;
    padding: 15px;
  }

  .galerija figure:hover {
    transform: translateY(-10px);
  }
}
@media screen and (max-width: 480px) {
  .sadrzajnav {
    top: 10px;
    height: 38px;
    padding: 0 8px;
    gap: 6px;
    border-radius: 20px;
  }

  .sadrzajnav a {
    font-size: 11px;
    padding: 4px 6px;
  }
}
.dugmee {
  background-color: transparent;
  border: none;
  outline: none;
  padding: 0;
  color: #5dade2;
  font-size: 16px;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  width: max-content;
  display: inline-block;
  margin-left: 10px;
}
.dugmee:hover {
  color: #2980b9;
  text-decoration: underline;
}
.brm{visibility: hidden;}