/* ============================================
   1. DESIGN TOKENS
   ============================================ */
:root {
  /* Boje */
  --blue-bg:      #f4f8fd;   /* pozadina stranice */
  --blue-soft:    #e5eefb;   /* nježna plava ispuna */
  --blue-border:  #d7e5f7;   /* linije i okviri */
  --primary:      #2f6fed;   /* glavna plava */
  --primary-dark: #1e56c8;   /* plava na hover */
  --navy:         #0f2545;   /* glavni tekst */
  --navy-soft:    #566a88;   /* sporedni tekst */
  --white:        #ffffff;
  --accent:       #f4845f;   /* topli akcenat, koristimo rijetko */

  /* Razmaci */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;

  /* Zaobljenje uglova */
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-full: 999px;

  /* Sjene */
  --shadow-sm: 0 2px 8px rgba(15, 37, 69, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 37, 69, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 37, 69, 0.12);
}

/* ============================================
   2. RESET
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============================================
   3. OSNOVA
   ============================================ */
body {
  font-family: 'Plus Jakarta Sans', system-ui, 'Segoe UI', sans-serif;
  background-color: var(--blue-bg);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}
/* ============================================
   4. ZAGLAVLJE
   ============================================ */
.site-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--blue-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 72px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
}

.logo-icon {
  font-size: 1.5rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  row-gap: 6px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy-soft);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-cta {
  background-color: var(--primary);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
}

/* ---- Prekidač jezika ---- */
.lang-switch {
  display: flex;
  gap: 4px;
  margin-left: var(--space-sm);
  flex-shrink: 0;
}

.lang-switch button {
  background: none;
  border: 1px solid var(--blue-border);
  color: var(--navy-soft);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lang-switch button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.lang-switch button.is-active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
/* ============================================
   5. HERO
   ============================================ */
.hero {
  padding: var(--space-xl) 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  background-color: var(--blue-soft);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.hero-text {
  font-size: 1.1rem;
  color: var(--navy-soft);
  max-width: 480px;
  margin-bottom: var(--space-md);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   6. DUGMAD
   ============================================ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background-color: var(--white);
  color: var(--navy);
  border: 1px solid var(--blue-border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
/* ============================================
   7. SEKCIJE — zajedničko
   ============================================ */
.section {
  padding: var(--space-xl) 0;
}

.section-alt {
  background-color: var(--white);
}

.section-head {
  max-width: 620px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.section-eyebrow {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.section-text {
  color: var(--navy-soft);
  font-size: 1.05rem;
}

.section-head .btn {
  margin-top: var(--space-sm);
}

/* ============================================
   8. KORACI
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.step-card {
  background-color: var(--white);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--blue-soft);
  color: var(--primary);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.step-title {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.step-text {
  color: var(--navy-soft);
}

/* ============================================
   9. RAZLOZI
   ============================================ */
.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}

.reason-card {
  background-color: var(--blue-bg);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
}

.reason-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: var(--space-xs);
}

.reason-title {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.reason-text {
  color: var(--navy-soft);
  font-size: 0.95rem;
}

/* ============================================
   9b. USPJEŠNA PRIČA
   ============================================ */
.success-story-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: center;
}

.success-story-image-wrap {
  position: relative;
  overflow: hidden;
}

.success-story-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.success-story-caption {
  padding: var(--space-md) var(--space-md);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
}

.success-story-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.success-story-viewport {
  flex: 1;
  max-width: 640px;
  overflow: hidden;
}

.success-story-track {
  display: flex;
  align-items: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-story-slide {
  flex: 0 0 70%;
  display: flex;
  justify-content: center;
  padding: var(--space-sm) 0;
  cursor: pointer;
  opacity: 0.45;
  transform: scale(0.8);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}

.success-story-slide.is-active {
  opacity: 1;
  transform: scale(1);
  cursor: default;
}

.success-story-slide:not(.is-active) .image-nav,
.success-story-slide:not(.is-active) .image-dots {
  display: none;
}

.success-story-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--blue-border);
  background-color: var(--white);
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.success-story-arrow:hover {
  background-color: var(--blue-bg);
  transform: scale(1.06);
}

.success-story-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-sm);
}

.success-story-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: var(--radius-full);
  background-color: var(--blue-border);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.success-story-dot.is-active {
  background-color: var(--primary);
  transform: scale(1.3);
}

@media (max-width: 700px) {
  .success-story-arrow {
    display: none;
  }
}

/* ============================================
   10. CTA TRAKA
   ============================================ */
.cta-band {
  background-color: var(--primary);
  padding: var(--space-xl) 0;
}

.cta-inner {
  text-align: center;
  color: var(--white);
}

.cta-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
}

.cta-text {
  opacity: 0.85;
  margin-bottom: var(--space-md);
}

.btn-white {
  background-color: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   11. FOOTER
   ============================================ */
.site-footer {
  background-color: var(--white);
  border-top: 1px solid var(--blue-border);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding-bottom: var(--space-md);
}

.footer-brand {
  font-weight: 800;
  font-size: 1.15rem;
}

.footer-tagline {
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--navy-soft);
  margin-top: 4px;
}

.footer-nav {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--navy-soft);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--blue-border);
  padding-top: var(--space-md);
  color: var(--navy-soft);
  font-size: 0.9rem;
  text-align: center;
}
/* ============================================
   12. DUGME ZA MOBILNI MENI
   ============================================ */
