/* =========================================================
   CARRY CALENDAR — REUSABLE THEME
   Designed for FullCalendar 6 + Bootstrap 5
========================================================= */

.carry-calendar-page {
    --cc-navy: #071d2d;
    --cc-teal: #08765e;
    --cc-green: #11966f;
    --cc-blue: #1f6feb;
    --cc-amber: #d99013;
    --cc-red: #c9364f;
    --cc-violet: #7757d6;
    --cc-border: #dce6ec;
    --cc-muted: #6f8190;
    --cc-soft: #f5f8fa;
    font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

    .carry-calendar-page .bo-calendar-shell {
        position: relative;
        padding: 1rem;
        border: 1px solid var(--cc-border);
        border-radius: 24px;
        background: linear-gradient(180deg, #f9fbfc 0%, #f4f8fa 100%);
        box-shadow: 0 18px 42px rgba(7, 29, 45, .08);
    }

        .carry-calendar-page .bo-calendar-shell .fc {
            position: relative;
            z-index: 1;
            padding: .95rem;
            border: 1px solid rgba(7, 29, 45, .08);
            border-radius: 22px;
            color: #142c3b;
            background: #fff;
            box-shadow: 0 18px 42px rgba(7, 29, 45, .08);
            font-size: .88rem;
        }

    .carry-calendar-page .fc .fc-toolbar {
        margin-bottom: 1rem;
        padding-bottom: .95rem;
        border-bottom: 1px solid #edf2f5;
    }

    .carry-calendar-page .fc .fc-toolbar-title {
        color: #0a2433;
        font-size: 1.25rem;
        font-weight: 800;
        letter-spacing: -.035em;
    }

    .carry-calendar-page .fc .fc-button-primary {
        border: 0;
        border-radius: 10px;
        color: #fff;
        background: var(--cc-teal);
        box-shadow: none;
        font-size: .78rem;
        font-weight: 800;
        text-transform: capitalize;
    }

        .carry-calendar-page .fc .fc-button-primary:hover,
        .carry-calendar-page .fc .fc-button-primary:focus {
            background: #075f4d;
        }

        .carry-calendar-page .fc .fc-button-primary:not(:disabled).fc-button-active {
            background: var(--cc-navy);
        }

    .carry-calendar-page .fc .fc-button-group {
        gap: 2px;
    }

        .carry-calendar-page .fc .fc-button-group > .fc-button {
            border-radius: 10px;
        }

    .carry-calendar-page .fc-theme-standard td,
    .carry-calendar-page .fc-theme-standard th {
        border-color: #e2eaee;
    }

    .carry-calendar-page .fc-theme-standard .fc-scrollgrid {
        overflow: hidden;
        border: 1px solid var(--cc-border);
        border-radius: 16px;
    }

    .carry-calendar-page .fc-col-header-cell {
        background: #f5f8fa;
    }

    .carry-calendar-page .fc-col-header-cell-cushion {
        padding: .8rem .45rem;
        color: #405563;
        font-size: .72rem;
        font-weight: 900;
        letter-spacing: .065em;
        text-decoration: none;
        text-transform: uppercase;
    }

    .carry-calendar-page .fc-daygrid-day {
        min-height: 120px;
        background: #fff;
        transition: background-color 160ms ease, box-shadow 160ms ease;
    }

        .carry-calendar-page .fc-daygrid-day:hover {
            background: #fbfdfd;
            box-shadow: inset 0 0 0 1px rgba(8, 118, 94, .1);
        }

    .carry-calendar-page .fc-daygrid-day-number {
        min-width: 28px;
        height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: .35rem;
        border-radius: 999px;
        color: #294351;
        font-size: .75rem;
        font-weight: 800;
        line-height: 1;
        text-decoration: none;
    }

    .carry-calendar-page .fc .fc-day-today {
        --fc-today-bg-color: transparent;
        background: linear-gradient(145deg, #fff8dc 0%, #fffdf4 100%) !important;
        box-shadow: inset 0 0 0 1px rgba(214, 157, 0, .17);
    }

    .carry-calendar-page .fc-day-today .fc-daygrid-day-number {
        color: #5f4300;
        background: linear-gradient(135deg, #ffd75a, #eab21d);
        box-shadow: 0 5px 13px rgba(205, 145, 0, .24);
    }

    .carry-calendar-page .fc-day-other {
        background: #fafcfd;
    }

        .carry-calendar-page .fc-day-other .fc-daygrid-day-number {
            color: #b0bec6;
        }

    .carry-calendar-page .fc-daygrid-event {
        margin: 3px 5px;
        padding: 0;
        overflow: hidden;
        border: 1px solid rgba(7, 47, 68, .06);
        border-radius: 10px;
        color: #0755d6;
        background: linear-gradient(135deg, #f8fbff, #eef5ff);
        box-shadow: 0 4px 10px rgba(22, 65, 90, .09);
        cursor: pointer;
        transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
    }

        .carry-calendar-page .fc-daygrid-event:hover {
            border-color: rgba(16, 103, 215, .18);
            box-shadow: 0 7px 17px rgba(22, 65, 90, .14);
            transform: translateY(-1px);
        }

    .carry-calendar-page .fc-event-main {
        color: inherit;
    }

    .carry-calendar-page .carry-calendar-event {
        display: flex;
        align-items: baseline;
        gap: .28rem;
        min-width: 0;
        padding: .42rem .5rem;
    }

    .carry-calendar-page .carry-calendar-event-time {
        flex: 0 0 auto;
        color: #4582c8;
        font-size: .66rem;
        font-weight: 700;
    }

    .carry-calendar-page .carry-calendar-event-title {
        overflow: hidden;
        color: #0755d6;
        font-size: .74rem;
        font-weight: 800;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .carry-calendar-page .fc-day-today .fc-daygrid-event {
        border-color: rgba(184, 128, 0, .12);
        background: linear-gradient(135deg, rgba(255,255,255,.97), rgba(255,249,220,.98));
        box-shadow: 0 5px 13px rgba(136, 98, 0, .1);
    }

    .carry-calendar-page .fc-day-today .carry-calendar-event-title {
        color: #725100;
    }

    .carry-calendar-page .fc-day-today .carry-calendar-event-time {
        color: #a06f00;
    }

    .carry-calendar-page .fc-daygrid-more-link {
        display: inline-flex;
        margin: 3px 5px;
        padding: .25rem .48rem;
        border-radius: 8px;
        color: var(--cc-teal);
        background: #e9f7f2;
        font-size: .68rem;
        font-weight: 850;
        text-decoration: none;
    }

/* Modal */
.carry-calendar-modal {
    font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

    .carry-calendar-modal .modal-dialog {
        max-width: 540px;
    }

    .carry-calendar-modal .modal-content {
        overflow: hidden;
        border: 0;
        border-radius: 22px;
        background: #fff;
        box-shadow: 0 30px 80px rgba(3, 24, 36, .28);
    }

    .carry-calendar-modal .modal-header {
        padding: 1.15rem 1.3rem;
        border-bottom: 1px solid #e8eef2;
        background: linear-gradient(135deg, #fff, #f7fafb);
    }

    .carry-calendar-modal .modal-title {
        display: flex;
        align-items: center;
        gap: .55rem;
        margin: 0;
        color: #0a2433;
        font-size: 1rem;
        font-weight: 800;
        letter-spacing: -.02em;
    }

        .carry-calendar-modal .modal-title i {
            width: 34px;
            height: 34px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 10px;
            color: #08765e;
            background: #e7f6f1;
        }

    .carry-calendar-modal .modal-body {
        padding: 1.15rem 1.3rem;
        color: #304957;
        background: #fbfcfd;
    }

    .carry-calendar-modal .modal-footer {
        padding: .9rem 1.3rem;
        border-top: 1px solid #e8eef2;
        background: #fff;
    }

.carry-calendar-summary {
    position: relative;
    margin: 0;
    padding: 1rem 1rem 1rem 1.05rem;
    overflow: hidden;
    border: 1px solid rgba(8, 118, 94, .18);
    border-radius: 16px;
    color: #183b49;
    background: linear-gradient(145deg, #edf9f6, #f7fcfb);
    box-shadow: 0 8px 22px rgba(7, 62, 73, .07);
}

    .carry-calendar-summary::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 4px;
        background: linear-gradient(180deg, #0a8065, #13a67d);
    }

.carry-calendar-summary-title {
    display: block;
    margin-bottom: .85rem;
    color: #075c58;
    font-size: .9rem;
    font-weight: 850;
    line-height: 1.35;
}

.carry-calendar-summary-grid {
    display: grid;
    gap: .5rem;
}

.carry-calendar-summary-row {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: .7rem;
    align-items: baseline;
}

.carry-calendar-summary-label {
    color: #71848e;
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.carry-calendar-summary-value {
    color: #183b49;
    font-size: .79rem;
    font-weight: 700;
    line-height: 1.4;
}

.modal-backdrop.show {
    opacity: .58;
    background-color: #061923;
}

@media (max-width: 767.98px) {
    .carry-calendar-page .bo-calendar-shell {
        padding: .5rem;
    }

        .carry-calendar-page .bo-calendar-shell .fc {
            padding: .55rem;
            border-radius: 16px;
        }

    .carry-calendar-page .fc .fc-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: .65rem;
    }

    .carry-calendar-page .fc .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
    }

    .carry-calendar-summary-row {
        grid-template-columns: 1fr;
        gap: .1rem;
    }
}

/* =========================================================
   CARRY CALENDAR — WEEK, DAY & LIST VIEW UPGRADE
========================================================= */

/* Shared time-grid shell */
.carry-calendar-page .fc-timegrid {
    border-radius: 16px;
    background: #fff;
}

.carry-calendar-page .fc-timegrid-axis {
    width: 54px;
    background: #f8fafb;
}

.carry-calendar-page .fc-timegrid-axis-cushion,
.carry-calendar-page .fc-timegrid-slot-label-cushion {
    color: #6d7f8b;
    font-size: .68rem;
    font-weight: 750;
}

.carry-calendar-page .fc-timegrid-slot {
    height: 2.15rem;
    border-color: #edf2f5;
}

.carry-calendar-page .fc-timegrid-slot-minor {
    border-top-style: dashed;
    border-color: #f1f4f6;
}

.carry-calendar-page .fc-timegrid-col {
    background: #fff;
}

    .carry-calendar-page .fc-timegrid-col.fc-day-today {
        background: linear-gradient(180deg, #fff9df 0%, #fffdf6 100%) !important;
    }

.carry-calendar-page .fc-timegrid-col-frame {
    min-width: 0;
}

.carry-calendar-page .fc-timegrid-event-harness {
    margin-left: 3px;
    margin-right: 3px;
}

.carry-calendar-page .fc-timegrid-event {
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #1f78d1, #2f8fe0);
    box-shadow: 0 7px 18px rgba(23, 104, 177, .2);
}

    .carry-calendar-page .fc-timegrid-event:hover {
        box-shadow: 0 10px 24px rgba(23, 104, 177, .28);
        transform: translateY(-1px);
    }

    .carry-calendar-page .fc-timegrid-event .fc-event-main {
        padding: .48rem .55rem;
    }

    .carry-calendar-page .fc-timegrid-event .fc-event-time {
        margin-bottom: .18rem;
        color: rgba(255,255,255,.82);
        font-size: .66rem;
        font-weight: 800;
    }

    .carry-calendar-page .fc-timegrid-event .fc-event-title {
        color: #fff;
        font-size: .72rem;
        font-weight: 850;
        line-height: 1.25;
    }

.carry-calendar-page .fc-timegrid-now-indicator-line {
    border-color: #e24559;
    border-width: 2px 0 0;
}

.carry-calendar-page .fc-timegrid-now-indicator-arrow {
    border-color: #e24559;
    border-top-color: transparent;
    border-bottom-color: transparent;
}

/* Week/day headers */
.carry-calendar-page .fc-timegrid .fc-col-header-cell {
    background: #f6f9fa;
}

.carry-calendar-page .fc-timegrid .fc-col-header-cell-cushion {
    padding: .72rem .4rem;
    color: #415766;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .055em;
    text-decoration: none;
    text-transform: uppercase;
}

.carry-calendar-page .fc-timegrid .fc-day-today .fc-col-header-cell-cushion {
    color: #725100;
}

/* Day view gets a cleaner focused canvas */
.carry-calendar-page .fc-timeGridDay-view .fc-timegrid-axis,
.carry-calendar-page .fc-timeGridDay-view .fc-timegrid-slot-label {
    background: #f8fafb;
}

.carry-calendar-page .fc-timeGridDay-view .fc-timegrid-col {
    background: linear-gradient(180deg, #fffdf5 0%, #fff 100%);
}

.carry-calendar-page .fc-timeGridDay-view .fc-timegrid-event {
    border-left: 4px solid #0d6f4b;
    background: linear-gradient(135deg, #1677c8, #3d94dc);
}

    .carry-calendar-page .fc-timeGridDay-view .fc-timegrid-event .fc-event-main {
        padding: .62rem .72rem;
    }

    .carry-calendar-page .fc-timeGridDay-view .fc-timegrid-event .fc-event-title {
        font-size: .8rem;
        white-space: normal;
    }

/* List view */
.carry-calendar-page .fc-list {
    overflow: hidden;
    border: 1px solid var(--cc-border);
    border-radius: 16px;
    background: #fff;
}

.carry-calendar-page .fc-list-table {
    border-collapse: separate;
    border-spacing: 0;
}

.carry-calendar-page .fc-list-day-cushion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .78rem 1rem;
    color: #0a2433;
    background: linear-gradient(180deg, #f4f8fa, #eef3f5);
    font-weight: 850;
}

.carry-calendar-page .fc-list-day-text,
.carry-calendar-page .fc-list-day-side-text {
    color: #0a2433;
    font-size: .77rem;
    font-weight: 900;
    text-decoration: none;
}

.carry-calendar-page .fc-list-event td {
    padding: .8rem 1rem;
    border-color: #edf2f5;
    background: #fff;
}

.carry-calendar-page .fc-list-event:nth-child(even) td {
    background: #fbfcfd;
}

.carry-calendar-page .fc-list-event:hover td {
    background: #f2faf7;
}

.carry-calendar-page .fc-list-event-time {
    width: 108px;
    color: #4f6472;
    font-size: .75rem;
    font-weight: 800;
    white-space: nowrap;
}

.carry-calendar-page .fc-list-event-graphic {
    width: 34px;
}

.carry-calendar-page .fc-list-event-dot {
    border-width: 5px;
    border-color: #1f78d1;
}

.carry-calendar-page .fc-list-event-title a {
    color: #0f3150;
    font-size: .78rem;
    font-weight: 850;
    text-decoration: none;
}

    .carry-calendar-page .fc-list-event-title a:hover {
        color: #08765e;
    }

/* Empty list state */
.carry-calendar-page .fc-list-empty {
    padding: 3rem 1.25rem;
    color: #6f8190;
    background: #fbfcfd;
    font-size: .82rem;
    font-weight: 700;
}

/* Better toolbar spacing in alternate views */
.carry-calendar-page .fc-direction-ltr .fc-toolbar > * > :not(:first-child) {
    margin-left: .35rem;
}

@media (max-width: 767.98px) {
    .carry-calendar-page .fc-list-event td {
        padding: .72rem .65rem;
    }

    .carry-calendar-page .fc-list-event-time {
        width: 84px;
        font-size: .68rem;
    }

    .carry-calendar-page .fc-list-event-title a {
        font-size: .74rem;
    }

    .carry-calendar-page .fc-timegrid-slot {
        height: 2.4rem;
    }
}

/* =========================================================
   CARRY CALENDAR — MONTH-MATCHED WEEK & DAY VIEWS
   Makes time-grid events visually match month cards
========================================================= */

.carry-calendar-page .fc-timegrid {
    border-radius: 16px;
    background: #fff;
}

.carry-calendar-page .fc-timegrid-axis,
.carry-calendar-page .fc-timegrid-slot-label {
    background: #f8fafb;
}

.carry-calendar-page .fc-timegrid-axis-cushion,
.carry-calendar-page .fc-timegrid-slot-label-cushion {
    color: #6d7f8b;
    font-size: .68rem;
    font-weight: 750;
}

.carry-calendar-page .fc-timegrid-slot {
    height: 2.15rem;
    border-color: #edf2f5;
}

.carry-calendar-page .fc-timegrid-slot-minor {
    border-top-style: dashed;
    border-color: #f3f5f7;
}

.carry-calendar-page .fc-timegrid-col {
    background: #fff;
}

    .carry-calendar-page .fc-timegrid-col.fc-day-today {
        background: linear-gradient( 145deg, #fff8dc 0%, #fffdf4 100% ) !important;
        box-shadow: inset 0 0 0 1px rgba(214, 157, 0, .17);
    }

.carry-calendar-page .fc-timegrid .fc-col-header-cell {
    background: #f5f8fa;
}

.carry-calendar-page .fc-timegrid .fc-col-header-cell-cushion {
    padding: .8rem .45rem;
    color: #405563;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .065em;
    text-decoration: none;
    text-transform: uppercase;
}

.carry-calendar-page .fc-timegrid .fc-day-today .fc-col-header-cell-cushion {
    color: #725100;
}

/* Event cards now mirror the month view */
.carry-calendar-page .fc-timegrid-event {
    overflow: hidden;
    border: 1px solid rgba(7, 47, 68, .06) !important;
    border-radius: 10px !important;
    color: #0755d6 !important;
    background: linear-gradient( 135deg, #f8fbff, #eef5ff ) !important;
    box-shadow: 0 4px 10px rgba(22, 65, 90, .09) !important;
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

    .carry-calendar-page .fc-timegrid-event:hover {
        border-color: rgba(16, 103, 215, .18) !important;
        box-shadow: 0 7px 17px rgba(22, 65, 90, .14) !important;
        transform: translateY(-1px);
    }

    .carry-calendar-page .fc-timegrid-event .fc-event-main {
        padding: .42rem .5rem !important;
        color: inherit !important;
    }

    .carry-calendar-page .fc-timegrid-event .fc-event-time,
    .carry-calendar-page .fc-timegrid-event .carry-calendar-event-time {
        color: #4582c8 !important;
        font-size: .66rem;
        font-weight: 700;
        opacity: 1;
    }

    .carry-calendar-page .fc-timegrid-event .fc-event-title,
    .carry-calendar-page .fc-timegrid-event .carry-calendar-event-title {
        color: #0755d6 !important;
        font-size: .74rem;
        font-weight: 800;
        line-height: 1.25;
    }

/* Today events use the same amber month treatment */
.carry-calendar-page .fc-timegrid-col.fc-day-today .fc-timegrid-event {
    border-color: rgba(184, 128, 0, .12) !important;
    background: linear-gradient( 135deg, rgba(255, 255, 255, .97), rgba(255, 249, 220, .98) ) !important;
    box-shadow: 0 5px 13px rgba(136, 98, 0, .1) !important;
}

.carry-calendar-page .fc-timegrid-col.fc-day-today .fc-event-time,
.carry-calendar-page .fc-timegrid-col.fc-day-today .carry-calendar-event-time {
    color: #a06f00 !important;
}

.carry-calendar-page .fc-timegrid-col.fc-day-today .fc-event-title,
.carry-calendar-page .fc-timegrid-col.fc-day-today .carry-calendar-event-title {
    color: #725100 !important;
}

/* Prevent very long events becoming a giant solid slab */
.carry-calendar-page .fc-timegrid-event-harness {
    margin-left: 4px;
    margin-right: 4px;
}

.carry-calendar-page .fc-timegrid-event-harness-inset .fc-timegrid-event {
    box-shadow: 0 4px 10px rgba(22, 65, 90, .09) !important;
}

/* Day view follows the same card language as month */
.carry-calendar-page .fc-timeGridDay-view .fc-timegrid-col {
    background: #fff;
}

    .carry-calendar-page .fc-timeGridDay-view .fc-timegrid-col.fc-day-today {
        background: linear-gradient( 145deg, #fff8dc 0%, #fffdf4 100% ) !important;
    }

.carry-calendar-page .fc-timeGridDay-view .fc-timegrid-event {
    border-left: 1px solid rgba(7, 47, 68, .06) !important;
    background: linear-gradient( 135deg, #f8fbff, #eef5ff ) !important;
}

    .carry-calendar-page .fc-timeGridDay-view .fc-timegrid-event .fc-event-main {
        padding: .48rem .55rem !important;
    }

    .carry-calendar-page .fc-timeGridDay-view .fc-timegrid-event .fc-event-title {
        white-space: normal;
    }

/* Keep the current-time marker visible but restrained */
.carry-calendar-page .fc-timegrid-now-indicator-line {
    border-color: #e24559;
    border-width: 2px 0 0;
}

.carry-calendar-page .fc-timegrid-now-indicator-arrow {
    border-color: #e24559;
    border-top-color: transparent;
    border-bottom-color: transparent;
}
