/**
 * @file seating.css
 * @brief Styles for the hall seat picker and admin hall grid preview.
 */

/* ---- Seat picker ---- */

.seat-picker-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

.seat-grid {
    display: grid;
    grid-template-columns: 28px repeat(var(--grid-cols), 32px);
    gap: 3px;
    min-width: max-content;
}

.seat-row-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ordolio-default-primary, #5d78ff);
}

.seat {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.1s,
        box-shadow 0.1s;
}

.seat:not(:disabled):hover {
    transform: scale(1.15);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.seat:not(:disabled):focus {
    outline: 2px solid var(--ordolio-default-primary, #5d78ff);
    outline-offset: 2px;
}

.seat-available {
    background-color: #28a745;
    color: #fff;
}

.seat-selected {
    background-color: #ffc107;
    color: #212529;
}

.seat-locked {
    background-color: #adb5bd;
    color: #6c757d;
    cursor: not-allowed;
}

.seat-booked {
    background-color: #6c757d;
    color: #fff;
    cursor: not-allowed;
}

.seat-blocked {
    background-color: #343a40;
    color: #888;
    cursor: not-allowed;
}

.seat-aisle {
    width: 32px;
    height: 32px;
}

.seat-picker-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 13px;
    align-items: center;
}

.seat-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.seat-picker-summary {
    font-weight: 600;
    margin-top: 12px;
    font-size: 14px;
}

/* ---- Admin hall grid preview ---- */

.hall-grid-preview-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

.hall-grid-preview {
    display: grid;
    grid-template-columns: repeat(var(--preview-cols), 34px);
    gap: 3px;
    min-width: max-content;
}

.preview-cell {
    width: 34px;
    height: 28px;
    border-radius: 3px;
    border: none;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s;
}

.preview-cell:not(.preview-aisle):hover {
    transform: scale(1.1);
}

.preview-available {
    background-color: #28a745;
    color: #fff;
}

.preview-blocked {
    background-color: #343a40;
    color: #888;
}

.preview-aisle {
    background-color: #e9ecef;
    cursor: default;
}

.preview-legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    vertical-align: middle;
}

.preview-available-dot {
    background-color: #28a745;
}
.preview-blocked-dot {
    background-color: #343a40;
}
.preview-aisle-dot {
    background-color: #e9ecef;
    border: 1px solid #dee2e6;
}

/* ---- Admin hall layout editor (draw aisles visually) ---- */

.hall-layout-editor-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

.hall-layout-editor {
    display: grid;
    grid-template-columns: 28px repeat(var(--editor-cols), 34px);
    gap: 3px;
    min-width: max-content;
}

.hall-editor-row-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ordolio-default-primary, #5d78ff);
}

.hall-editor-cell {
    width: 34px;
    height: 28px;
    border-radius: 3px;
    border: none;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.1s,
        opacity 0.15s;
}

.hall-editor-cell:hover {
    transform: scale(1.1);
    opacity: 0.85;
}

.hall-editor-cell:focus {
    outline: 2px solid var(--ordolio-default-primary, #5d78ff);
    outline-offset: 2px;
}

.hall-editor-seat {
    background-color: #28a745;
    color: #fff;
}

.hall-editor-aisle {
    background-color: #e9ecef;
    color: transparent;
    border: 1px dashed #adb5bd;
}

.hall-editor-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
    font-size: 12px;
    color: #6c757d;
    align-items: center;
}

.hall-editor-legend-dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 4px;
}

.hall-editor-seat-dot {
    background-color: #28a745;
}
.hall-editor-aisle-dot {
    background-color: #e9ecef;
    border: 1px dashed #adb5bd;
}
