/* Main application styles */
body {
    background-color: #f8f9fa;
}

[data-dashboard-calendar] .fc {
    --fc-border-color: #d7dee7;
    --fc-button-bg-color: #1f4f6b;
    --fc-button-border-color: #1f4f6b;
    --fc-button-hover-bg-color: #163a4f;
    --fc-button-hover-border-color: #163a4f;
    --fc-button-active-bg-color: #163a4f;
    --fc-button-active-border-color: #163a4f;
    --fc-event-bg-color: #cfe6db;
    --fc-event-border-color: #9fc8b4;
    --fc-event-text-color: #1d3b2c;
    --fc-today-bg-color: rgba(31, 79, 107, 0.08);
}

[data-dashboard-calendar] .fc-toolbar-title {
    font-size: 1.2rem;
    font-weight: 600;
}

[data-dashboard-calendar] .fc-daygrid-day-number {
    color: #1f2d3d;
    font-weight: 600;
    text-decoration: none;
}

[data-dashboard-calendar] .fc-col-header-cell-cushion {
    color: #536171;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

/* Fix for CoreUI sidebar overlap */
@media (min-width: 992px) {
    body .wrapper {
        margin-left: 256px; /* Width of the sidebar */
        width: auto;
        transition: margin-left 0.3s;
    }

    /* If sidebar is folded (optional, if you use sidebar toggler) */
    body.sidebar-narrow .wrapper {
        margin-left: 64px;
    }
}

.schedule-dependency-picker [data-schedule-dependency-options] .btn {
    border-radius: 999px;
}

.schedule-dependency-picker [data-schedule-dependency-summary] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.syncfusion-gantt-host {
    min-height: 34rem;
    border: 1px solid #dde3ea;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
}

.syncfusion-gantt-host .e-gantt {
    border: 0;
}

.syncfusion-gantt-host--preview {
    min-height: 26rem;
}

.syncfusion-gantt-host .e-timeline-top-header-cell,
.syncfusion-gantt-host .e-timeline-single-header-cell,
.syncfusion-gantt-host .e-chart-row-cell {
    border-right: 1px solid #d6dde6;
}

.syncfusion-gantt-host .e-timeline-top-header-cell:first-child,
.syncfusion-gantt-host .e-timeline-single-header-cell:first-child,
.syncfusion-gantt-host .e-chart-row-cell:first-child {
    box-shadow: inset 2px 0 0 #8ca3b8;
}

.syncfusion-gantt-host .e-weekend-header-cell,
.syncfusion-gantt-host .e-weekend {
    background: linear-gradient(180deg, #f8ece7 0%, #f5dfd6 100%) !important;
}

.syncfusion-gantt-host .e-holiday,
.syncfusion-gantt-host .e-holiday-container {
    background: linear-gradient(180deg, #fde7cf 0%, #f8d8ae 100%) !important;
}

.syncfusion-gantt-host .e-holiday {
    border-right: 1px solid rgba(176, 109, 28, 0.28) !important;
}

.syncfusion-gantt-host .syncfusion-gantt__timeline-cell {
    border-right: 1px solid #d6dde6;
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.syncfusion-gantt-host .syncfusion-gantt__timeline-cell--week-start {
    box-shadow: inset 2px 0 0 #8ca3b8;
}

.syncfusion-gantt-host .syncfusion-gantt__timeline-cell--weekend {
    background: linear-gradient(180deg, #f8ece7 0%, #f5dfd6 100%);
}

.syncfusion-gantt-host .syncfusion-gantt__timeline-cell--holiday {
    background: linear-gradient(180deg, #fde7cf 0%, #f8d8ae 100%);
    box-shadow: inset 0 0 0 1px rgba(176, 109, 28, 0.16);
}

.syncfusion-gantt-host .syncfusion-gantt__timeline-cell--holiday.syncfusion-gantt__timeline-cell--week-start {
    box-shadow: inset 2px 0 0 #8ca3b8, inset 0 0 0 1px rgba(176, 109, 28, 0.16);
}
