﻿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: 200px;
    margin-top: 1rem;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 15px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 220px;
}

    .seat-map::-webkit-scrollbar {
        display: none;
    }

.column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: fit-content;
    margin: 0 auto;
}

#left-column {
    /*   margin-right:305px;
    margin-left: 95px;*/
}

.row {
    display: flex;
    gap: 0.5rem;
}

.seat {
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .seat img {
        width: 1.5rem;
        height: 1.5rem;
    }

    .seat.empty {
        background-color: #ccc;
    }

        .seat.empty img {
            filter: grayscale(100%);
        }

    .seat.selected {
        background-color: green;
    }

    .seat.reserved {
        background-color: red;
        cursor: not-allowed;
    }

    .seat.unavailable {
        background-color: black;
        cursor: not-allowed;
    }

    .seat.temporary {
        background-color: yellow;
    }

.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;
}

    .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;
        gap: 80px;
    }
    /*
    .column {
        width: auto;
        min-width:fit-content;
        margin: 0;
    }*/

    .seat {
        width: 1.5rem;
        height: 1.5rem;
    }

        .seat img {
            width: 1.2rem;
            height: 1.2rem;
        }

    #left-column {
        margin-left: 0;
        margin-right: 20px;
    }
}

.modal {
    z-index: 1055; /* یا مقداری بزرگتر از z-index سایر عناصر */
}

.modal-backdrop {
    z-index: 1050; /* باید کمتر از z-index مودال باشد */
}
