/* ================================================== */
/* CALENDAR CONTAINER & STRUCTURE */
/* ================================================== */
.calender-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  position: relative;
  background: #ffffff;
  border-radius: 25px;
  margin: 0 auto;
  transform: scale(0.9);
  transform-origin: top center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  min-width: 385px;
  max-width: 385px;

  display: flex;
  justify-content: center;
}

.calender {
  width: 350px;
}

.calender-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calender-header button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  width: 40px;
  height: 40px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  color: #111;
  transition: background 0.2s;
}

.monthYear {
  text-align: center;
  font-weight: 600;
  font-size: 1.2rem;
  width: 180px;
}

.days {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  width: 100%;
  margin-bottom: 10px;
}

.day {
  text-align: center;
  padding: 5px;
  color: #999fa6;
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.dates {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  width: 100%;
  gap: 5px;
}

/* ================================================== */
/* DATE STYLES & STATES */
/* ================================================== */
.date {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
  box-sizing: border-box;
}

/* Klikbare datoer (Nuværende måned) */
.date.active {
  background-color: #ffffff;
  color: #333;
  cursor: pointer;
}

.date.active:hover {
  background-color: #f0f7ff;
  color: #007bff;
}

.date.outside.active {
  color: #dbdada;
}

.date.outside.active:hover {
  background-color: #f0f7ff;
  color: #007bff;
}

/* Fortid / Inaktiv (Den lyse grå boble) */
.date.inactive {
  background-color: #f9fafb !important;
  color: #d1d5db !important;
  cursor: not-allowed !important;
  pointer-events: none;
  /* Vi sætter en ensartet opacity her */
  opacity: 0.6;
}

/* Specifik styling for passerede outside datoer */
.date.outside.inactive {
  background-color: #f9fafb !important;
  color: #dedfe0 !important;
  /* Opacity er nu styret af .date.inactive ovenfor */
  opacity: 0.6;
}
/* I dag */
.date.current {
  background-color: #eefbff !important;
  border: 2px solid #007bff !important;
  font-weight: bold;
  color: #007bff;
}

/* ================================================== */
/* DAY CIRCLE & SLOTS */
/* ================================================== */
.day-circle {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: #ff4757;
  color: white;
  font-size: 10px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1.5px solid white;
}

.slot-available {
  padding: 8px 15px;
  border-radius: 5px;
  background-color: #28a745;
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.info-refresh {
  animation: infoFadeIn 0.35s ease-out forwards;
}

@keyframes infoFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1400px) {
  .calender-container {
    width: 95%;
    max-width: 385px;
  }
}

#nextBtn {
  position: relative;
}

/* Specifik placering for cirklen på knappen */
#nextBtn .day-circle {
  top: -5px;
  right: -5px;
  background-color: #ff4757; /* Samme røde farve som dato-cirklerne */
  position: absolute;
  pointer-events: none; /* Forhindrer at den blokerer for klik på pilen */
  z-index: 20;
}

#prevBtn,
#nextBtn {
  position: relative; /* Gør det muligt at placere badget præcist */
  overflow: visible; /* Tillad badget at "stikke ud" af knappen */
}

/* Badge styling - placeret øverst til højre på knappen */
.future-badge {
  position: absolute !important;
  top: -8px !important;
  right: -8px !important;
  background-color: #ff4757 !important; /* Rød alarm-farve */
  color: white !important;
  min-width: 20px;
  height: 20px;
  font-size: 11px !important;
  border-radius: 10px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 100;
}
