.calendar-popup-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    padding: 10px;
    margin-left: 12px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.calendar-popup-button:hover {
    transform: scale(1.05);
}

.calendar-popup-button img {
    width: 24px;
    height: 24px;
}

.calendar-popup {
    display: none;
    position: absolute;
    top: 100px;
    right: 30px;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    z-index: 100;
}


.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.calendar-card {
  background: #1e1e1e;
  color: #fff;
  width: 340px;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.calendar-header button {
  background: #333;
  border: none;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.calendar-header button:hover {
  background: #444;
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  text-align: center;
}

.calendar-weekdays div {
  font-weight: bold;
  color: #aaa;
}

.calendar-days div {
  padding: 8px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
  background: #2b2b2b;
  height: max-content;
  position: relative;
}

.calendar-days div:hover {
  background: #444;
}

.calendar-days .today {
  background: #007bff;
  color: white;
}

.calendar-day {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  font-size: 16px;
  color: white;
  padding-top: 4px;
}

.event-count-calendar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: blue;
  color: orange;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  padding: 2px 0;
  line-height: 1;
}

.close-btn {
  position: absolute;
  right: 30px;
  top: 30px;
  color: #FFF;
  font-size: 35px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .calendar-card {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}