.nav-toggle {
  display: none;              /* na desktopu ga nema */
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
  padding: 4px 8px;
}

/* ============================================
   13. RESPONSIVE
   ============================================ */

/* ---------- TABLET (do 900px) ---------- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-image img {
    height: 320px;
  }

  .hero-text {
    max-width: none;
  }
}

/* ---------- TELEFON (do 700px) ---------- */
@media (max-width: 700px) {
  :root {
    --space-xl: 56px;
    --space-lg: 32px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--blue-border);
    box-shadow: var(--shadow-md);
    padding: var(--space-sm);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link {
    padding: 12px var(--space-xs);
    font-size: 1rem;
  }

  .nav-cta {
    text-align: center;
    margin-top: var(--space-xs);
  }

  .hero-actions .btn {
    flex: 1 1 100%;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
  }
}
/* ============================================
   14. ZAGLAVLJE PODSTRANICE
   ============================================ */
.page-head {
  padding: var(--space-lg) 0 var(--space-md);
}

.page-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.page-subtitle {
  color: var(--navy-soft);
}

.page-tagline {
  color: var(--primary);
  font-weight: 600;
  font-style: italic;
  margin-bottom: 6px;
}

/* ============================================
   15. MREŽA LJUBIMACA
   ============================================ */
.pets-section {
  padding-bottom: var(--space-xl);
}

.pets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

/* ============================================
   16. KARTICA LJUBIMCA
   ============================================ */
.pet-card {
  background-color: var(--white);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pet-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pet-card-image {
  position: relative;
  overflow: hidden;
}

.pet-card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.pet-card:hover .pet-card-image img {
  transform: scale(1.05);
}

.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.fav-btn:hover {
  background-color: var(--white);
  color: #e5484d;
  transform: scale(1.1);
}

/* ---- Kartica udomljenog ljubimca ---- */
/* ---- Bedž statusa na kartici (Browse Pets / Favorites / Adopted pets) ---- */
.pet-status-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

.pet-status-badge.is-adopted {
  color: #e5484d;
}

.pet-status-badge.is-available {
  color: var(--primary-dark);
}

.pet-card-adopted .pet-card-image img {
  filter: saturate(0.9);
}

.adopted-info {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: var(--space-xs);
}

/* ---- Strelice za prelistavanje slika na kartici ---- */
.image-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  border-radius: var(--radius-full);
  background-color: rgba(15, 37, 69, 0.45);
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.pet-card-image:hover .image-nav {
  opacity: 1;
}

/* Na "success story" kartici strelice su uvijek vidljive (nema hover na mobilnom) */
.success-story-image-wrap .image-nav {
  opacity: 1;
}

.image-nav:hover {
  background-color: rgba(15, 37, 69, 0.75);
}

.image-nav-prev {
  left: 10px;
}

.image-nav-next {
  right: 10px;
}

.image-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.image-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.6);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.image-dot.is-active {
  background-color: var(--white);
  transform: scale(1.3);
}

.pet-card-body {
  padding: var(--space-sm);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pet-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-xs);
  margin-bottom: 2px;
}

.pet-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.pet-location {
  font-size: 0.85rem;
  color: var(--navy-soft);
  white-space: nowrap;
}

.pet-meta {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: capitalize;
  margin-bottom: var(--space-xs);
}

