/* Globalni stilovi */
html {
  scroll-behavior: smooth; /* Smooth scroll za celu stranicu */
}

html, body {
  height: 100%;
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #333;
  box-sizing: border-box;
}

body {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Minimalna visina da stranica pokrije celu visinu */
}

/* === GLOBAL HEADER STYLES === */
header#header {
  width: 100%;
  background-color: #ffffff;
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

header#header .logo-container img {
  height: 120px;
  max-height: 120px;
  object-fit: contain;
  cursor: pointer;
}

header#header.small-logo .logo-container img {
  height: 60px;
  max-height: 60px;
}

@media (max-width: 768px) {
  header#header .logo-container img {
      height: 80px;
      max-height: 80px;
  }

  header#header.small-logo .logo-container img {
      height: 50px;
      max-height: 50px;
  }
}

/* Stilizacija za header i footer - fiksna visina */
header, footer {
  background-color: #f4f4f4;
  color: #333;
  text-align: center;
  padding: 8px;
  width: 100%;
  border-top: 2px solid #ff6b6b;
  box-sizing: border-box;
  flex-shrink: 0;
}

header {
  border-bottom: 2px solid #ff6b6b;
}

/* Logo u header-u - responzivan */
.logo {
  max-width: 127px;
  height: auto;
}

@media (min-width: 1024px) {
  .logo {
      max-width: 150px; /* Povećanje logotipa za veće ekrane */
  }
}

@media (min-width: 1440px) {
  .logo {
      max-width: 180px; /* Još veće povećanje za ultra-velike ekrane */
  }
}

/* Stilizacija za kontejner */
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  padding: 10px 0;
  flex-grow: 1;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .container {
      max-width: 1100px;
  }
}

@media (min-width: 1440px) {
  .container {
      max-width: 1300px;
  }
}

/* Globalne opcije */
.global-options {
  text-align: center;
  margin-bottom: 15px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 15px;
  box-sizing: border-box;
}

.global-options div {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
  box-sizing: border-box;
  width: 100%;
}

.global-options label {
  margin-bottom: 5px;
  text-align: center;
  width: 100%;
  word-wrap: break-word;
  white-space: normal;
}

.global-options select {
  width: 100%;
  padding: 8px;
  background-color: #ffffff;
  color: #333;
  border: 2px solid #ff6b6b;
  border-radius: 5px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

/* Stilovi za Drop Zone */
.drop-zone {
  border: 2px dashed #ff6b6b;
  padding: 25px;
  border-radius: 5px;
  font-size: 16px;
  color: #333;
  background-color: #f4f4f4;
  cursor: pointer;
  margin-bottom: 15px;
  width: 100%;
  box-sizing: border-box;
  min-height: 170px;
  letter-spacing: 1px;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-weight: bold;
}

@media (min-width: 1024px) {
  .drop-zone {
      padding: 25px;
      font-size: 18px;
      min-height: 170px;
  }
}

@media (min-width: 1440px) {
  .drop-zone {
      padding: 25px;
      font-size: 20px;
      min-height: 170px;
  }
}

/* Stilovi za Preview i kontrole slika */
#image-preview-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  box-sizing: border-box;
}

.image-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
}

.image-preview img {
  width: 100%;
  height: auto;
  max-width: 200px;
  max-height: 200px;
  object-fit: cover;
}

/* Stilovi za kontrole ispod slike */
.image-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

/* Uniform width for dropdown and quantity input */
.image-controls select,
.image-controls input[type="number"] {
  width: 100px;
  padding: 5px;
  margin-right: 10px;
  box-sizing: border-box;
}

/* Dugme "Ukloni" iste širine kao i polja */
.image-preview .remove-button {
  width: 210px;
  padding: 8px;
  margin-top: 10px;
  background-color: #ff6b6b;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.remove-button:hover {
  background-color: #fff;
  color: #ff6b6b;
  border-color: #ff6b6b;
}

/* Dugme "Sledeća stranica" */
#next-page-button {
  background-color: #ff6b6b;
  color: #fff;
  border: 2px solid #ff6b6b;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 10px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#next-page-button:disabled {
  background-color: #cccccc;
  color: #666666;
  border-color: #cccccc;
  cursor: not-allowed;
}

#next-page-button:enabled {
  background-color: green;
  color: white;
  border-color: green;
}

