.local-background-2 {
    /*background-image: url("./images/white-background.png");  vaka bese*/
    /*background-size: cover;*/
    /*background-position: center;*/
    /*background-repeat: no-repeat;*/

    /*background-color: #fff5e3; opcija 2 */

    /*background-image: url("https://images.unsplash.com/photo-1525947088131-b701cd0f6dc3?fm=jpg&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8ZGFyayUyMHdvb2QlMjB0ZXh0dXJlfGVufDB8fDB8fHww&ixlib=rb-4.1.0&q=60&w=3000");*/
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-color: #0D1B2A;

    min-height: 100vh;
    overflow-x: hidden;

}

.original-navigation-reservation {
    display: flex;
    align-items: center;
    padding: 10px 0px;
    justify-content: space-around;
}

.logo-left {
    margin-left: 50px;
}

.header-reserve {
    display: flex;
    justify-content: center;
    color: white;
    margin: 50px 0px;
}

.h1-reserve {
    margin: 0px;
}

.divpart2 {
    padding: 25px 70px;
    color: #FDEBD0;
}

.reserve-question {
    color: white;
    display: flex;
    justify-content: center;
}

/*.reserve-question {*/
/*    margin: 30px 0px;*/
/*    text-align: center;*/
/*}*/
/*.submit-button {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    align-items: center;*/
/*    background-color: #D82B2B;*/
/*    padding: 10px 30px;*/
/*    border-radius: 110px;*/
/*    font-size: x-large;*/
/*    color: white;*/
/*    font-family: "Rubik Dirt", system-ui;*/
/*}*/
/*.input-num {*/
/*    font-size: x-large;*/
/*    width: 40px;*/
/*    border-radius: 40px;*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    padding: 0px 20px;*/
/*    border: 1px solid black;*/
/*}*/
/*.overlay {*/
/*    position: fixed;*/
/*    top: 0;*/
/*    left: 0;*/
/*    width: 100vw;*/
/*    height: 100vh;*/
/*    background-color: rgba(0, 0, 0, 0.5); !* 50% затемнување *!*/
/*    z-index: 10;*/
/*}*/
/*.reservation-form-box {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    align-items: center;*/
/*    margin-top: 200px;*/
/*}*/
/*.onDiv {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    align-items: center;*/
/*    background-color: #F5F1EB;*/
/*    padding: 50px;*/
/*    width: 700px;*/
/*    border-radius: 110px;*/
/*    font-size: x-large;*/
/*}*/
/*.form-table {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    flex-direction: column;*/
/*}*/


.dropdown-button {
    padding: 10px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid black;
    background-color: #f0f0f0;
    cursor: pointer;
    text-align: center;
}

.reserve-question-2 {
    display: flex;
    justify-content: center;
    color: #D82B2B;
    margin: 0px 0px;
    font-weight: normal;
}


.reservation-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 10px 0px;
}

.date-picker {
    background-color: white;
    cursor: pointer;
    border: 2px solid #d82b2b;
    border-radius: 25px;
    padding: 8px 12px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    width: 135px;
}

.dropdown-button {
    cursor: pointer;
    background-color: white;
    border: 2px solid #d82b2b;
    border-radius: 25px;
    padding: 8px 12px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    width: 135px;
}

.separ {
    display: flex;
}


.reservation-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 70px;
    margin-bottom: 70px;
}

