﻿/* Dark overlay for readability on images */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.48);
    z-index: -1;
}

/* Yellow announcement bar */
.announcement {
    background: #ffc107;
    color: #1a1a1a;
    font-weight: 600;
    font-size:medium;
}

/* Card look */
.glass-card {
    /* background: rgba(255,255,255,.94);
            border-radius: 18px;
            box-shadow: 0 14px 40px rgba(0,0,0,.28);
        */
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 14px 40px rgba(0,0,0,.25);
}

/* Slot grid */
.slot-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: .5rem;
}

@media (max-width: 575.98px) {
    .slot-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .slot-grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
}

.slot-card {
    border: 1px solid #dee2e6;
    border-radius: 14px;
    padding: .6rem .6rem;
    background: #fff;
    cursor: pointer;
    user-select: none;
    transition: transform .08s ease, box-shadow .08s ease, border-color .08s ease;
}

    .slot-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(0,0,0,.10);
        border-color: #b6d4fe;
    }

.slot-time {
    font-weight: 700;
    letter-spacing: .2px;
}

.slot-meta {
    font-size: .85rem;
    color: #6c757d;
}

.slot-disabled {
    opacity: .5;
    cursor: not-allowed;
    text-decoration: line-through;
}

.slot-booked {
    border-color: #f1aeb5;
    background: #fff5f5;
}

.slot-selected {
    /*  border-color:#0d6efd !important;
            box-shadow: 0 10px 22px rgba(13,110,253,.22) !important;
            */
    border: 2px solid #0d6efd !important;
    background: #e7f1ff !important;
    transform: scale(1.03);
}

    .slot-selected .slot-time {
        color: #0d6efd;
    }

.chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .25rem .6rem;
    border-radius: 999px;
    background: #e7f1ff;
    color: #0d6efd;
    font-weight: 600;
    font-size: .9rem;
}

.selected-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

    .selected-chip .label {
        color: #555;
    }

.chip-item {
    background: #e7f1ff;
    color: #0d6efd;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 14px;
}

.slot-current-booking {
    border: 2px solid #f59e0b;
    background: #fff7ed;
}

#btnBackToTop {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #198754);
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    line-height: 52px;
    cursor: pointer;
    z-index: 99999;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

    #btnBackToTop.show {
        opacity: 1;
        visibility: visible;
    }

    #btnBackToTop:hover {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 12px 24px rgba(0,0,0,0.32);
    }

@media (max-width: 768px) {
    #btnBackToTop {
        right: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
        line-height: 46px;
        font-size: 20px;
    }
}

.page-header {
    background: rgba(255,255,255,0.92);
    padding: 14px 20px;
    text-align: center; /* KEY */
}

.page-header-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* horizontal center */
}

.page-title {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
}

.page-subtitle {
    display: block;
    font-size: 1.5rem;
    font-weight: 500;
    color: #6c757d;
    margin-top: 4px;
}
