/* Osnovni stilovi */
.search-container {
  margin-bottom: 30px;
  display: flex;
  justify-content: flex-end; /* Pomera search box na desno */
}

#searchInput {
  padding: 10px 15px;
  width: 300px;
  max-width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  background-color: white;
}

#searchInput:focus {
  outline: none;
  border-color: #0C3F76;
}

/* Responsive stilovi */
@media screen and (max-width: 768px) {
  .search-container {
      padding: 0 10px;
      justify-content: center;
  }

  #searchInput {
      width: 100%;
  }
}

/* Stilovi za tabelu */
.training-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px auto;
  background-color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
}

.training-table th, 
.training-table td {
  padding: 15px;
  text-align: center;
  vertical-align: middle;
  border: 1px solid #ddd;
  font-family: 'DM Sans', sans-serif; /* Osiguravamo da je font DM Sans za tabelu */
  height: 60px;
}

.training-table th {
  background-color: #0C3F76;
  color: white;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  position: -webkit-sticky;
  position: sticky;
  letter-spacing: 0.5px;
  height: 50px;
}

.training-table tr:nth-child(odd) {
  background-color: white;
}

.training-table tr:nth-child(even) {
  background-color: #F8F8F8;
}

.training-table tr.hidden-row {
  display: none;
}

/* Stilovi za popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0; /* Početna nevidljivost */
  visibility: hidden; /* Skriva modal */
  transition: all 0.3s ease;
  font-family: 'DM Sans', sans-serif; /* Setujemo DM Sans font za sve popup elemente */
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible; /* Popup postaje vidljiv */
}

.popup-content {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  width: 80%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  font-family: 'DM Sans', sans-serif; /* Osiguravamo DM Sans za sadržaj popupa */
}

/* Stil za dugme za zatvaranje */
.close-popup {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 40px;
  cursor: pointer;
  color: #1E4C83;
  font-weight: 300;
  line-height: 1;
  font-family: 'DM Sans', sans-serif; /* Setujemo DM Sans za dugme za zatvaranje */
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.close-popup:hover {
  color: #0C3F76;
}

/* Naslov u popupu */
.popup-title {
  margin-top: 0;
  color: #0C3F76;
  font-weight: 700;
  font-size: 24px;
  text-align: center;
  font-family: 'DM Sans', sans-serif !important;
  position: relative;
  margin-bottom: 25px;
  margin-top: 20px;
  padding-top: 10px;
}

/* Crvena linija ispod naslova */
.popup-divider {
  width: 100%;
  height: 2px;
  background-color: #E83F45; /* Crvena linija */
  margin-top: 20px; /* Razmak između naslova i linije */
  margin-bottom: 20px; /* Razmak između linije i teksta */
}

/* Sekcije unutar popupa */
.popup-section {
  margin: 25px 0;
  font-family: 'DM Sans', sans-serif !important; /* Setujemo DM Sans font za sekcije */
}

.section-title {
  color: #0C3F76;
  font-weight: 500;
  margin-bottom: 12px;
  font-size: 16px;
  font-family: 'DM Sans', sans-serif !important; /* Setujemo DM Sans font za naslove u sekcijama */
}

.popup-text {
  margin: 10px 0;
  line-height: 1.6;
  color: #051E3C;
  font-family: 'DM Sans';
  font-size: 16px;
  white-space: pre-line; /* Omogućava prikaz novih redova (\n) */
}

.clickable {
  color: #0C3F76;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif; /* Setujemo DM Sans font */
  display: inline-block;
  padding: 5px 0;
}

.clickable:hover {
  text-decoration: underline;
}