/* Stilizacija za dugmad */
.remove-button, #next-page-button, #remove-all-button {
  background-color: #ff6b6b;
  color: #fff;
  border: 1px solid transparent;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  letter-spacing: 1px;
}

.remove-button:hover, #next-page-button:hover, #remove-all-button:hover {
  background-color: #fff;
  color: #ff6b6b;
  border-color: #ff6b6b;
}


/* Dugmad ispod drop zone */
.buttons-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 15px;
  box-sizing: border-box;
  gap: 200px;
}

#remove-all-button,  #scroll-to-top-button {
  width: calc(50% - 100px);
  margin: 0;
  font-size: medium;
  letter-spacing: 1px;
}

#remove-all-button {
  margin-left: 0;
}

#scroll-to-top-button {
  margin-right: 0;
}

/* Responsive design for smaller screens */
@media (max-width: 877px) {
  footer {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      padding: 20px 0;
  }

  .footer-content {
      display: flex;
      flex-direction: column;
      gap: 20px;
      align-items: center;
      width: 100%;
  }

  .footer-right {
      order: -1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
  }

  .footer-left {
      order: 1;
      margin-top: 20px;
  }

  .footer-center {
      order: 0;
  }
}


@media (max-width: 877px) {
  .footer-content {
      flex-direction: column-reverse;
      align-items: center;
      justify-content: center;
      height: auto;
      padding: 10px;
  }

  .footer-left, .footer-center, .footer-right {
      margin-bottom: 5px;
  }

  footer {
      padding: 10px;
  }

  .container {
      padding: 5px 0;
  }

  .global-options div {
      margin-bottom: 10px;
  }

  .drop-zone {
      padding: 15px;
  }

  .progress-bar {
      height: 15px;
  }

  .buttons-container {
      gap: 50px;
      margin-top: 10px;
  }

  #additional-upload-icon {
      width: 80px;
      height: 80px;
  }

  #next-page-button, #remove-all-button {
      padding: 8px 16px;
      font-size: 14px;
  }
}

@media (max-width: 877px) {
  .buttons-container {
      flex-direction: column;
      gap: 10px;
  }

  #remove-all-button,
  #scroll-to-top-button {
      width: 100%;
      margin: 0;
  }
}

@media (max-width: 877px) {
  .footer-center {
      display: flex;
      justify-content: center;
      width: 100%;
      margin-bottom: 10px;
  }

  #next-page-button {
      width: 100%;
  }
}

@media (max-width: 877px) {
  .buttons-container, .footer-right {
      margin-bottom: 10px;
  }

  #scroll-to-top-button {
      margin-top: 10px;
      margin-bottom: 10px;
  }

  .footer-right {
      margin-top: 10px;
      margin-bottom: 10px;
  }
}

@media (max-width: 877px) {
  .global-options {
      margin-top: 20px;
  }

  .buttons-container, .footer-right {
      margin-bottom: 20px;
  }

  #scroll-to-top-button {
      margin-top: 20px;
      margin-bottom: 20px;
  }

  .footer-right {
      margin-top: 20px;
      margin-bottom: 20px;
  }
}

#additional-upload-icon .upload-plus {
  font-size: 36px;
  font-weight: bold;
  color: #fff;
}

#additional-upload-icon .upload-text {
  font-size: 14px;
  color: #fff;
  margin-top: 5px;
}


/* Dugme onemogućeno (sivo) */
#next-page-button:disabled {
  background-color: #cccccc;
  color: #666666;
  border-color: #cccccc;
  cursor: not-allowed;
}

/* Dugme za dodavanje još slika (Plus znak) */
.add-more-button {
  width: 100px;
  height: 100px;
  background-color: #ff6347;
  border: 2px dashed #999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 10px auto;
  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.add-more-button:hover {
  background-color: #ff4500;
  transform: scale(1.1);
}

.add-more-button .upload-plus {
  font-size: 36px;
  font-weight: bold;
  color: #fff;
}

.add-more-button .upload-text {
  font-size: 14px;
  color: #fff;
  margin-top: 5px;
}


/* Footer */
footer {
  background-color: #f4f4f4;
  padding: 20px;
  border-top: 2px solid #ff6b6b;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

.footer-left, .footer-center, .footer-right {
  flex: 1;
}

.footer-left {
  text-align: left;
}

.footer-center {
  text-align: center;
}

.footer-right {
  text-align: right;
}

#next-page-button {
  background-color: #ff6b6b;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

#next-page-button:disabled {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
}

#next-page-button:enabled:hover {
  background-color: green;
  color: white;
}

