/* Seat Selection Component Styles (used in Staff and CreateBooking pages) */

/* Legend container */
.seatselection-legend {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Legend item */
.seatselection-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Legend color box */
.seatselection-legend-color {
    width: 24px;
    height: 24px;
    border: 1px solid #333;
}

.seatselection-legend-color-available {
    background-color: #4CAF50;
}

.seatselection-legend-color-selected {
    background-color: var(--theme-accent-red) !important;
}

.seatselection-legend-color-booked {
    background-color: #ccc;
}

.seatselection-legend-color-unavailable {
    background-color: #ff9800;
}

/* Screen indicator (legacy / simple) */
.seatselection-screen-container {
    text-align: center;
    margin-bottom: 20px;
}

.seatselection-screen {
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, #333 0%, #333 50%, transparent 50%, transparent 100%);
    margin: 0 auto;
}

/* Cinema screen on user seat picker — matches admin layout orientation */
.select-seats-screen-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto 1.25rem;
    width: 100%;
    box-sizing: border-box;
}

.select-seats-venue-screen {
    width: min(92%, 720px);
    max-width: 100%;
    height: 48px;
    margin: 0 auto;
    box-sizing: border-box;
    border-radius: 50% / 14px 14px 4px 4px;
    background: linear-gradient(180deg, #5c5c5c 0%, #2a2a2a 42%, #121212 100%);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    user-select: none;
    -webkit-user-select: none;
}

.select-seats-screen-caption {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    opacity: 0.75;
    text-align: center;
    max-width: min(92%, 720px);
    padding: 0 0.75rem;
    box-sizing: border-box;
}

/* Line under orientation hint — same width as screen bar */
.select-seats-screen-wrap .select-seats-screen-divider {
    width: min(92%, 720px);
    max-width: 100%;
    align-self: center;
    margin-top: 0.65rem !important;
    margin-bottom: 0.15rem !important;
    opacity: 0.55;
}

/* Seat row */
.seatselection-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

/* Row label */
.seatselection-row-label {
    min-width: 30px;
    font-weight: bold;
}

/* Seat container */
.seatselection-seat-container {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

/* Seat button */
.seatselection-seat {
    min-width: 40px;
    height: 40px;
    color: white;
}

/* Seat status colors - using theme variables with fallbacks */
.seatselection-seat-available {
    background-color: var(--seat-available, var(--flat-accent-blue, #4CAF50)) !important;
    color: white !important;
}

.seatselection-seat-selected {
    background-color: var(--theme-accent-red, var(--flat-accent-red, #f44336)) !important;
    color: white !important;
}

.seatselection-seat-booked {
    background-color: var(--seat-booked, #757575) !important;
    color: white !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.seatselection-seat-unavailable {
    background-color: var(--seat-unavailable, #ff9800) !important;
    color: white !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

/* Total amount */
.seatselection-total {
    color: var(--theme-accent-red) !important;
}

/* Sticky summary */
.seatselection-summary-sticky {
    position: sticky;
    top: 20px;
}

