/* Container principal */
#reservas-calendar {
  margin: 1rem 0;
  font-family: Arial, sans-serif;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.5rem;
  max-width: 400px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Cabeçalho do calendário */
.res-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .5rem;
  font-weight: bold;
}

.res-cal-header button {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
}

.res-cal-header button:hover {
  background: #0056b3;
}

/* Grid de dias */
.res-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.res-cal-head {
  text-align: center;
  font-weight: bold;
  background: #f8f9fa;
  padding: 0.25rem;
  border-radius: 4px;
}

.res-cal-cell {
  text-align: center;
  padding: 0.4rem 0;
  border-radius: 4px;
  cursor: default;
  transition: background 0.2s;
}

.res-cal-cell:hover {
  background: #e9ecef;
}

/* Dias fora do mês */
.res-cal-out {
  color: #bbb;
  background: #f5f5f5;
}

/* Dias ocupados */
.res-cal-busy {
  background: #f8d7da;
  color: #721c24;
  font-weight: bold;
}

/* Responsividade */
@media (max-width: 480px) {
  #reservas-calendar {
    max-width: 100%;
    font-size: 0.85rem;
  }
}
/* Estilo para dias ocupados */
/* Dia ocupado/desativado (disable) a vermelho */
/* Cartão/área do calendário */
.reservas-card {
  border: 1px solid #eee;
  padding: 12px;
  border-radius: 6px;
  margin-top: 10px;
}

/* Dá destaque ao calendário */
.reservas-calendar {
  margin: 10px 0;
  max-width: 360px;
}

/* Mostrar apenas dias do próprio mês (esconde “cauda/cabeça” do mês anterior/seguinte) */
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  visibility: hidden;
}

/* —————— CORES CORRETAS —————— */
/* 1) Dias desativados em geral (ex.: passado por minDate) — cinza, NÃO vermelho */
.flatpickr-day.disabled {
  color: #B9BCC3 !important;
  cursor: not-allowed !important;
  background: transparent !important;
  border-color: transparent !important;
}

/* 2) Dias ocupados (do payload) — VERMELHO */
.flatpickr-day.reservas-busy-day {
  background: #ffd6d6 !important;
  color: #b30000 !important;
  border-color: #b30000 !important;
}

/* Se além de ocupado também estiver disabled (o que é normal) mantém vermelho */
.flatpickr-day.reservas-busy-day.disabled {
  background: #ffb3b3 !important;
  color: #7a0000 !important;
  border-color: #7a0000 !important;
}

/* Hover mais visível para ocupado */
.flatpickr-day.reservas-busy-day:hover {
  background: #ffa8a8 !important;
}

/* Range selecionado (mantém estilo do tema) mas um pouco mais visível */
.flatpickr-day.inRange,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  box-shadow: none;
}

/* Botões setas do mês — ligeiro destaque */
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  opacity: 0.9;
}
