/* FullCalendar dark theme — loaded after FC CSS */

[data-bs-theme=dark] #calendar,
[data-bs-theme=dark] .fc {
	color: var(--bs-body-color);
	background: transparent;
}

/* Today column: soft brand tint instead of beige alert */
[data-bs-theme=dark] .fc td.fc-today,
[data-bs-theme=dark] .fc-bootstrap .fc-today.alert,
[data-bs-theme=dark] .fc-unthemed td.fc-today,
[data-bs-theme=dark] .fc-time-grid .fc-day.fc-today,
[data-bs-theme=dark] .fc-dayGrid-view td.fc-today {
	background-color: rgba(240, 61, 30, 0.12) !important;
	border-color: rgba(240, 61, 30, 0.35) !important;
}

[data-bs-theme=dark] .fc-bootstrap .fc-today.alert {
	/* neutralize BS alert warning fill */
	--bs-alert-bg: rgba(240, 61, 30, 0.12);
	--bs-alert-border-color: rgba(240, 61, 30, 0.35);
	--bs-alert-color: var(--bs-body-color);
	color: var(--bs-body-color) !important;
	background-color: rgba(240, 61, 30, 0.12) !important;
	border-color: rgba(240, 61, 30, 0.35) !important;
}

/* Grid borders */
[data-bs-theme=dark] .fc-theme-standard td,
[data-bs-theme=dark] .fc-theme-standard th,
[data-bs-theme=dark] .fc th,
[data-bs-theme=dark] .fc td,
[data-bs-theme=dark] .fc-scrollgrid,
[data-bs-theme=dark] .fc hr.fc-divider {
	border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Date column headers — kill SA5 light gradient on .fc-head-container thead tr */
[data-bs-theme=dark] .fc-head-container thead tr,
[data-bs-theme=dark] #calendar.fc .fc-head-container thead tr,
[data-bs-theme=dark] #calendar.fc thead,
[data-bs-theme=dark] #calendar.fc .fc-head,
[data-bs-theme=dark] #calendar.fc .fc-head-container,
[data-bs-theme=dark] #calendar.fc .fc-row.fc-widget-header,
[data-bs-theme=dark] #calendar.fc th.fc-widget-header,
[data-bs-theme=dark] #calendar.fc th.fc-day-header,
[data-bs-theme=dark] #calendar.fc th.fc-axis,
[data-bs-theme=dark] #calendar.fc .fc-day-header,
[data-bs-theme=dark] #calendar.fc table > thead > tr,
[data-bs-theme=dark] #calendar.fc table > thead > tr > th,
[data-bs-theme=dark] #calendar.fc .fc-head th,
[data-bs-theme=dark] #calendar.fc .fc-col-header,
[data-bs-theme=dark] #calendar.fc .fc-col-header-cell,
[data-bs-theme=dark] thead[role=presentation] .fc-scrollgrid-sync-inner {
	background: #1e2024 !important;
	background-color: #1e2024 !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #f1f3f5 !important;
	--bs-table-bg: #1e2024;
	--bs-table-color: #f1f3f5;
	--bs-table-accent-bg: transparent;
	--bs-table-bg-state: transparent;
	--bs-table-bg-type: transparent;
}
[data-bs-theme=dark] #calendar.fc th.fc-day-header a,
[data-bs-theme=dark] #calendar.fc th.fc-day-header span,
[data-bs-theme=dark] #calendar.fc .fc-day-header a,
[data-bs-theme=dark] #calendar.fc .fc-day-header span,
[data-bs-theme=dark] #calendar.fc th.fc-axis,
[data-bs-theme=dark] #calendar.fc th.fc-axis span,
[data-bs-theme=dark] #calendar.fc .fc-week-number,
[data-bs-theme=dark] #calendar.fc .fc-week-number a,
[data-bs-theme=dark] #calendar.fc .fc-col-header-cell a,
[data-bs-theme=dark] #calendar.fc .fc-col-header-cell-cushion {
	color: #f1f3f5 !important;
	opacity: 1 !important;
}
[data-bs-theme=dark] #calendar.fc .fc-time-grid .fc-slats .fc-time span {
	color: #adb5bd !important;
}

/* Slats / business hours */
[data-bs-theme=dark] .fc-time-grid .fc-slats td {
	background: transparent !important;
}
[data-bs-theme=dark] .fc-nonbusiness {
	background: rgba(255, 255, 255, 0.03) !important;
}
[data-bs-theme=dark] .fc-now-indicator-line {
	border-color: #F03D1E !important;
}
[data-bs-theme=dark] .fc-now-indicator-arrow {
	border-top-color: #F03D1E !important;
	border-bottom-color: #F03D1E !important;
}

/* Toolbar buttons */
[data-bs-theme=dark] .fc-button-primary,
[data-bs-theme=dark] .fc .btn-primary,
[data-bs-theme=dark] .fc-toolbar .btn {
	background-color: var(--bs-secondary-bg) !important;
	border-color: var(--bs-border-color) !important;
	color: var(--bs-body-color) !important;
}
[data-bs-theme=dark] .fc-button-primary:not(:disabled).fc-button-active,
[data-bs-theme=dark] .fc-button-primary:not(:disabled):active,
[data-bs-theme=dark] .fc-toolbar .btn.active,
[data-bs-theme=dark] .fc-toolbar .btn-primary:not(:disabled).active {
	background-color: #F03D1E !important;
	border-color: #F03D1E !important;
	color: #fff !important;
}
[data-bs-theme=dark] .fc-toolbar h2 {
	color: var(--bs-body-color) !important;
	font-size: 1.15rem;
}

/* Events: readable text + soft border */
[data-bs-theme=dark] .fc-event,
[data-bs-theme=dark] .fc-event .fc-title,
[data-bs-theme=dark] .fc-event .fc-time,
[data-bs-theme=dark] .fc-bootstrap a.fc-event:not([href]):not([tabindex]) {
	color: inherit;
}
[data-bs-theme=dark] .fc-event {
	border-width: 1px !important;
	border-radius: 4px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
[data-bs-theme=dark] .fc-event .fc-content {
	padding: 1px 3px;
	font-weight: 600;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

/* List / agenda view */
[data-bs-theme=dark] .fc-list-view,
[data-bs-theme=dark] .fc-list-table,
[data-bs-theme=dark] .fc-list-heading td,
[data-bs-theme=dark] .fc-list-item:hover td {
	background-color: var(--bs-body-bg) !important;
	border-color: var(--bs-border-color) !important;
	color: var(--bs-body-color) !important;
}
[data-bs-theme=dark] .fc-list-empty {
	background: transparent !important;
	color: var(--bs-secondary-color);
}

.calendar-hint {
	display: block;
	margin-top: .75rem;
	color: var(--bs-secondary-color);
	font-size: .85rem;
}
