body {
  margin: 0;
  font-family: Arial, sans-serif;
  /* background: #f7f7f7; */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.header {
  width: 100%;
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  /* padding: 20px; */
  display: flex;
  align-items: center;
  justify-content: center;
  /* gap: 15px; */
}
.header .logo {
  font-size: 36px;
  color: #007acc;
}
.header .title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}
.container {
  flex: 1; /* gura footer dolje */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  /* width: 90%; */
  max-width: 800px;
  margin: 70px auto;
}
.tile {
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.dx-button {
  width: auto;
  height: 100%;
  border-radius: 20px !important;
  white-space: normal;
  text-align: center;
}
.btn-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}
.btn-icon {
  font-size: 40px;
  margin-bottom: 20px;
}
.btn-title {
  font-size: 24px;
  font-weight: bold;
}
.btn-subtitle {
  font-size: 16px;
  margin-top: 30px;
}
.footer {
  background: #222;
  color: #ddd;
  padding: 20px;
  text-align: center;
  margin-left: 240px;
}
.footer a {
  color: #ddd;
  text-decoration: none;
  margin: 0 10px;
  font-size: 14px;
}
.footer a:hover {
  text-decoration: underline;
}
.footer .copyright {
  margin-top: 10px;
  font-size: 12px;
  color: #aaa;
}

/* .login-form {
  width: 300px;
  background-color: #fff;
  padding: 30px;
  margin-top: 200px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

h2.text-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

h2.text-center img.logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
} */

.login-form {
  width: 100%;
  max-width: 350px;
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  justify-self: center;
  height: fit-content;
  margin-top: 100px;
}

.form-group {
  margin-bottom: 20px;
}

.slideshow-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20px;
  box-sizing: border-box;
}

.slideshow-container {
  position: relative;
  max-width: 800px;
  width: 100%;
  background-color: #111;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.mySlides {
  display: none;
  position: relative;
}
.mySlides img {
  width: 100%;
  display: block;
}

.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 12px;
  margin-top: -30px;
  color: white;
  font-weight: bold;
  font-size: 24px; /* default veličina */
  user-select: none;
  transition: 0.3s;
  z-index: 1000;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

@media screen and (max-width: 480px) {
  .prev,
  .next {
    font-size: 30px;
    padding: 24px;
  }
  .login-form {
    margin-top: 0px;
  }
  .header-container {
    margin: 20px !important;
  }
  .btn:hover {
    color: var(--bs-btn-color);
    border-color: var(--bs-btn-hover-border-color);
    background-color: transparent;
  }

  /* #gridPoslovi {
    height: calc(100vh - 240px) !important;
    margin: 0px !important;
  }  */
}

.prev {
  left: 0;
}
.next {
  right: 0;
}
/* .prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 3px;
} */

/* @media screen and (max-width: 480px) {
  .slideshow-container {
    max-width: 90%;
  }
  .prev,
  .next {
    font-size: 16px;
    padding: 8px;
  }
} */

.zoom-icon {
  position: absolute;
  top: 10px;
  left: 10px;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 20;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.fullscreen-overlay {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
}

.fullscreen-overlay img {
  max-width: 95%;
  max-height: 95%;
}

.close-fullscreen {
  position: absolute;
  top: 15px;
  right: 25px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
}

.close-fullscreen:hover {
  color: #ccc;
}

.close-gallery {
  position: absolute;
  top: 10px;
  right: 15px;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 20;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}
/* .close-gallery:hover {
  color: #ccc;
} */

#gridPoslovi {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  /* height: calc(100vh - 290px);
    overflow-y: auto;     */
}

.content {
  margin-top: 70px;
  margin-left: 240px;
  padding: 1rem;
  min-height: calc(100vh - 162px);
}

/* ===============================
   POSAO CARD – modern & ujednačen
   =============================== */
.posao-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px -3px rgba(0, 0, 0, 0.1);
  /* transition: all 0.3s ease; */
  overflow: hidden;
  padding: 1rem;
  min-height: 220px; /* sve jednake visine */
}

/* Naslov posla */
.posao-card h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

/* Slika */
.posao-card img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
}
.posao-card img:hover {
  transform: scale(1.05);
}

/* Meta informacije */

.posao-card span {
  color: #374151;
  font-size: 0.9rem;
}
.posao-card .text-muted {
  color: #9ca3af !important;
}

/* Opis */
.posao-card p {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.4;
  height: 2.6em;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Cijena */
.posao-card .price {
  color: #16a34a;
  font-size: 1.3rem;
  font-weight: 700;
  text-align: right;
}

/* Zastavice */
.country-flags img {
  width: 28px;
  height: auto;
  border-radius: 4px;
  transition: transform 0.2s ease;
}
.country-flags img:hover {
  transform: scale(1.1);
}

/* ISO oznaka */
.iso-badge {
  color: #15803d;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.9rem;
}

/* Dugme "Detalji" */
/* .posao-card button {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
} */
/* .posao-card button:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
} */

/* Collapse detalji */
.posao-card .collapse {
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
  margin-top: 1rem;
  animation: fadeIn 0.3s ease;
}

.dx-chat-messagebox-button {
  flex: 0;
}

html,
body,
.container-lg,
.page-wrapper {
  height: 100%;
}

#cardView {
  min-height: 90%;
}

@media (max-width: 768px) {
  #cardView {
    min-height: auto; /* ili visina prema sadržaju */
  }
  .page-wrapper {
    flex-direction: column;
  }
}


@media (max-width: 480px) {
  body { --is-mobile: 1; }
}


/* .chat-disabled .dx-chat-messagebox {
  pointer-events: none;
  opacity: 0.5;
} */