/* Additional styles for smaller screens */
@media (max-width: 600px) {
  footer {
      padding: 5px;
  }
  .footer-content {
      flex-direction: column;
      gap: 5px;
  }
  .footer-left, .footer-center, .footer-right {
      margin-bottom: 5px;
  }

  .container {
      padding: 5px 0;
  }

  .drop-zone {
      padding: 10px;
      font-size: 14px;
      min-height: 120px;
  }

  .image-preview img {
      max-width: 150px;
      max-height: 150px;
  }

  #next-page-button, #remove-all-button, #scroll-to-top {
      padding: 6px 12px;
      font-size: 12px;
  }
  
  #additional-upload-icon {
      width: 60px;
      height: 60px;
      font-size: 10px;
  }
}


:root {
  --primary-color: #ff6b6b;
  --secondary-color: #ff6347;
  --background-color: #f4f4f4;
  --text-color: #333;
  --footer-padding: 20px;
}

html, body {
  height: 100%;
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background: var(--background-color);
  color: var(--text-color);
  box-sizing: border-box;
}

body {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header i Footer */
header, footer {
  background-color: var(--background-color);
  color: var(--text-color);
  padding: 8px;
  border-top: 2px solid var(--primary-color);
  flex-shrink: 0;
}

.logo {
  max-width: 127px;
  height: auto;
}

/* Container */
.container {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  padding: 10px 0;
  flex-grow: 1;
}

/* Drop Zone */
.drop-zone {
  border: 2px dashed var(--primary-color);
  padding: 25px;
  min-height: 170px;
  background-color: var(--background-color);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

/* Progres bar */
.progress {
  background-color: green;
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
  color: white;
  text-align: center;
}

/* Dugme za dodavanje */
#additional-upload-icon {
  width: 200px;
  height: 200px;
  background-color: var(--secondary-color);
  border: 2px dashed #999;
  color: white;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Dugmad */
#next-page-button, #remove-all-button, #scroll-to-top {
  padding: 8px 16px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 5px;
  margin-top: 10px;
  cursor: pointer;
  transition: 0.2s ease;
}

/* Responsive stilovi */
@media (max-width: 877px) {
  footer {
      padding: 10px;
      flex-direction: column;
      text-align: center;
  }
  .drop-zone {
      padding: 15px;
      min-height: 120px;
  }
  #additional-upload-icon {
      width: 80px;
      height: 80px;
  }
  #next-page-button, #remove-all-button {
      padding: 6px 12px;
  }
}


/* Full-screen content adjustments */

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

.personal-background {
  background-color: #ff6b6b;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
}

.personal-background .container {
  width: 100%;
  max-width: none;
  padding: 20px;
  margin: 0;
  box-sizing: border-box;
}

#personal-data-form label,
#personal-data-form input,
#personal-data-form textarea {
  width: calc(100% - 40px);
  margin: 10px auto;
  padding: 10px;
  font-size: 16px;
  box-sizing: border-box;
}

button {
  display: block;
  width: calc(100% - 40px);
  margin: 10px auto;
  padding: 10px;
  font-size: 16px;
  background-color: #ff6b6b;
  color: white;
  border: none;
  border-radius: 5px;
  box-sizing: border-box;
}

button:hover {
  background-color: #ff4c4c;
}


/* Significantly restyle input fields and text area */
#personal-data-form input,
#personal-data-form textarea {
  border: none;
  border-radius: 0px;
  background: f4f4f4;
  color: darkslategray;
  padding: 12px 24px;
  font-size: 18px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Add hover and focus effects */
#personal-data-form input:hover,
#personal-data-form textarea:hover,
#personal-data-form input:focus,
#personal-data-form textarea:focus {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  outline: none;
}

/* Placeholder text styling */
#personal-data-form input::placeholder,
#personal-data-form textarea::placeholder {
  color: gray;
  font-style: italic;
}


.footer-left {
  width: 100%;
  display: flex;
  justify-content: center;
}