.pet-description {
  font-size: 0.95rem;
  color: var(--navy-soft);
  margin-bottom: var(--space-sm);
  flex: 1;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
  align-self: flex-start;
}
/* ============================================
   17. DETALJI LJUBIMCA
   ============================================ */
.detail-section {
  padding: var(--space-md) 0 var(--space-xl);
}

.back-link {
  display: inline-block;
  color: var(--navy-soft);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: var(--space-md);
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--primary);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.detail-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.detail-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-xs);
}

.detail-thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: none;
}

.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-thumb.is-active {
  border-color: var(--primary);
}

.detail-eyebrow {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-name {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 4px 0;
}

.detail-location {
  color: var(--navy-soft);
  margin-bottom: var(--space-md);
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.fact {
  background-color: var(--white);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-soft);
}

.fact-value {
  font-weight: 700;
  text-transform: capitalize;
}

.detail-description {
  color: var(--navy-soft);
  font-size: 1.05rem;
  margin-bottom: var(--space-md);
}

.detail-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.detail-list {
  list-style: none;
  background-color: var(--white);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.detail-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px var(--space-sm);
  border-bottom: 1px solid var(--blue-border);
  font-size: 0.95rem;
}

.detail-list li:last-child {
  border-bottom: none;
}

.detail-list span {
  color: var(--navy-soft);
}

.adopted-notice {
  display: inline-block;
  background-color: var(--blue-soft);
  color: var(--primary-dark);
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius-full);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-image img {
    height: 320px;
  }
}
/* ============================================
   18. FILTERI
   ============================================ */
.filters-section {
  padding-bottom: var(--space-md);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
  background-color: var(--white);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  box-shadow: var(--shadow-sm);
}

.filter-input,
.filter-select {
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--navy);
  background-color: var(--blue-bg);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-input {
  flex: 1 1 220px;
  min-width: 180px;
}

.filter-select {
  cursor: pointer;
}

.filter-input:focus,
.filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
}

.filters .btn-ghost {
  margin-left: auto;
}

/* ---------- responsive ---------- */
@media (max-width: 700px) {
  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-input,
  .filter-select {
    width: 100%;
  }

  .filters .btn-ghost {
    margin-left: 0;
  }
}
/* ============================================
   19. FORME
   ============================================ */
.form-section {
  padding: var(--space-md) 0 var(--space-xl);
}

.container-narrow {
  max-width: 720px;
}

/* ---- Ljubimac na vrhu forme ---- */
.apply-pet {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background-color: var(--white);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.apply-pet img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.apply-pet-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-soft);
}

.apply-pet-name {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}

.apply-pet-meta {
  color: var(--navy-soft);
  font-size: 0.9rem;
  text-transform: capitalize;
}

/* ---- Forma ---- */
.form {
  background-color: var(--white);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.form-group {
  margin-bottom: var(--space-sm);
  border: none;
}

.form-group label,
.form-group legend {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.required {
  color: #e5484d;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--navy);
  background-color: var(--blue-bg);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
}

/* ---- Čekboksi i radio ---- */
/* label.checkbox/label.radio: mora biti specifičnije od ".form-group label"
   (display: block) da bi flex i gap ispod zaista radili. */
label.checkbox,
label.radio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  font-size: 0.95rem;
  margin-bottom: 8px;
  cursor: pointer;
}

.checkbox input,
.radio input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ---- Fieldset "Details": centrirane čekbox pločice ---- */
fieldset.form-group {
  text-align: center;
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  background-color: var(--blue-bg);
  padding: var(--space-md) var(--space-sm) var(--space-sm);
  margin-top: var(--space-sm);
}

fieldset.form-group legend {
  margin: 0 auto 14px;
  padding: 0 10px;
  font-size: 1rem;
  text-align: center;
}

fieldset.form-group .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

fieldset.form-group .checkbox {
  margin-bottom: 0;
  padding: 10px 16px;
  background-color: var(--white);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-full);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

fieldset.form-group .checkbox:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
}

/* ---- Upload slika u formi ---- */
.image-upload-box {
  border: 2px dashed var(--blue-border);
  border-radius: var(--radius-md);
  background-color: var(--blue-bg);
  padding: var(--space-sm);
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.image-upload-box.is-dragover {
  border-color: var(--primary);
  background-color: rgba(47, 111, 237, 0.06);
}

.image-upload-box input[type="file"] {
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--navy-soft);
  cursor: pointer;
}