.right-side {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.layoutBtn{
    background-color: #FF7F50;
    color: white;
    padding: 10px 30px;
    border-radius: 999px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    font-family: "Rubik Dirt", system-ui;
    animation: slideInRight 0.3s ease-out forwards;
}

/*.right-table{*/
/*    position: absolute;*/
/*    top: 360px;*/
/*    left: 530px;*/
/*}*/

.time-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-group label {
    font-weight: bold;
    margin-bottom: 5px;
}

.time-field {
    border: 2px solid #d82b2b;
    border-radius: 25px;
    padding: 8px 12px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    width: 90px;
}


.comment-box {
    height: 60px;
    border: 2px solid #d82b2b;
    border-radius: 15px;
    padding: 10px;
    resize: none;
    font-family: inherit;
    color: #333;
    margin-top: 20px;
}

.comment-box::placeholder {
    color: #888;
    font-style: italic;
}

.submit-button-time {
    background-color: #d82b2b;
    color: white;
    padding: 10px 30px;
    border-radius: 999px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    font-family: "Rubik Dirt", system-ui;
}

.tables-map {
    position: relative;
    width: 850px;
    height: 600px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border-radius: 35px;
    text-align: center;
    padding: 20px 60px;
    background-color: white;
    animation: slideInLeft 0.3s ease-out forwards;
    animation-delay: 0.05s;
    opacity: 0;
}

.table-group {
    position: absolute;
    width: 100px;
    height: 100px;
}

/* Base table */
.table {
    position: absolute;
    background-color: #FF7F50;
    z-index: 2;
}

.table-group.default .table {
    background-color: #FF7F50;
}

.table-group.default .table.oval-inner {
    background-color: white;
}

.oval-table {
    width: 272px;
    height: 140px;
    top: 50px;
    left: 40px;
}

.rect-table-1 {
    top: 20px;
    left: 375px;
    width: 135px;
}

.rect-table-2 {
    top: 20px;
    left: 575px;
    width: 135px;
}

.rect-table-3 {
    top: 20px;
    left: 775px;
    width: 135px;
}

.vert-table {
    top: 160px;
    left: 750px;
    height: 175px;
    width: 80px;
    transform: rotate(-40deg);
}

.left-table {
    position: absolute;
    left: 35px;
    top: 180px;
}

.table.round {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    top: 30px;
    left: 15px;
    cursor: pointer;

}

.table.oval {
    width: 230px;
    height: 100px;
    border-radius: 30px;
    top: 20px;
    left: 20px;
    position: absolute;
    cursor: pointer;

}

.table.oval-inner {
    width: 150px;
    height: 35px;
    border-radius: 30px;
    background-color: #fdfbf6;
    top: 50px;
    left: 60px;
    position: absolute;
    z-index: 3;
}

.table.small-rect {
    width: 135px;
    height: 40px;
    top: 35px;
    left: 0;
    border-radius: 30px;
    cursor: pointer;
}

.table.vert-rect {
    width: 40px;
    height: 175px;
    top: 0;
    left: 20px;
    border-radius: 30px;
    cursor: pointer;
}

/* Chairs */
.chair {
    position: absolute;
    width: 35px;
    height: 35px;
    /*background-color: #2f3e5c; vaka bese */
    background-color: #333333;
    border-radius: 30%;
    z-index: 1;
}

.chair.top {
    top: 20px;
}

.chair.right {
    top: 20px;
    right: 10px;
}

.chair.bottom {
    bottom: 0px;
    right: 10px;
}

.chair.left {
    top: 65px;
}


/* Oval chairs */
.oval-chair.chair-0 {
    top: 5px;
    left: 120px;
}

.oval-chair.chair-1 {
    top: 5px;
    left: 160px;
}

.oval-chair.chair-2 {
    top: 5px;
    left: 200px;
}

.oval-chair.chair-3 {
    top: 100px;
    left: 200px;
}

.oval-chair.chair-4 {
    top: 100px;
    left: 160px;
}

.oval-chair.chair-5 {
    top: 100px;
    left: 120px;
}

.oval-chair.chair-6 {
    top: 100px;
    left: 80px;
}

.oval-chair.chair-7 {
    top: 100px;
    left: 40px;
}

.oval-chair.chair-8 {
    top: 50px;
    left: 5px;
}

.oval-chair.chair-9 {
    top: 50px;
    left: 232px;
}

.oval-chair.chair-10 {
    top: 5px;
    left: 40px;
}

.oval-chair.chair-11 {
    top: 5px;
    left: 80px;
}

/* Rect chairs horizontal */
.small-rect-chair.chair-0 {
    top: 20px;
    left: 10px;
}

.small-rect-chair.chair-1 {
    top: 20px;
    left: 50px;
}

.small-rect-chair.chair-2 {
    top: 20px;
    left: 90px;
}

.small-rect-chair.chair-3 {
    top: 55px;
    left: 10px;
}

.small-rect-chair.chair-4 {
    top: 55px;
    left: 50px;
}

.small-rect-chair.chair-5 {
    top: 55px;
    left: 90px;
}

/* Rect chairs vertical */
.vert-rect-chair.chair-0 {
    top: 10px;
}

.vert-rect-chair.chair-1 {
    top: 50px;
}

.vert-rect-chair.chair-2 {
    top: 90px;
}

.vert-rect-chair.chair-3 {
    top: 130px;
}

.vert-rect-chair.chair-4 {
    top: 10px;
    left: 45px;
}

.vert-rect-chair.chair-5 {
    top: 50px;
    left: 45px;
}

.vert-rect-chair.chair-6 {
    top: 90px;
    left: 45px;
}

.vert-rect-chair.chair-7 {
    top: 130px;
    left: 45px;
}



/* Highlighted */
.selected-table .table.round {
    box-shadow: 0 0 15px 5px limegreen;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


.after-submit-dropdown {
    animation: slideInRight 0.3s ease-out forwards;
    animation-delay: 0.25s;
    opacity: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    color: #D82B2B;
    gap: 15px;
    background-color: white;
    text-align: center;
    padding: 20px 60px;
    border-radius: 35px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
    width: 250px;
}

.time-gathering {
    animation: slideInRight 0.3s ease-out forwards;
    animation-delay: 0.45s;
    opacity: 0;
}

.lines {
    top: 350px;
    left: 510px;
    width: 1px;
    height: 330px;
    background-color: black;
    position: absolute;
}

.lines2 {
    top: 350px;
    left: 510px;
    width: 460px;
    height: 1px;
    background-color: black;
    position: absolute;
}

.table-group.available .table {
    background-color: #4caf50 !important;
}

.table-group.available .table.oval-inner {
    background-color: white !important;
}

.table-group.unavailable .table {
    background-color: red !important; /* црвена */
    cursor: not-allowed;
}

.table-group.unavailable .table.oval-inner {
    background-color: white !important;
}

.table-group.selected .table {
    outline: 3px solid yellow; /* за селектирана */
}

.table-group.available .table.oval-inner {
    outline: 0px solid white !important;
}

.submit-button-time:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/*.table-group:hover {*/
/*    background-color: rgba(255, 200, 0, 0.3); !* светло жолта прозирна позадина *!*/
/*    cursor: pointer; !* показува дека е кликабилно *!*/
/*    transition: background-color 0.3s ease;*/
/*    border-radius: 8px; !* ако сакаш убаво заоблено *!*/
/*    box-shadow: 0 0 10px rgba(255, 200, 0, 0.5); !* ефект на светлина *!*/
/*}*/

.table-group:hover {
    background: radial-gradient(circle, rgba(255, 255, 200, 0.4) 0%, transparent 70%);
}

.table-group.default:hover {
    background-color: rgba(255, 200, 0, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 200, 0, 0.5);
}

/* Available tables hover – stronger green glow */
.table-group.available:hover {
    background-color: rgba(144, 238, 144, 0.3); /* lightgreen transparent */
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(144, 238, 144, 0.5);
}

/* Unavailable tables hover – soft red glow */
.table-group.unavailable:hover {
    background-color: rgba(255, 99, 71, 0.3); /* tomato transparent */
    cursor: not-allowed; /* show it's not clickable */
    transition: background-color 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 99, 71, 0.5);
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    20%, 60% {
        transform: translateX(-4px);
    }
    40%, 80% {
        transform: translateX(4px);
    }
}

.table-group.unavailable:active {
    animation: shake 0.3s;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px rgba(144, 238, 144, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(144, 238, 144, 0.9);
    }
    100% {
        box-shadow: 0 0 5px rgba(144, 238, 144, 0.5);
    }
}

.table-group.available:hover {
    animation: pulseGlow 1.5s infinite;
}

.table-label {
    position: absolute;
    left: 50%;
    top: 8%;
    transform: translate(-50%, -50%);
    /*color: black; vaka bese */
    color: red;
}

.table-label-sank {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    /*color: black; vaka bese*/
    color: red;
    top: -10%;
}

.table-label-8 {
    top: -13%;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    /*color: black; vaka bese*/
    color: red;
}

.table-label-4 {
    /*color: black; vaka bese*/
    color: red;
    display: flex;
    justify-content: center;
}

/* Темна позадина */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* полупроѕирна црна */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

/* Модал кутија */
.time-modal {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    width: 300px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Inputs и копчиња */
.time-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.time-input-group label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

input[type="time"] {
    padding: 6px;
    font-size: 16px;
    width: 100%;
}


.close-button {
    background-color: black;
    color: white;
    padding: 10px 30px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-family: "Rubik Dirt", system-ui;
    font-size: 16px;
}

.select_text {
    color: #D82B2B;
    font-weight: normal;
    margin-bottom: 20px;
}

.multi-time-select {
    width: 100%;
    height: 150px;
    background-color: #1a1a1a;
    color: white;
    border: 1px solid #444;
    padding: 8px;
}

.checkbox-time-list {
    max-height: 250px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: white;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.checkbox-time-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.hour-text {
    margin: 0px;
    font-size: large;
    font-weight: normal;
}

.selected-times-wrapper {
    padding: 15px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    max-width: 400px;
    transition: all 0.3s ease-in-out;
    margin-bottom: 20px;
}

.selected-times-title {
    font-size: larger;
    color: #333333;
    margin-bottom: 10px;
    font-weight: normal;
    margin: 0px 0px 10px 0px;
}

.selected-times-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.selected-table-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 10px;
    flex-direction: column;

}

.time-chip {
    padding: 6px 14px;
    background-color: #f3f3f3;
    border-radius: 9999px;
    font-size: 14px;
    color: #333;
    border: 1px solid #d0d0d0;
    transition: 0.2s ease;
}

.time-chip-table {
    padding: 6px 14px;
    background-color: #eab5b5;
    border-radius: 9999px;
    font-size: 14px;
    color: #333;
    border: 1px solid #eab5b5;
    transition: 0.2s ease;
}

.time-chip:hover {
    background-color: #eee;
    cursor: pointer;
}

.time-chip-table:hover {
    background-color: #eac8c8;
    cursor: pointer;
}

.clear-button {
    background-color: #333333;
    color: white;
    border: none;
    padding: 5px 10px;
    margin: 10px 0px 0px 0px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    opacity: 50%;
    transition: background-color 0.4s ease;
}

.clear-button:hover {
    background-color: #a93333;
}

.table-group {
    transition: background-color 0.4s ease, border 0.4s ease, box-shadow 0.4s ease;
}

.table {
    transition: background-color 0.4s ease;
}

.table.round,
.table.oval,
.table.small-rect,
.table.vert-rect {
    transition: background-color 0.4s ease;
}

.fade-wrapper {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-wrapper.hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}


