/* CSS for Create Reservation with Table Layout */

.reservation-step {
    display: none;
    /* Remove overflow hidden to prevent dropdown clipping */
}

.reservation-step.active {
    display: block;
}

.progress-container {
    position: relative;
    width: 100%;
}

.progress-bar-container {
    position: absolute;
    top: 19px;
    left: 70px;
    right: 70px;
    height: 1px;
    background-color: #181A20;
    border-radius: 2px;
    z-index: 1;
}

.progress-bar {
    height: 100%;
    background-color: var(--mb-colour);
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 150px;
}



.step-number {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f5f6;
    margin-bottom: 6px;
}

.step-label {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.progress-step.active .step-number {
    background-color: #ffffff;
    border: 1px solid var(--mb-colour);
    color: var(--mb-colour);
}

.progress-step.active .step-label {
    font-weight: bold;
}

.progress-step.completed .step-number {
    background-color: var(--mb-colour);
    color: white;
    border-color: var(--mb-colour);
}

.progress-step.completed .step-label {
    color: var(--mb-colour);
    font-weight: 600;
}

/* Previous Selections Summary Styles */
.previous-selections-summary {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #dee2e6;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #212529;
}

.summary-item i {
    color: var(--mb-colour);
}

/* Tablet and small screens */
@media (max-width: 991px) {
   
}

/* Mobile devices */
@media (max-width: 768px) {
    .previous-selections-summary {
        margin-bottom: 15px;
    }
    
    .progress-steps {
        flex-wrap: nowrap;
        gap: 2px;
        padding: 0;
    }
    
    .progress-step {
        flex: 1;
        min-width: 0;
        max-width: none;
        padding: 0 2px;
    }
}

/* Very small mobile devices */
@media (max-width: 480px) {

    .progress-bar-container {
        top: 15px;
        left: 40px;
        right: 40px;
    }

    .step-number {
        width: 30px;
        height: 30px;
    }

    .step-label {
        font-size: 10px;
        line-height: 1.1;
    }

}


/* Table Layout Container - Responsive Design WITHOUT GRID LINES */
.table-layout-container {
    border-radius: 12px;
    overflow: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    border: 1px dashed #e9ecef;
/*    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/
}

/* SVG Container Responsive Design */
#tableLayoutSvg {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#tableLayoutSvg svg {
    width: 100%;
    height: auto;
    max-width: 100%;
}



/* Table SVG Styles - Updated for appealing colors with transparency */
.table-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.table-item.available {
    fill: #fff;
    stroke: #DDDDDD;
    stroke-width: 1;
}

.table-item.occupied {
    fill: #FFF5F8;
    stroke: #F1416C;
    stroke-width: 1;
    cursor: not-allowed;
}

.table-item.selected {
    fill: var(--mb-colour) !important;
    stroke: var(--mb-colour) !important;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.table-item:hover:not(.occupied):not(.selected) {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    stroke: var(--mb-colour) !important;
    stroke-width: 1;
}

/* Enhanced font styling for better readability */
.table-label {
    fill: #333;
}

/* Change icon and text color to white when table is selected */
svg g:has(.table-item.selected) .table-label {
    fill: #FFF !important;
}

svg g:has(.table-item.selected) path {
    fill: #FFF !important;
}

/* Layout Element Styles (Objects and Dividers) */
.layout-element {
    pointer-events: none;
}

.layout-element.object {
    opacity: 0.8;
}

.layout-element.divider {
    opacity: 0.9;
}

.element-label {
    pointer-events: none;
    user-select: none;
}

.rooms-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.room-card-container {
    width: calc(50% - 6px);
    display: flex;
}

.room-card {
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid #DDDDDD;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-clip: border-box;
}

    .room-card:hover {
        border-color: var(--mb-colour);
        transform: scale(1.02);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    /* Fully Booked Room Card Styles */
    .room-card-fully-booked {
        cursor: not-allowed;
    }

        .room-card-fully-booked:hover {
            transform: none;
            border-color: #F1416C;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        }


    /* Responsive margin-top utilities for reservation layout */
    @media (max-width: 600px) {
        .room-card-container {
            flex: 1 1 100%;
        }
    }




    /* ===== Time Slots Styles ===== */
    .time-slots-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* Accordion Item */
    .time-slot-accordion-item {
        border-radius: 8px;
        overflow: hidden;
        background: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    /* Accordion Header */
    .time-slot-accordion-header {
        padding: 12px 16px;
        background: #f3f5f6;
        cursor: pointer;
        text-align: center;
        gap: 8px;
        font-weight: 600;
        color: #333;
        transition: background 0.2s ease;
        user-select: none;
    }

        .time-slot-accordion-header:hover {
            background: var(--mb-colour);
            color: white;
        }

        .time-slot-accordion-header[data-expanded="true"] {
            background: var(--mb-colour);
            color: white;
        }


    /* Accordion Content */
    .time-slot-accordion-content {
        display: none;
        flex-wrap: wrap;
        gap: 10px;
        padding: 16px;
        background: white;
    }

        .time-slot-accordion-content[style*="display: flex"] {
            display: flex !important;
        }

    /* Time Slot Button */
    .time-slot-btn {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        border: 1px solid #DDDDDD;
        background: white;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #333;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

        .time-slot-btn:hover {
            border-color: var(--mb-colour);
            transform: scale(1.05);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        }

        .time-slot-btn.selected {
            background: var(--mb-colour);
            color: white;
            border-color: var(--mb-colour);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .time-slot-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            background: #e9ecef;
        }

    /* Mobile responsive adjustments for time slots */
    @media (max-width: 768px) {
        .time-slot-btn {
            width: 60px;
            height: 60px;
            font-size: 13px;
        }

        .time-slot-accordion-content {
            gap: 8px;
            padding: 12px;
        }

        .time-slot-accordion-header {
            padding: 10px 12px;
            font-size: 14px;
        }

        .period-icon {
            font-size: 18px;
        }
    }

    @media (max-width: 480px) {
        .time-slot-btn {
            width: 50px;
            height: 50px;
            font-size: 12px;
        }

        .time-slot-accordion-content {
            gap: 4px;
            padding: 10px;
        }

        .time-slot-accordion-header {
            padding: 8px 10px;
            font-size: 13px;
        }

        .period-icon {
            font-size: 16px;
        }
    }

    /* Time slots accordion styles - END */

    /* Guest count selection grid */
    .guests-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 10px;
        justify-content: flex-start;
    }

    .guest-count-btn {
        width: 60px;
        height: 60px;
        border-radius: 50%; /* Make it circular like time slots */
        border: 1px solid #DDDDDD;
        background: white;
        cursor: pointer;
        font-size: 16px;
        font-weight: 500;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #333;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

        .guest-count-btn:hover {
            border-color: var(--mb-colour);
            transform: scale(1.05);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        }

        .guest-count-btn.selected {
            background: var(--mb-colour);
            color: white;
            border-color: var(--mb-colour);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .guest-count-btn:active {
            transform: translateY(0);
        }

    /* Mobile responsive - same as time slots */
    @media (max-width: 768px) {
        .guest-count-btn {
            width: 60px;
            height: 60px;
            font-size: 16px;
        }

        .guests-grid {
            gap: 8px;
        }
    }

    @media (max-width: 480px) {

        .guests-grid {
            justify-content: center;
        }

        .guest-count-btn {
            width: 50px;
            height: 50px;
            font-size: 14px;
        }

        .guests-grid {
            gap: 4px;
        }
    }

    /* ===== Custom Calendar Picker Styles ===== */
    .calendar-container {
        background: white;
        border: 1px solid #DDDDDD;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .calendar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding: 0 10px;
    }

        .calendar-header h3 {
            margin: 0;
            font-size: 18px;
            font-weight: 600;
            color: #333;
        }

    .calendar-nav-btn {
        background: white;
        border: 1px solid #DDDDDD;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 18px;
        color: #333;
    }

        .calendar-nav-btn:hover {
            background: var(--mb-colour);
            border-color: var(--mb-colour);
            color: white;
            transform: scale(1.1);
        }

    .calendar-weekdays {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 8px;
        margin-bottom: 10px;
    }

    .calendar-weekday {
        text-align: center;
        font-size: 12px;
        font-weight: 600;
        color: #666;
        padding: 8px 0;
    }

    .calendar-days {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 8px;
    }

    .calendar-day {
        aspect-ratio: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.3s ease;
        background: white;
        color: #333;
    }

        .calendar-day:hover:not(.disabled):not(.selected) {
            background: #f8f9fa;
            border-color: var(--mb-colour);
            transform: scale(1.05);
        }

        .calendar-day.selected {
            background: var(--mb-colour);
            border-color: var(--mb-colour);
            color: white;
            font-weight: 600;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .calendar-day.today {
            border-color: var(--mb-colour);
            border-width: 2px;
            font-weight: 600;
        }

        .calendar-day.disabled {
            background: #f8f9fa;
            color: #ccc;
            cursor: not-allowed;
            opacity: 0.5;
        }

        .calendar-day.other-month {
            color: #ccc;
            cursor: default;
        }

            .calendar-day.other-month:hover {
                background: white;
                border-color: #e9ecef;
                transform: none;
            }

    /* Mobile responsive */
    @media (max-width: 576px) {
        .calendar-container {
            padding: 15px;
        }

        .calendar-header h3 {
            font-size: 16px;
        }

        .calendar-nav-btn {
            width: 32px;
            height: 32px;
            font-size: 16px;
        }

        .calendar-weekday {
            font-size: 11px;
            padding: 6px 0;
        }

        .calendar-day {
            font-size: 13px;
        }

        .calendar-days {
            gap: 6px;
        }
    }
