/* Stile generale del calendario */
.fc {
  font-family: Arial, sans-serif;
  font-size: 14px;
}

/* Toolbar (intestazione del calendario) */
.fc .fc-toolbar {
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
  padding: 10px;
}

.fc .fc-toolbar-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.fc .fc-button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 5px 10px;
  margin: 0 5px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.fc .fc-button:hover {
  background-color: #0056b3;
}

.fc .fc-button:disabled {
  background-color: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
}

/* Giorni e griglia del calendario */
.fc .fc-daygrid-day {
  background-color: #fff;
  border: 1px solid #e9ecef;
  height: 100px;
  vertical-align: top;
}

.fc .fc-daygrid-day-number {
  font-size: 12px;
  color: #6c757d;
  padding: 5px;
}

.fc .fc-day-today {
  background-color: #eaf4ff;
}

.fc .fc-day-sun {
  background-color: #fff4f4;
}

/* Eventi */

/* Miglioriamo la visualizzazione degli eventi */
.fc-event {
  background-color: #28a745 !important;
  border: none;
  color: white !important;
  padding: 5px;
  border-radius: 5px;
  text-align: center;
}

/* Cambiamo il colore dei giorni selezionabili */
.fc-day-today {
  background-color: #eaf4ff !important;
}

.fc .fc-event {
  background-color: #28a745;
  color: white;
  border: 1px solid #28a745;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
}

.fc .fc-event:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

/* Tooltip per gli eventi */
.fc-event:hover::after {
  content: attr(title);
  position: absolute;
  background: #333;
  color: white;
  padding: 5px;
  border-radius: 3px;
  font-size: 12px;
  white-space: nowrap;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  pointer-events: none;
}

/* Pulsante oggi */
.fc .fc-today-button {
  background-color: #17a2b8;
  color: white;
}

.fc .fc-today-button:hover {
  background-color: #138496;
}

/* Stile per i giorni disabilitati */
.fc .fc-day-disabled {
  background-color: #f8f9fa;
  color: #6c757d;
}

#calendar {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease-out, transform 0.3s ease-out;
}

#calendar.loaded {
  opacity: 1;
  transform: scale(1);
}