/* Agenda Template Styles */
.agenda {
  .agenda-wrapper {
    background: #f8f6f2;
    padding: 20px;
    border-radius: 10px;
  }

  h4 {
    font-size: 36px;
    font-family: var(--font-voltaire);
  }
}

.double-line-separator {
  /* De breedte is de volledige containerbreedte (of stel in op een vaste waarde) */
  width: 100%;

  /* De lijnen worden gemaakt door de borders. */
  border-top: 3px solid #e5b880;
  /* Dikte en kleur van de bovenste lijn */
  border-bottom: 3px solid #e5b880;
  /* Dikte en kleur van de onderste lijn */

  /* Dit creëert de verticale witte ruimte tussen de twee lijnen */
  height: 10px;

  /* Optioneel: Achtergrondkleur om de 'witruimte' te simuleren 
       (Hoewel dit vaak de achtergrondkleur van de pagina is, is het goed om te vermelden) */
  background-color: transparent;

  /* Optioneel: Marge om afstand te creëren tot andere elementen */
  margin: 20px 0;
}

/* Skeleton Loader Styles */

.skeleton-day-name,
.skeleton-day {
  text-align: center;
  padding: 20px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

.skeleton-day-name {
  /* Match .day-name height exactly */
  padding: 20px;
  min-height: auto;
  height: auto;
}

.skeleton-day.empty {
  background: transparent;
  animation: none;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Popup Styles */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-overlay.show {
  opacity: 1;
}

.popup {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(50px);
  transition: transform 0.3s ease;
}

.popup-overlay.show .popup {
  transform: translateY(0);
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Time Slot Styles */
.time-slot {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  text-align: center;
  border-radius: 50px;
  padding: 10px 30px;
  margin-bottom: 20px;
}

.time-slot.available {
  background: #47b83c4d;
}

.time-slot.almost-full {
  background: #fff3cd;
}

.time-slot.full {
  background: #f8d7da;
}

.time-slot .time {
  font-weight: bold;
  font-size: 28px;
  font-family: "Voltaire";
}

/* Calendar Styles */
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 15px;
  width: 100%;
}

@media (max-width: 768px) {
  .calendar {
    gap: 5px;
  }
}

.day-name {
  text-align: center;
  padding: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #004c694d;
  font-size: 14px;
  font-style: italic;
}

.day {
  text-align: center;
  padding: 8px;
  cursor: default;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 22px;
  font-weight: 400;
}

.day.available {
  background: #47b83c4d;
  cursor: pointer;
}

.day.unavailable {
  background: #e2e2e0;
}

.day.empty {
  background: transparent;
}

.month-selector,
.walker-selector {
  background: #f3f3f3;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 10px;
}

#monthYear {
  padding-left: 25px;
  padding-right: 25px;
}

.controls-wrapper {
  transition: all 0.3s ease;
  z-index: 100;

  button {
    border: 0;
    font-size: 16px;
  }
}

.controls-wrapper.sticky {
  position: fixed !important;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  background: #fefbf7;
}

#walkersSelect {
  font-size: 16px;
  text-align: center;
  background: transparent;
  border: 0;
}

input[type="number"]::-webkit-inner-spin-button {
  position: absolute;
  width: 12.5%;
  height: 100%;
  top: 0;
  right: 0;
}

button#decreaseWalkers,
button#increaseWalkers {
  font-size: 24px;
  background: unset;
  cursor: pointer;
}

/* Chevron icon styles */
.chevron-icon {
  cursor: pointer;
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("http://smaakverkenners-2025.local/wp-content/uploads/2025/09/Vector-7.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  /* Filter to change color to #1A5579 */
  filter: brightness(0) saturate(100%) invert(23%) sepia(37%) saturate(1247%)
    hue-rotate(165deg) brightness(95%) contrast(92%);
}

.chevron-left {
  transform: rotate(90deg);
}

.chevron-right {
  transform: rotate(-90deg);
}

.chevron-up {
  transform: rotate(180deg);
}

/* .chevron-down - default orientation, no rotation needed */
p.showMonth {
  font-family: var(--font-voltaire);
  color: #1a5579;
  font-size: 21px;
  min-width: fit-content;
}

/* Individual month navigation buttons */
.individual-month-selector {
  display: flex;
  align-items: center;
  justify-content: space-between !important;
  gap: 10px;
}

.month-nav-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
  background-color: white;
  border-radius: 5px;
}

.month-nav-btn:hover {
  opacity: 0.7;
}

.month-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.month-nav-btn .chevron-icon {
  width: 20px;
  height: 20px;
}

@media (max-width: 1200px) {
  .controls-wrapper.sticky {
    max-width: 960px;
  }
}

@media (max-width: 992px) {
  .controls-wrapper.sticky {
    max-width: 720px;
  }

  .right-side {
    .legend-filter {
      font-size: 12px;
      line-height: 100%;
      min-height: unset;
    }
  }

  .chevron-icon {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 768px) {
  .controls-wrapper.sticky {
    max-width: 540px;
  }
}

@media (max-width: 576px) {
  .controls-wrapper.sticky {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}