.footer-left button {
  width: calc(100% - 40px);
  padding: 12px 24px;
  font-size: 16px;
  margin: 0 auto;
  box-sizing: border-box;
}

.footer-center button {
  width: calc(100% - 40px);
  padding: 12px 24px;
  font-size: 16px;
  box-sizing: border-box;
}

@media (max-width: 877px) {
  .footer-left button,
  .footer-center button {
      width: 100%;
      margin: 10px auto;
      padding: 12px 24px;
      font-size: 16px;
      box-sizing: border-box;
  }
}


#report-container {
  padding: 20px;
  background-color: transparent;
  border: none;
  box-shadow: none;
  margin: 0 auto;
  width: 100%;
  max-width: 800px;
  box-sizing: border-box;
  color: #000;
}

/* Stil za naslov izveštaja */
h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
  font-size: 24px;
  font-weight: bold;
}

#payment-method {
  width: 100%; 
  padding: 8px;
  background-color: #ffffff;
  color: #333;
  border: 2px solid #ff6b6b;
  border-radius: 5px;
  margin-top: 10px;
  box-sizing: border-box;
}

.payment-method-container {
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
  margin-top: 15px;
}


/* Stil toggle menija u headeru */
.toggle-menu {
  width: 100%;
  max-width: 300px;
  margin: 10px auto;
  background-color: #f4f4f4;
  border: 1px solid #ff6b6b;
  border-radius: 5px;
  padding: 10px;
  text-align: center;
}

.toggle-button {
  background-color: #ff6b6b;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  margin-bottom: 10px;
}

.menu-content {
  display: none;
}

.menu-content ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.menu-content li {
  padding: 4px 0;
}

.menu-content p {
  margin: 5px 0;
  font-size: 14px;
}

.buttons-container {
  display: flex;
  gap: 20px;
  width: 100%;
  margin-top: 15px;
  box-sizing: border-box;
}

.buttons-container button {
  flex: 1;
  height: 50px;
  font-size: 16px;
  letter-spacing: 1px;
}

#scroll-to-top-button {
  background-color: #fcfcfc;
  color: #3b3b3b;
  border: 1px solid transparent;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  letter-spacing: 1px;
}

#scroll-to-top-button:hover {
  background-color: #0057b300;
  border-color: #0056b3;
}

/* Stil za header-container koji se nalazi unutar headera */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Toggle meni (cenovnik) na desnoj ivici */
.toggle-menu {
  margin: 0;
  text-align: right;
}

#progress {
  transition: width 0.5s ease;
}

.loading-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.loading-content {
  background-color: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #007BFF;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.progress-container {
  margin-top: 15px;
  width: 100%;
  background-color: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  height: 20px;
}

.progress {
  width: 0%;
  height: 100%;
  background-color: #28a745;
  transition: width 0.5s ease;
  text-align: center;
  color: #fff;
  line-height: 20px;
  font-size: 12px;
}

#next-page-button {
  background-color: #6babff !important;
  color: #fff !important;
  border: 2px solid #6babff !important;
  padding: 16px 32px !important;
  font-size: 18px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  margin-top: 10px !important;
  margin-bottom: 10px !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

#next-page-button:hover {
  background-color: #6b93ff !important;
  transform: scale(1.05) !important;
}

/* Modal upozorenje za iOS */
.modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #fff;
  padding: 24px;
  border-radius: 10px;
  max-width: 90%;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  font-family: 'Roboto', sans-serif;
}

#iosWarningBtn {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

#iosWarningBtn:hover {
  background-color: #0056b3;
}

.promo-photo-container {
  display: flex;
  justify-content: center;
  width: 100%;
  align-items: flex-start;
  margin-top: 20px;
  gap: 20px;
  flex-wrap: wrap;
}

.promo-photo-container > div {
  flex: 1;
  min-width: 280px;
  max-width: 400px;
}

.promo-code-container {
  text-align: center;
}

