@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}


h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMu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) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.table-container {
    display: flex;
    gap: 2vh;
    gap: 2vh 3.5vh; /* row-gap column gap */
    row-gap: 3vh;
    column-gap: 3.5vh;
}

.booth-table {
    background-color: #757575;
    height: 3vh;
    width: 7vh;
    transform: rotate(-90deg);
    position: absolute;
    box-sizing: border-box;
    margin-bottom: 1vh;
}

.table {
    background-color: #757575;
    height: 3vh; /*Further reduced height */
    width: 7vw; /* Further reduced width */
    position: absolute;
    box-sizing: border-box;
}

@media screen and (max-width: 1280px) {
    .table {
        width: 6vw;
    }

    .booth-table {
        width: 6vh;
    }
}

    .downstairs-seat-map-grid, .upstairs-seat-map-grid {
        display: grid;
        grid-template-columns: repeat(24, 1fr); /* Adjust column count as needed */
        grid-template-rows: repeat(24, 1fr); /* Adjust row count as needed */
        gap: 10px;
        position: relative;
        flex: 1; /* Allow each section to take equal space */
        height: 100%;
        background-color: black;
        padding: 20px;
        box-sizing: border-box; /* Ensure padding doesn't contribute to element size */
        overflow: hidden; /* Avoid overflow for each grid */
        border-left: 1px solid white;
    }

    .downstairs-seat-map-grid {
        gap: 3vw;
    }

    .upstairs-seat-map-grid {
        gap: 2vw;
    }
    /* Booth Seat Styling */
    .booth-seat {
        background-color: #1de103;
        height: 3.75vh;
        width: 3.75vh;
        margin: -8px;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .seat {
        width: 3.75vh;
        height: 3.75vh;
        margin: -8px;
        background-color: #1DE104;
        border-radius: 50%;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    /* Seat Map Container - Base for Larger Screens */
    .seat-map {
        position: relative;
        width: 100%;
        height: 1500px; /* Further adjusted height to fit smaller elements */
        background-color: black;
        padding: 20px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .landscape-view {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
    }

    .rotated-view {
        transform: rotate(-90deg) scale(0.75); /* Rotates view to landscape and scales down for readability */
        transform-origin: center;
        width: 100vh; /* Adjusted to accommodate rotated content */
        height: 100vw; /* Adjusted to accommodate rotated content */
        position: relative;
        overflow: hidden;
        background-color: black;
    }

    .booth-table-label {
        transform: rotate(90deg);
        text-align: center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform-origin: center;
        transform: translate(-50%, -50%) rotate(90deg);
    }

    .table-label {
        text-align: center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    /* Reservations sidebar styles */
    .reservations-sidebar {
        width: 500px; /* Define the width of the sidebar */
        background-color: black; /* Set the background to black */
        color: white;
        padding: 0 10px;
        height: 100%; /* Ensure sidebar takes up full height */
        overflow-y: auto; /* Scroll when there are too many reservations */
        display: flex;
        flex-direction: column;
        align-items: center;
        border-left: 1px solid white;
    }

    .reservations-sidebar {
        overflow-y: auto;
        max-height: 100vh;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

        .reservations-sidebar h2 {
            text-align: center;
            margin-bottom: 20px;
        }

    .reservation-list {
        display: flex;
        flex-direction: column;
    }

    .reservation-item {
        background-color: #007bff; /* Blue background */
        color: black;
        margin-bottom: 10px;
        padding: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 5px;
    }

    .reservation-details {
        text-align: left;
    }

    .rotate-45 {
        transform: rotate(45deg);
    }

    .reservation-time {
        position: absolute;
        top: 50%;
        right: 50%;
        /* Adjust the text position and rotation */
        font-size: 12px;
        color: white;
    }
    /* Time Display in Half Circle */
    .future-reservation-time {
        position: absolute;
        top: 15px;
        right: -5px;
        color: white;
        font-size: 9px;
        transform: rotate(-45deg);
        text-align: center;
        white-space: nowrap;
        z-index: 2; /* Ensures the text appears on top of the blue half-circle */
        width: 100%;
    }

    .dining-time-with-future-reservation {
        position: absolute;
        bottom: 12px;
        left: 3px;
        color: white;
        font-size: 9px;
        transform: rotate(45deg);
        text-align: center;
        white-space: nowrap;
        z-index: 2; /* Ensures the text appears on top of the blue half-circle */
        width: 100%;
    }

    .dining-time-with-future-reservation-regular-seat {
        position: absolute;
        bottom: 16px;
        color: white;
        font-size: 9px;
        transform: rotate(-45deg);
        text-align: left;
        white-space: nowrap;
        z-index: 2; /* Ensures the text appears on top of the blue half-circle */
        width: 100%;
        font-size: 9px;
    }

    .dining-time {
        position: absolute;
        font-size: 10px;
        color: white;
        top: 8px;
        z-index: 3;
    }

    .hybrid-seat-dining-time {
        position: absolute;
        font-size: 10px;
        color: white;
        top: 8px;
        z-index: 3;
    }

    .booth-dining-time {
        position: absolute;
        font-size: 10px;
        color: white;
        top: 8px;
        z-index: 3;
        transform: rotate(90deg);
        text-align: center;
    }

    .seat:hover {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
        cursor: pointer;
    }

    .upstairs-divider {
        position: absolute;
        top: 0;
        left: calc(30% - 1px);
        width: 2px;
        height: 100%;
        background-color: white;
        z-index: 1;
    }

    .section-label {
        /*position: absolute;*/
        color: white;
        text-align: center;
        font-weight: bold;
        font-size: 1.5em;
        grid-column: 1 / -1;
        display: flex;
        justify-content: center;
        align-content: center;
        padding-bottom: 3vh;
    }

        .section-label h3 {
            margin: 0;
        }

    .reservations-sidebar-container {
        flex-shrink: 0;
        display: flex;
        flex-direction: row;
        width: 600px;
        max-width: 600px; /* Prevents overflow */
        background-color: black;
        color: white;
        overflow-y: auto;
        box-sizing: border-box;
    }

    .reservations-sidebar-container {
        flex-direction: column;
        width: @(string.IsNullOrEmpty(viewType) ? "260px" : "0");
        padding: @(string.IsNullOrEmpty(viewType) ? "8px" : "0");
        overflow-y: auto;
        transition: all 0.3s ease;
    }


    .future-reservation-indicator {
        position: absolute;
        bottom: 0;
        right: 0;
        background-color: blue; /* The reservation indicator color */
        color: white;
        width: 100%;
        height: 100%;
        clip-path: polygon(100% 0, 100% 100%, 0 100%);
        transform: rotate(90deg);
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 10px;
        text-align: center;
    }

        .future-reservation-indicator .reservation-time {
            transform: rotate(-45deg); /* Adjust the text rotation to match the desired layout */
        }

    .circle {
        display: inline-block;
        position: relative;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        overflow: hidden;
        transform: rotate(45deg);
    }

        .circle:after,
        .circle:before {
            content: '';
            position: absolute;
            height: 100%;
            width: 50%;
        }

        .circle:after {
            background: none;
            left: 0;
        }

        .circle:before {
            background: blue;
            right: 0;
        }


    .circle-text {
        position: absolute;
        width: 50%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        font-size: 10px;
        transform: rotate(-90deg);
        z-index: 1;
    }

    .red-text {
        left: 0px;
        z-index: 3;
    }

    .reservation-text {
        right: 0;
        z-index: 1;
        transform: rotate(-90deg);
    }

    @keyframes flashAnimation {
        from {
            filter: brightness(100%);
        }

        to {
            filter: brightness(150%);
        }
    }

    .flash-seat {
        animation: flashAnimation 1s infinite alternate;
    }
    /* site.css, app.css, or a .razor.css file */
    /* Make the button float above all content, fixed at the bottom center. */
    .pay-button-container {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 9999; /* keep on top of other elements */
    }

    .wizard-container {
        background-color: rgba(0, 0, 0, 0.5);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .wizard-step {
        background: white;
        padding: 20px;
        border-radius: 8px;
        min-width: 300px;
    }

    @keyframes flashOpacity {
        0% {
            opacity: 1;
        }

        50% {
            opacity: 0.4; /* Slightly transparent for the flashing effect */
        }

        100% {
            opacity: 1;
        }
    }

    .flashing {
        animation: flashOpacity 1s infinite;
    }

    .orders-container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .order-card {
        padding: 1rem;
        background-color: #f8f9fa;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        cursor: pointer;
    }

        .order-card.completed {
            background-color: #d4edda;
            text-decoration: line-through;
        }

    .undo-btn {
        margin-top: 10px;
        padding: 0.25rem 0.5rem;
        border: none;
        background-color: #f8d7da;
        border-radius: 4px;
        cursor: pointer;
    }

    .underline-text {
        text-decoration: underline;
    }