.image-upload-box input[type="file"]::file-selector-button {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  background-color: var(--primary);
  border: none;
  border-radius: var(--radius-full);
  padding: 10px 18px;
  margin-right: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.image-upload-box input[type="file"]::file-selector-button:hover {
  background-color: var(--primary-dark);
}

.image-upload-hint {
  font-size: 0.82rem;
  color: var(--navy-soft);
  margin: 10px 0 0;
}

/* ---- Pregled slika u formi ---- */
.image-preview-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.image-preview-grid:not(:empty) {
  padding-top: var(--space-xs);
  border-top: 1px dashed var(--blue-border);
}

.image-preview-item {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--blue-border);
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  line-height: 18px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  color: var(--white);
  font-size: 0.9rem;
  cursor: pointer;
}

.image-preview-remove:hover {
  background-color: rgba(0, 0, 0, 0.85);
}

/* ---- Poruke o greškama ---- */
.field-error {
  color: #e5484d;
  font-size: 0.85rem;
  margin-top: 5px;
  min-height: 1em;
}

.error-box {
  background-color: #fdeced;
  border: 1px solid #f5c2c5;
  color: #a8262b;
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  margin-top: var(--space-sm);
}

.error-box ul {
  margin: 8px 0 0 20px;
}

/* ---- Poruka o uspjehu ---- */
.success-box {
  background-color: var(--white);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.success-box h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: var(--space-xs);
}

.success-box p {
  color: var(--navy-soft);
  margin-bottom: 6px;
}

.success-box .btn {
  margin-top: var(--space-sm);
}

/* ---- responsive ---- */
@media (max-width: 700px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .apply-pet {
    flex-direction: column;
    text-align: center;
  }
}
/* ============================================
   20. PRIJAVA I REGISTRACIJA
   ============================================ */
.container-tiny {
  max-width: 460px;
}

.auth-card {
  background-color: var(--white);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  box-shadow: var(--shadow-md);
  margin-top: var(--space-lg);
}

.auth-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.auth-subtitle {
  color: var(--navy-soft);
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: var(--space-md);
}

/* forma unutar kartice — bez svog okvira */
.form-flat {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-top: 0;
}

.field-hint {
  font-size: 0.8rem;
  color: var(--navy-soft);
  margin-top: 5px;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: var(--space-xs);
}

.auth-switch {
  text-align: center;
  font-size: 0.9rem;
  color: var(--navy-soft);
  margin-top: var(--space-md);
}

.auth-switch a {
  color: var(--primary);
  font-weight: 600;
}

.auth-switch a:hover {
  text-decoration: underline;
}
.nav-user {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

.nav-logout {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy-soft);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.nav-logout:hover {
  color: var(--primary);
}
.fav-btn.is-favorite {
  color: #e5484d;
  background-color: var(--white);
}
/* ============================================
   21. PROFIL
   ============================================ */
.profile-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background-color: var(--white);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-md);
}

