﻿html, body {
    overflow-x: hidden;
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    font-family: 'farhang', sans-serif;
    direction: rtl;
    background-image: url('/img/blcbox.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    /*color: whitesmoke;*/
}

.container {
    position: relative;
    overflow: visible;
    margin-top: 50px;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 1.5);
}

@font-face {
    font-family: 'farhang';
    src: url('farhang.ttf') format('truetype');
}

.stage {
    width: 100%;
    height: 50px;
    background-color: black;
    border-radius: 0 0 15px 15px;
    background: linear-gradient(to bottom, black, rgba(0, 0, 0, 0));
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.seat-map {
    display: flex;
    justify-content: flex-start;
    gap: clamp(80px, 12vw, 200px);
    margin-top: 1rem;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 15px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 clamp(40px, 10vw, 220px);
}

    .seat-map::-webkit-scrollbar {
        display: none;
    }

.column {
    display: flex;
    flex-direction: column;
    gap: clamp(0.4rem, 1.2vw, 0.7rem);
    min-width: fit-content;
    margin: 0 auto;
}

#left-column {
    /*   margin-right:305px;
    margin-left: 95px;*/
}

.row {
    display: flex;
    gap: clamp(0.35rem, 1vw, 0.6rem);
}

.seat {
    width: clamp(1.9rem, 2.2vw, 2.4rem);
    height: clamp(1.9rem, 2.2vw, 2.4rem);
    border: 1px solid rgba(64, 50, 34, 0.35);
    border-radius: 0.65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f6f0e6 0%, #e2d7c8 100%);
    box-shadow: inset 0 -2px 0 rgba(88, 66, 43, 0.35), 0 6px 14px rgba(27, 20, 12, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

    .seat img {
        width: clamp(1.15rem, 1.4vw, 1.55rem);
        height: clamp(1.15rem, 1.4vw, 1.55rem);
        filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
    }

    .seat.empty {
        background: linear-gradient(180deg, #f6f0e6 0%, #ded2c2 100%);
        border-color: rgba(87, 66, 42, 0.35);
    }

        .seat.empty img {
            filter: grayscale(100%) brightness(0.95);
        }

    .seat.selected {
        background: linear-gradient(180deg, #2f8b57 0%, #1e6a3f 100%);
        border-color: rgba(11, 82, 38, 0.7);
        box-shadow: inset 0 -2px 0 rgba(10, 56, 31, 0.5), 0 8px 16px rgba(15, 74, 40, 0.35);
    }

    .seat.reserved {
        background: linear-gradient(180deg, #c4574e 0%, #943b34 100%);
        border-color: rgba(124, 38, 32, 0.7);
        cursor: not-allowed;
    }

    .seat.unavailable {
        background: linear-gradient(180deg, #3b3b3b 0%, #1f1f1f 100%);
        border-color: rgba(20, 20, 20, 0.8);
        cursor: not-allowed;
    }

    .seat.temporary {
        background: linear-gradient(180deg, #f3cf6a 0%, #d2a93d 100%);
        border-color: rgba(148, 111, 36, 0.6);
    }

    .seat:hover:not(.reserved):not(.unavailable):not(.temporary) {
        transform: translateY(-1px);
        box-shadow: inset 0 -2px 0 rgba(88, 66, 43, 0.4), 0 10px 18px rgba(27, 20, 12, 0.25);
    }

    .seat:focus-visible {
        outline: 2px solid rgba(140, 90, 40, 0.65);
        outline-offset: 2px;
    }

.selected-seats-box {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.selected-seat-item {
    background-color: #747070;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
}

.legend {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-icon {
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f6f0e6 0%, #ded2c2 100%);
    box-shadow: inset 0 -1px 0 rgba(88, 66, 43, 0.35), 0 3px 8px rgba(27, 20, 12, 0.2);
}

    .legend-icon img {
        width: 15px;
        height: 15px;
    }

.legend div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.time-select-container {
    width: fit-content;
    justify-content: center;
}

#time-select {
}
/* Mobile responsiveness */
@media (max-width: 768px) {

    .seat-map {
        padding: 0 20px;
        gap: clamp(40px, 18vw, 80px);
    }
    /*
    .column {
        width: auto;
        min-width:fit-content;
        margin: 0;
    }*/

    .seat {
        width: clamp(1.5rem, 7vw, 1.9rem);
        height: clamp(1.5rem, 7vw, 1.9rem);
    }

        .seat img {
            width: clamp(1rem, 4.6vw, 1.2rem);
            height: clamp(1rem, 4.6vw, 1.2rem);
        }

    #left-column {
        margin-left: 0;
        margin-right: 20px;
    }
}

.modal {
    z-index: 1055; /* یا مقداری بزرگتر از z-index سایر عناصر */
}

.modal-backdrop {
    z-index: 1050; /* باید کمتر از z-index مودال باشد */
}