.photo-summary {
  background: #f4f4f4;
  border-radius: 10px;
  padding: 10px 15px;
  text-align: center;
  color: #333;
  font-family: 'Roboto', sans-serif;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.photo-summary .total-photos {
  font-size: 24px;
  font-weight: 600;
  color: #222;
  margin-bottom: 10px;
}

.photo-summary .details {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
  color: #666;
}

.photo-summary .details div {
  background: #eaeaea;
  padding: 6px 12px;
  border-radius: 6px;
}

@media (max-width: 767px) {
  .promo-photo-container {
      flex-direction: column;
      align-items: center;
  }

  .promo-photo-container > div {
      max-width: 100%;
      width: 100%;
      text-align: center;
  }

  .photo-summary {
      margin-top: 20px;
  }

  .photo-summary .details {
      flex-direction: column;
      gap: 8px;
  }

  .promo-code-container {
      text-align: center;
  }
}

footer {
  background: #eaeaea;
  color: #333;
  padding: 12px 5px;
  text-align: center;
  position: relative;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.footer-content div {
  flex: 1;
  min-width: 150px;
}

.footer-left, .footer-center, .footer-right {
  font-size: 16px;
}

@media (max-width: 767px) {
  footer {
      padding: 0px 0;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 99;
      background: #eaeaea;
      color: #333;
      box-shadow: 0 -1px 3px rgba(0,0,0,0.1);
  }

  .footer-content {
      flex-direction: column;
      gap: 0px;
  }

  .footer-left, .footer-center, .footer-right {
      font-size: 18px;
      color: #333;
      margin: 0;
      padding: 0px 0;
  }

  .footer-right span {
      font-weight: 700;
      color: #000;
      font-size: 20px;
  }
}

.footer-center button {
  font-size: 16px;
  padding: 12px 24px;
  border: none;
  background-color: #2a69df;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  width: auto;
  max-width: 90%;
}

@media (max-width: 767px) {
  .footer-center button {
      width: auto;
      max-width: 90%;
      padding: 1px 1x;
      font-size: 16px;
  }
}

/* ==== Dodaj još (footer) dugme ==== */
#add-more-footer {
  background-color: #ff6b6b;
  color: #fff;
  border: 2px solid #ff6b6b;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
  width: auto;
  display: inline-block;
  margin-bottom: 8px;
}

#add-more-footer:hover {
  background-color: #e55a5a;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  #add-more-footer {
      width: 90%;
      font-size: 18px;
      padding: 16px 0;
  }
}

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.footer-center button {
  max-width: 100%;
}

#add-more-footer {
  background-color: #ff6b6b;
  border-color: #ff6b6b;
  color: #fff;
}

#next-page-button {
  background-color: #007bff;
  border-color: #007bff;
  color: #fff;
}

@media (max-width: 768px) {
  .footer-center button {
      width: 90%;
  }
}

.loading-modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading-content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #ccc;
  border-top-color: #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
  footer {
      padding: 4px 16px;
  }

  .footer-content {
      flex-direction: column;
      gap: 1px;
  }

  .footer-left,
  .footer-center,
  .footer-right {
      margin: 0;
      padding: 1px 0;
  }

  .footer-left p,
  .footer-center p,
  .footer-right p {
      margin-top: 0;
      margin-bottom: 0;
      line-height: 1.2;
  }

  .footer-center button {
      padding: 1px 12px;
      font-size: 14px;
  }
}

@supports (-webkit-overflow-scrolling: touch) {
  footer {
      padding: 4px 16px;
  }

  .footer-content {
      flex-direction: column;
      gap: 1px;
  }

  .footer-left,
  .footer-center,
  .footer-right {
      margin: 0;
      padding: 1px 0;
  }

  .footer-left p,
  .footer-center p,
  .footer-right p {
      margin-top: 0;
      margin-bottom: 0;
      line-height: 1.2;
  }

  .footer-center button {
      padding: 1px 12px;
      font-size: 14px;
  }
}

.drop-zone:active {
  background-color: rgba(0, 0, 0, 0.05);
}

@media (max-width: 877px) {
  .footer-back {
      order: 2;
  }

  .footer-next {
      order: 1;
  }

  .footer-content {
      flex-direction: column;
  }

  .footer-back button,
  .footer-next button {
      width: 100%;
      margin: 5px 0;
  }
}

button, a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

/* Stil za header-container */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
      transform: translateY(-50px);
      opacity: 0;
  }
  to {
      transform: translateY(0);
      opacity: 1;
  }
}

@media (max-width: 768px) {
  .modal-content {
      margin: 20px;
      width: calc(100% - 40px);
      max-width: 400px;
  }
}