/* =============================================
   FULLCALENDAR THEME OVERRIDES — SORT
   ============================================= */

/* FullCalendar toolbar */
.fc .fc-toolbar-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--gray-900);
}

.fc .fc-button {
    background: var(--gray-100) !important;
    border: 1px solid var(--gray-200) !important;
    color: var(--gray-700) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 6px 14px !important;
    text-transform: none !important;
    box-shadow: none !important;
}

.fc .fc-button:hover {
    background: var(--gray-200) !important;
}

.fc .fc-button-active,
.fc .fc-button.fc-button-active {
    background: var(--blue) !important;
    color: white !important;
    border-color: var(--blue) !important;
}

.fc .fc-today-button {
    background: var(--blue-light) !important;
    color: var(--blue) !important;
    border-color: var(--blue) !important;
}

.fc .fc-today-button:disabled {
    opacity: 0.5;
}

/* Calendar grid */
.fc .fc-daygrid-day {
    border: 1px solid var(--gray-100) !important;
}

.fc .fc-daygrid-day.fc-day-today {
    background: var(--blue-light) !important;
}

.fc .fc-daygrid-day-number {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    padding: 8px;
}

/* Events on calendar */
.fc .fc-daygrid-event {
    border-radius: 6px !important;
    padding: 2px 6px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    border: none !important;
    margin: 1px 2px !important;
}

.fc .fc-event-title {
    font-weight: 500;
}

/* Column headers */
.fc .fc-col-header-cell {
    background: var(--gray-50);
    padding: 8px 0 !important;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Selection (drag-to-create) */
.fc .fc-highlight {
    background: rgba(33, 150, 243, 0.15) !important;
    border-radius: 4px;
}

/* Week view time grid */
.fc .fc-timegrid-slot {
    height: 40px !important;
    border-color: var(--gray-100) !important;
}

.fc .fc-timegrid-axis-cushion {
    font-size: 12px;
    color: var(--gray-400);
}

/* List view */
.fc .fc-list-event:hover td {
    background: var(--blue-light) !important;
}

.fc .fc-list-day-cushion {
    background: var(--gray-50) !important;
    font-weight: 600;
}

/* More events link */
.fc .fc-daygrid-more-link {
    color: var(--blue);
    font-weight: 600;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .fc .fc-toolbar {
        flex-direction: column;
        gap: 8px;
    }
    .fc .fc-toolbar-title {
        font-size: 16px !important;
    }
}

/* Calendar legend */
.calendar-legend {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.calendar-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-500);
}

.calendar-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}
