/* Styling for the range selection highlight */
.fc-highlight {
    background: rgba(13, 110, 253, 0.25) !important;
}

/* Diagonal "Booked" Style */
.fc-event-booked {
    background: linear-gradient(45deg, #f8d7da 50%, #ffffff 50%);
    border: none;
    cursor: not-allowed !important;
}

.fc .fc-toolbar-title {
    font-size: 1.2em !important;
    text-transform: capitalize;
}

/* Force FullCalendar to fill the card body */
.card-body.calendar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Adjustments for the new Dual-Month view */
.fc-multimonth-daygrid {
    background: #fff;
}
.fc-multimonth-title {
    font-weight: bold;
    color: #0d6efd;
    padding: 10px 0;
}

/* Custom Selection Range Color */
.fc-day-selected {
    background-color: rgba(13, 110, 253, 0.2) !important;
}
.fc-day-start-end {
    background-color: #0d6efd !important;
    color: white !important;
}

/* Force the text color inside selected FullCalendar cells to be Red */
.fc-day-start-end .fc-daygrid-day-number,
.fc-day-selected .fc-daygrid-day-number {
    color: #ff0000 !important;
    font-weight: bold;
}

/* Layout Alignment */
.match-height {
    display: flex;
    flex-wrap: wrap;
}

.calendar-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 0;
}

.calendar-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 10px;
}

#calendar-main {
    flex: 1;
    min-height: 450px;
}

/* Legend at the very bottom */
.calendar-legend {
    border-top: 1px solid #dee2e6;
    padding-top: 10px;
    margin-top: auto;
}

/* --- NEW: PACKAGE TOGGLE STYLES --- */
.plan-card {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.plan-card:hover {
    border-color: #0d6efd;
    background-color: #f8f9fa;
}
.plan-card.active {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}
.plan-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f1f3f5;
}

/* --- NEW: SUMMARY TABLE STYLES --- */
.summary-table th {
    background-color: #f8f9fa !important;
    font-size: 0.9em;
    color: #6c757d;
}
.summary-table td {
    vertical-align: middle;
    font-size: 0.95em;
}
.summary-table .fw-bold {
    color: #212529;
}