/* Seat Selection CSS for Quick Checkout */

.seat-selection-section {
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.seats-grid {
    margin-top: 1rem;
}

.table-seats-group {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

.table-seats-group h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
}

.seats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
    justify-content: flex-start;
}

.seat-element {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seat-btn {
    width: 22px;
    height: 20px;
    padding: 0.25rem;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    background: white;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.seat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: #6c757d;
}

.seat-btn.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-color: #007bff;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.seat-btn.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.seat-btn.btn-outline-primary {
    border-color: #6c757d;
    color: #6c757d;
}

.seat-btn.btn-outline-primary:hover {
    background: #6c757d;
    color: white;
}

/* Disabled seat styles */
.seat-btn.seat-disabled {
    opacity: 0.85;
    cursor: not-allowed;
    position: relative;
    transform: none !important;
    box-shadow: none !important;
    border-width: 2px;
}

.seat-btn.seat-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
    cursor: not-allowed;
}

.seat-btn.seat-disabled:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Status text styling */
.seat-status {
    font-size: 0.55rem;
    line-height: 1;
    margin-top: 0.15rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Specific status colors */
.seat-btn.btn-secondary.seat-disabled {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}

.seat-btn.btn-warning.seat-disabled {
    background: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.seat-btn.btn-danger.seat-disabled {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Seat legend styling */
.seat-legend {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
}

.seat-legend h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.seat-legend-item {
    pointer-events: none;
    cursor: default;
}

.seat-legend-item:hover {
    transform: none !important;
    box-shadow: none !important;
}

.seat-number {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1;
}

.seat-info {
    font-size: 0.75rem;
    line-height: 1.2;
}

.seat-info .text-primary {
    font-weight: 600;
}

.selected-seats-summary {
    margin-top: 1.5rem;
}

.selected-seats-summary .alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.selected-seats-list {
    max-height: 200px;
    overflow-y: auto;
}

.selected-seats-list .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .seat-btn {
        width: 21px;
        height: 21px;
        font-size: 0.8rem;
    }
    
    .seat-number {
        font-size: 0.85rem;
    }
    
    .seat-status {
        font-size: 0.5rem;
    }
    
    .seat-info {
        font-size: 0.7rem;
    }
    
    .table-seats-group {
        padding: 0.75rem;
    }
}

@media (max-width: 576px) {
    .seat-btn {
        width: 19px;
        height: 21px;
        font-size: 0.75rem;
    }
    
    .seat-number {
        font-size: 0.8rem;
    }
    
    .seat-status {
        font-size: 0.45rem;
    }
    
    .seat-info {
        font-size: 0.65rem;
    }
    
    .seats-container {
        gap: 0.25rem;
    }
}

/* Animation for seat selection */
.seat-btn {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects for better UX */
.seat-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.seat-btn:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

/* Disabled state for unavailable seats */
.seat-btn:disabled {
    opacity: 0.85;
    cursor: not-allowed;
    background: inherit;
    border-color: inherit;
    color: inherit;
}

.seat-btn:disabled:hover {
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

/* Loading state */
.seat-btn.loading {
    position: relative;
    color: transparent;
}

.seat-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid #007bff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

