/*
 * APP RESERVATION - Custom Styles
 * Bootstrap 5 overrides and custom styling
 */

/* Custom variables */
:root {
    --app-primary: #0d6efd;
    --app-secondary: #6c757d;
    --app-success: #198754;
    --app-danger: #dc3545;
}

/* Base body styling */
body {
    min-height: 100vh;
    background-color: #f8f9fa;
}

/* Week number styling in FullCalendar 6.x */
.fc .fc-daygrid-week-number {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

/* ===== Custom Calendar Header ===== */
.calendar-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.calendar-header-title {
    flex: 1;
    min-width: 0;
}

.calendar-header-nav {
    flex: 0 0 auto;
}

.calendar-header-views {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* Arrow buttons in nav group */
.calendar-header-nav .btn-group .btn:first-child,
.calendar-header-nav .btn-group .btn:last-child {
    font-size: 1.25rem;
    line-height: 1;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Active state for view switcher */
.calendar-header-views .btn.active {
    background-color: var(--app-primary);
    color: #fff;
    border-color: var(--app-primary);
}

/* Mobile: stack header elements */
@media (max-width: 767.98px) {
    .calendar-header-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    .calendar-header-title {
        flex: 0 0 100%;
        text-align: center;
    }
    .calendar-header-views {
        flex: 0 0 auto;
        justify-content: center;
    }
    .calendar-header-nav .btn,
    .calendar-header-views .btn {
        font-size: 0.8rem;
        padding: 0.375rem 0.625rem;
    }
    .calendar-header-nav .btn-group .btn:first-child,
    .calendar-header-nav .btn-group .btn:last-child {
        font-size: 1.1rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Admin filter collapse: ensure proper stacking above FullCalendar */
@media (max-width: 991.98px) {
    #adminFilterCollapse {
        position: relative;
        z-index: 10;
    }
}

/* Utility classes */
.cursor-pointer {
    cursor: pointer;
}
