/* ===== CUSTOM CALENDAR ===== */
.custom-cal-popup {
  position: absolute;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 1.25rem;
  width: 320px;
  z-index: 9999;
  font-family: inherit;
  color: #374151;
}

.custom-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cal-nav-btn {
  background: #f3f4f6;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #4b5563;
  font-size: 0.8rem;
  transition: background 0.2s;
}
.cal-nav-btn:hover { background: #e5e7eb; }

.cal-month-year {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
  font-size: 1rem;
  color: #374151;
}

.cal-month, .cal-year {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.cal-month::after, .cal-year::after {
  content: '▾';
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 2px;
}

.custom-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: #9ca3af;
  margin-bottom: 0.75rem;
}

.custom-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 0.5rem;
}

.cal-day {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 50%;
  width: 36px;
  margin: 0 auto;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.cal-day:hover:not(.disabled):not(.selected) {
  border-color: #1c234a;
}

.prev-month-day, .next-month-day, .disabled {
  color: #d1d5db;
  cursor: not-allowed;
}
.prev-month-day:hover, .next-month-day:hover, .disabled:hover {
  border-color: transparent;
}

.cal-day.today {
  position: relative;
  font-weight: 600;
  color: #111827;
}
.cal-day.today::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 16px;
  height: 2px;
  background: #1c234a;
  border-radius: 2px;
}

.cal-day.selected {
  background: #1c234a;
  color: #ffffff;
  font-weight: 600;
}
.cal-day.selected.today::after {
  background: #ffffff;
}
