
.sia-calendar-wrapper {
    margin: 1em 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sia-calendar-title {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* FullCalendar container */
.sia-fc-calendar .fc {
    background: #f8fcfd;
    border-radius: 8px;
    padding: 0.5rem;
    border: 1px solid var(--e-global-color-lcolor4);
}

/* Legend */
.sia-legend {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sia-legend-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.sia-legend-box {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}

.sia-legend-available {
    background: var(--e-global-color-lcolor4);
    border: 1px solid black;
}

.sia-legend-booked {
    background: var(--e-global-color-lprimary2);
    border: 1px solid black;
}

/* Today legend removed from PHP output; hide any leftover selector */
.sia-legend-today {
    display: none;
}

/* Error box */
.sia-error {
    color: #721c24;
    background: #f8d7da;
    padding: 0.75rem;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

/* Base day background: light "available" color */
.sia-fc-calendar .fc-daygrid-day {
    background-color: var(--e-global-color-lcolor4);
}

/* Booked background events – target the BG layer specifically */
.sia-fc-calendar .fc-bg-event.sia-booked-event {
    background-color: var(--e-global-color-lprimary2) !important;
    /* single, controlled opacity so text stays readable */
    opacity: 0.45 !important;
}


/* Force all day numbers to be dark, crisp, and above the background events */
.sia-fc-calendar .fc-daygrid-day-number {
    position: relative;
    z-index: 2; /* sits above .fc-bg-event layer */
    color: #000 !important;
    font-weight: 600 !important;
    opacity: 1 !important;
}


/* Today highlight */
/* Today should not override the background; just behave like any other day */
.sia-fc-calendar .fc-day-today {
    background-color: inherit !important;
    box-shadow: none !important;
    border-color: inherit !important;
}

/* Kill any extra inner highlight FullCalendar might add */
.sia-fc-calendar .fc-day-today .fc-daygrid-day-frame {
    background-color: transparent !important;
}

.fc-theme-standard td, .fc-theme-standard th {
    border: none;
}

.fc-daygrid-day-frame.fc-scrollgrid-sync-inner {
    padding-right: 3px; 
}