/* =========================================
   Estilos para Página de Agendas
   ========================================= */

/* Cabeçalho da página */
.agendas-page {
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.agendas-page h1 {
  text-align: center;
  color: #1565c0;
  margin-bottom: 2rem;
  font-weight: 700;
  font-size: 2rem;
}

/* Container das agendas - Grid responsivo */
.agendas-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Wrapper de cada agenda */
.agenda-wrapper {
  display: flex;
  flex-direction: column;
}

/* Card da agenda */
.agenda-card {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  height: 100%;
}

.agenda-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

/* Cabeçalho do calendário - tons de azul */
.calendar-header {
  background-color: #1565c0;
  color: #fff;
  padding: 12px;
  text-align: center;
  font-size: 1.1rem;
}

/* Navegação do calendário - azul claro */
.calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background-color: #bbdefb;
  font-weight: 600;
}

.calendar-nav a {
  color: #1565c0;
  text-decoration: none;
  font-size: 1.5rem;
  padding: 0 10px;
  transition: color 0.2s ease;
}

.calendar-nav a:hover {
  color: #0d47a1;
}

.calendar-nav span {
  color: #0d47a1;
  font-size: 0.95rem;
}

/* Tabela do calendário */
.calendar-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.calendar-table th {
  background-color: #f5f5f5;
  color: #333;
  font-weight: 600;
  padding: 8px;
  border: 1px solid #ddd;
  font-size: 0.9rem;
}

.calendar-table td {
  border: 1px solid #ddd;
  padding: 10px;
  vertical-align: middle;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Dias sem agendamento - azul muito claro */
.no-event {
  background-color: #e3f2fd !important;
  color: #333 !important;
}

/* Dias com agendamento - azul suave */
.has-event {
  background-color: #64b5f6 !important;
  color: #fff !important;
  font-weight: 600;
}

.has-event a {
  color: #fff !important;
}

/* Dia atual - borda azul escura */
.current-day {
  box-shadow: inset 0 0 0 3px #1565c0;
}

/* Hover nos dias clicáveis */
.calendar-table td.has-event:hover {
  background-color: #42a5f5 !important;
  transform: scale(1.05);
}

/* Links nos dias */
.calendar-table td a {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Legenda */
.legend-square {
  width: 18px;
  height: 18px;
  display: inline-block;
  margin-right: 6px;
  border: 1px solid #666;
  vertical-align: middle;
}

/* Responsividade para tablets */
@media (max-width: 992px) {
  .agendas-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .agendas-page h1 {
    font-size: 1.75rem;
  }
}

/* Responsividade para mobile */
@media (max-width: 576px) {
  .agendas-page {
    margin-top: 1rem;
    padding: 0 0.5rem;
  }

  .agendas-page h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .agendas-container {
    gap: 1rem;
  }

  .calendar-table td {
    padding: 6px;
    font-size: 0.85rem;
  }

  .calendar-nav {
    font-size: 0.85rem;
  }

  .calendar-header {
    font-size: 1rem;
    padding: 10px;
  }
}

/* Animação de entrada suave */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.agenda-card {
  animation: fadeIn 0.5s ease-out;
}

.agenda-wrapper:nth-child(2) .agenda-card {
  animation-delay: 0.1s;
}
