/* Table Reservation Styles */

/* Main reservation section */
.reservation-section {
    min-height: 100vh;
    padding: 40px 0;
    margin-top: 100px;
}

/* Responsive adjustments for reservation section */
@media (max-width: 991px) {
    .reservation-section {
        min-height: 80vh;
        padding: 30px 0;
        margin-top: 80px;
    }
}

@media (max-width: 767px) {
    .reservation-section {
        min-height: 70vh;
        padding: 25px 0;
        margin-top: 60px;
    }
}

@media (max-width: 575px) {
    .reservation-section {
        min-height: 60vh;
        padding: 20px 0;
        margin-top: 50px;
    }
}

/* Table Grid Layout */

/* Modal Header - Dark theme like original */
#tableDetailsModal .modal-header {
    background-color: #1a1a1a;
    color: white;
    border-bottom: 3px solid #f5c61c;
}

#tableDetailsModal .modal-title {
    font-weight: 600;
    font-size: 18px;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Table Preview Image */
.table-preview-image {
    border: 3px solid #f5c61c;
    border-radius: 8px;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.table-preview-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

/* Table Info */
.table-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #f5c61c;
}

.table-info h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

.table-details {
    text-align: left;
    font-size: 14px;
}

.table-details div {
    padding: 6px 0;
    border-bottom: 1px dashed #dee2e6;
    display: flex;
    align-items: center;
}

.table-details div:last-child {
    border-bottom: none;
}

.table-details i {
    color: #f5c61c;
    width: 20px;
    text-align: center;
}

.table-details strong {
    color: #333;
    min-width: 100px;
    display: inline-block;
}

/* Badge - Keeping original badge styling */
.table-info .badge {
    font-size: 12px;
    padding: 5px 10px;
    font-weight: 600;
}

/* Booking Options */
.booking-options {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.booking-options h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid #f5c61c;
    padding-bottom: 8px;
}

/* Guest Selector */
.booking-options .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.booking-options .d-flex {
    margin-bottom: 6px;
}

#guestCount {
    font-weight: 600;
    color: #333;
    border: 2px solid #f5c61c;
    background-color: rgba(245, 198, 28, 0.05);
}

#guestCount:focus {
    box-shadow: 0 0 0 0.25rem rgba(245, 198, 28, 0.25);
    border-color: #f5c61c;
}

.booking-options .btn-outline-secondary {
    border-color: #dee2e6;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.booking-options .btn-outline-secondary:hover {
    background-color: #f5c61c;
    border-color: #f5c61c;
    color: #000;
}

.booking-options small.text-muted {
    font-size: 11px;
    display: block;
    margin-top: 4px;
}

/* Capacity Info */
.capacity-info .alert {
    font-size: 13px;
    padding: 10px 12px;
    border-radius: 6px;
    background-color: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.2);
    color: #0c5460;
}

.capacity-info .alert i {
    color: #17a2b8;
}

/* Current Selection Summary */
#currentSelectionSummary {
    background-color: rgba(245, 198, 28, 0.05);
    border: 1px solid rgba(245, 198, 28, 0.2);
    border-radius: 6px;
    padding: 12px;
}

#currentSelectionSummary h6 {
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

#currentSelectionSummary h6 i {
    color: #f5c61c;
}

#selectionDetails {
    min-height: 30px;
    font-size: 13px;
}

/* Modal Footer Buttons */
#tableDetailsModal .modal-footer .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    padding: 6px 15px;
    font-weight: 600;
}

#tableDetailsModal .modal-footer .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

#selectTableBtn {
    background-color: #f5c61c;
    border-color: #f5c61c;
    color: #000;
    font-weight: 600;
    padding: 6px 20px;
    transition: all 0.3s ease;
}

#selectTableBtn:hover:not(:disabled) {
    background-color: #e0b524;
    border-color: #e0b524;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(245, 198, 28, 0.3);
}

#selectTableBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Book Selected Tables Button */
.book-btn-enabled {
    background-color: #f5c61c !important;
    border-color: #f5c61c !important;
    color: #000 !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.book-btn-enabled:hover:not(:disabled) {
    background-color: #e0b524 !important;
    border-color: #e0b524 !important;
    color: #000 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(245, 198, 28, 0.3) !important;
}

.book-btn-enabled:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Reservation Modal Book Button */
#bookTableBtn {
    background-color: white !important;
    border-color: #1a1a1a !important;
    color: #1a1a1a !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

#bookTableBtn:hover:not(:disabled) {
    background-color: #1a1a1a !important;
    border-color: #1a1a1a !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(26, 26, 26, 0.3) !important;
}

/* Table Details Modal Select Button */
#selectTableBtn {
    background-color: #f5c61c;
    border-color: #f5c61c;
    color: #000;
    font-weight: 600;
    padding: 6px 20px;
    transition: all 0.3s ease;
}

#selectTableBtn:hover:not(:disabled) {
    background-color: #e0b524;
    border-color: #e0b524;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(245, 198, 28, 0.3);
}

/* Reservation Modal Submit Button */
.reservation-modal-btn {
    background-color: white !important;
    border-color: #1a1a1a !important;
    color: #1a1a1a !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border-width: 2px !important;
}

.reservation-modal-btn:hover:not(:disabled) {
    background-color: #1a1a1a !important;
    border-color: #1a1a1a !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(26, 26, 26, 0.3) !important;
}

/* ===== RESPONSIVE STYLES ===== */

@media (max-width: 768px) {
    /* Medium screens */
    .table-item {
        width: 50px;
        height: 60px;
    }
    
    .table-item img {
        width: 32px;
        height: 32px;
    }
    
    .table-number {
        font-size: 10px;
    }
    
    .table-grid {
        gap: 10px;
    }
    
    #tableDetailsModal .modal-dialog {
        margin: 10px;
    }
    
    .capacity-info .alert {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    /* Small screens */
    .table-item {
        width: 45px;
        height: 55px;
    }
    
    .table-item img {
        width: 28px;
        height: 28px;
    }
    
    .table-number {
        font-size: 9px;
    }
    
    .table-grid {
        gap: 8px;
    }
    
    .selection-summary {
        padding: 12px;
    }
    
    .selection-summary h5 {
        font-size: 14px;
    }
    
    .selected-tables-list li {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .table-legend {
        font-size: 10px;
    }
    
    .legend-item {
        margin-right: 10px;
    }
}

@media (max-width: 375px) {
    /* Extra small screens */
    .table-item {
        width: 40px;
        height: 50px;
    }
    
    .table-item img {
        width: 24px;
        height: 24px;
    }
    
    .table-number {
        font-size: 8px;
    }
    
    .table-grid {
        gap: 6px;
    }
}