.profile-avatar {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  background-color: var(--primary);
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-name {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.profile-email {
  color: var(--navy-soft);
  font-size: 0.95rem;
}

.profile-since {
  color: var(--navy-soft);
  font-size: 0.85rem;
  margin-top: 2px;
}

/* ---- Statistika ---- */
.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.stat-card {
  background-color: var(--white);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--navy-soft);
}

.section-subtitle {
  font-size: 1.2rem;
  font-weight: 700;
  margin: var(--space-lg) 0 var(--space-sm);
}

.profile-hint {
  color: var(--navy-soft);
  font-size: 0.95rem;
}

.profile-hint a {
  color: var(--primary);
  font-weight: 600;
}

/* ---- Kartica prijave ---- */
.applications-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.application-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background-color: var(--white);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.application-card:hover {
  box-shadow: var(--shadow-md);
}

.application-image {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.application-info {
  flex: 1;
  min-width: 0;
}

.application-pet {
  font-size: 1.1rem;
  font-weight: 700;
}

.application-meta {
  font-size: 0.9rem;
  color: var(--navy-soft);
  text-transform: capitalize;
}

.application-date {
  font-size: 0.8rem;
  color: var(--navy-soft);
  margin-top: 2px;
}

.application-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.application-link {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

/* ---- Kartica poruke (Contact us) ---- */
.messages-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.message-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
  background-color: var(--white);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.message-card:hover {
  box-shadow: var(--shadow-md);
}

.message-info {
  flex: 1;
  min-width: 0;
}

.message-meta {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.message-meta a {
  color: var(--primary);
}

.message-date {
  color: var(--navy-soft);
  font-size: 0.8rem;
  margin-left: 8px;
}

.message-text {
  color: var(--navy-soft);
  white-space: pre-wrap;
}

.message-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.message-reply {
  margin-top: var(--space-xs);
  padding: 10px 12px;
  background-color: var(--blue-bg);
  border-radius: var(--radius-sm);
}

.message-reply-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.message-reply-text {
  color: var(--navy);
  white-space: pre-wrap;
}

.message-reply-form {
  margin-top: var(--space-xs);
}

.message-reply-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--navy);
  background-color: var(--blue-bg);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  resize: vertical;
}

.message-reply-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

/* ---- Status oznake ---- */
.status-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.status-pending {
  background-color: #fff4e0;
  color: #a76500;
}

.status-under-review {
  background-color: var(--blue-soft);
  color: var(--primary-dark);
}

.status-approved {
  background-color: #e3f8ec;
  color: #1a7a45;
}

.status-rejected {
  background-color: #fdeced;
  color: #a8262b;
}

.status-completed {
  background-color: #ede8fd;
  color: #5b3fc4;
}

/* ---- responsive ---- */
@media (max-width: 700px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .application-card {
    flex-wrap: wrap;
  }

  .application-side {
    align-items: flex-start;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }
}
/* ============================================
   22. ADMIN
   ============================================ */
.hidden {
  display: none !important;
}

/* ---- Taberi ---- */
.tabs {
  display: flex;
  gap: var(--space-xs);
  border-bottom: 1px solid var(--blue-border);
  margin-top: var(--space-md);
}

.tab {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-soft);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 14px;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tab:hover {
  color: var(--primary);
}

.tab.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-panel {
  padding-top: var(--space-md);
  padding-bottom: var(--space-xl);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.panel-head .section-subtitle {
  margin: 0;
}

.panel-hint {
  color: var(--navy-soft);
  margin-bottom: var(--space-md);
}

.panel-divider {
  border: none;
  border-top: 1px solid var(--blue-border);
  margin: var(--space-lg) 0;
}

.panel-section-gap {
  margin-top: var(--space-md);
}

.success-story-admin-card {
  background-color: var(--white);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.success-story-admin-actions {
  display: flex;
  gap: var(--space-sm);
  margin: var(--space-xs) 0;
  flex-wrap: wrap;
}

.success-story-picker-panel {
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px dashed var(--blue-border);
}

/* ---- Slika na početnoj (admin) ---- */
.current-hero {
  margin-bottom: var(--space-md);
}

.current-hero-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.current-hero img {
  width: 100%;
  max-width: 420px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.image-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.image-picker-item {
  padding: 0;
  border: 3px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: none;
  aspect-ratio: 1;
}

.image-picker-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-picker-item:hover {
  border-color: var(--blue-border);
}

.image-picker-item.is-selected {
  border-color: var(--primary);
}

/* ---- Forma u adminu ---- */
.form-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.form-actions {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-top: var(--space-sm);
}

/* ---- Tabela ---- */
.table-wrap {
  overflow-x: auto;
  background-color: var(--white);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 640px;
}

.admin-table th {
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-soft);
  padding: 12px var(--space-sm);
  border-bottom: 1px solid var(--blue-border);
  white-space: nowrap;
}

.admin-table td {
  padding: 12px var(--space-sm);
  border-bottom: 1px solid var(--blue-border);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover {
  background-color: var(--blue-bg);
}

.cell-pet {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.cell-pet img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.cell-actions {
  text-align: right;
  white-space: nowrap;
}

.capitalize {
  text-transform: capitalize;
}

/* ---- Dugmad kao linkovi ---- */
.link-btn {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.link-btn:hover {
  background-color: var(--blue-soft);
}

.link-danger {
  color: #c62a30;
}

.link-danger:hover {
  background-color: #fdeced;
}
.status-select {
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--navy);
  background-color: var(--blue-bg);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.status-select:hover {
  border-color: var(--primary);
}

.status-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
}
/* ============================================
   23. TOAST PORUKE
   ============================================ */
.toast-container {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
}

.toast {
  padding: 12px var(--space-sm);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.25s ease;
}

.toast-error   { background-color: #c62a30; }
.toast-success { background-color: #1a7a45; }
.toast-info    { background-color: var(--primary); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}