/* Basic FullCalendar Styles */

.fc {
  direction: ltr;
  text-align: left;
}

.fc .fc-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.fc .fc-toolbar-title {
  font-size: 1.5rem;
  font-weight: bold;
}

.fc .fc-button {
  background-color: #007bff;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

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

.fc .fc-button-primary {
  background-color: #007bff;
}

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

.fc .fc-daygrid-day-number {
  padding: 4px;
  font-weight: bold;
}

.fc .fc-daygrid-event {
  background-color: #3788d8;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 0.85rem;
  margin-top: 2px;
  display: block;
}

.fc .fc-daygrid-day {
  border: 1px solid #ddd;
}

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

.fc .fc-event {
  cursor: pointer;
}

.fc .fc-daygrid-day-events {
  margin-top: 2px;
}

.fc .fc-scrollgrid {
  border: 1px solid #ddd;
}

.fc-theme-standard td,
.fc-theme-standard th {
  border: 1px solid #ddd;
}

.fc-header-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}

.fc-toolbar-title {
    font-size: 1.2em;
    white-space: nowrap;
}

.fc .fc-toolbar h2 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

@media (max-width: 768px) {
    .fc-header-toolbar {
        flex-direction: column;
        align-items: center;
    }

    .fc-toolbar-chunk {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        margin-bottom: 5px;
    }

    .fc-toolbar-title {
        font-size: 1.1rem;
        margin: 5px 0;
    }

    .fc .fc-button {
        font-size: 0.85rem;
        padding: 5px 8px;
    }
}
