:root{
    --primary-color: #1e1f1e;
    --secondary-color: #7a0e05;
    --success-color: #28A745;
    --danger-color: #DC3545;
    --warning-color: #FFC107;
    --info-color: #17A2B8;
    --light-color: #F8F9FA;
    --dark-color: #343A40;  

    /* navigation*/
    --nav-height: 60px;
    --category-height: 25px;

}
/*hide scroll bars*/
::-webkit-scrollbar{
    display: none;
}
.spacer {
    height: calc(var(--nav-height) + var(--category-height) + 10px);
}
a{
    text-decoration: none;
    color: var(--secondary-color);
}
ul{
    margin: 0;
    padding: 0;
}
ul li{
    list-style: none;
}

.btn-primary{
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
}
.btn-primary:hover{
    background-color: #7a0e05;
}
.form-check-input:checked{
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

nav{
    width: 100%;
    height: var(--nav-height);
    background-color: #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10001;
}
nav .nav-logo{
    height: 60px;
    width: 60px;
    padding: 5px;
}
nav .nav-logo img{
    height: 100%;
}
nav .links-nav{
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}
nav .links-nav a, .nav-dropdown-title{
    height: 100%;
    display: flex;
    align-items: center;
    padding: 10px;
    color: var(--secondary-color);
    font-size: 15px;
    letter-spacing: 1.5px;
    font-weight: 600;
    cursor: pointer;
}
.links-nav a:hover, .nav-dropdown-title:hover{
    color: black;
}
.nav-dropdown{
    position: relative;
    display: inline-block;
    background-color: #fff;
}
.nav-dropdown-content{
    position: absolute;
    background-color: #ffffff;
    min-width: 250px;
    min-width: 300px;
    border-radius: 7px;
    border: none;
    z-index: 1;
    overflow: hidden;
    display: none;
    background-color: #fff;
}
.nav-dropdown:hover .nav-dropdown-content {
    display: block;
    border: solid 1px rgba(0, 0, 0, 0.1);
}
.nav-dropdown-content a{
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    background-color: #fff;
}
.nav-dropdown-content a:hover{
    background-color: var(--secondary-color);
    color: #fff !important;
    transform: none;
}

nav .bi-list{
    font-size: 30px;
    color: var(--secondary-color);
    cursor: pointer;
    display: none;
}
@media screen and (max-width: 600px) {
    nav{
        z-index: 10000;
        box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.1);
    }
    nav .links-nav{
        display: none;
        position: absolute;
        left: 0;
        top: var(--nav-height);
        width: 100%;
        background-color: #fff;
    }
    nav .links-nav a{
        width: 100%;
        padding: 10px;
        border-bottom: solid 1px rgba(0, 0, 0, 0.1);
        background-color: #fff;
    }
    nav .links-nav a:hover{
        background-color: var(--secondary-color);
        color: #fff !important;
        transform: none;
    }
    .nav-dropdown{
        width: 100%;
        height: 100%;
        background-color: #fff;
    }
    .nav-dropdown-content{
        display: block;
        position: relative;
        top: 0;
        left: 15px;
        width: 100%;
        background-color: #fff;
        border: none;
        border-top-left-radius: 0px;
        border-bottom-left-radius: 0px;
    }
    .nav-dropdown-content a{
        color: black !important;
        width: 100%;
        border: none !important;
    }
    .nav-dropdown-content a:hover{
        color: #fff !important;
        background-color: var(--secondary-color) !important;
    }
    .nav-dropdown:hover .nav-dropdown-content{
        border: none;
    }
    nav .bi-list{
        display: block;
    }
    
}

.menu-navigator{
    position: fixed;
    top: var(--nav-height);
    width: 100%;
    height: var(--category-height);
    display: flex;
    align-items: center;
    background-color: var(--secondary-color);
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    color: white;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    overflow-x: auto;
    white-space: nowrap;
    z-index: 1;
}
.menu-category{
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}
.menu-category:hover, .menu-category.active{
    cursor: pointer;
    background: #fff;
    color: var(--secondary-color);
}
@media only screen and (max-width: 600px) {
    :root{
        --category-height: 35px;
    }
    .menu-navigator{
        height: var(--category-height)
    }
}



/*menu*/
.menu-container:hover{
    background-color: var(--light-color);
}
.menu-img{
    height: 150px;
    width: 100px;
    padding: 5px;
    transition: all 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}
.menu-img img{
    height: 100%;
    border-radius: 50%;
}
.menu-img:hover{
    transform: scale(1.1);
}
.category-title {
    height: 40px;
    display: flex;
    align-items: center;
    transition: background-color 0.5s ease;
}
.category-title.active{
    background-color: var(--primary-color);
    color: #fff;
    padding-left: 10px;
}
.menu-descript, .menu-price {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    /* Make sure the parent container has height */
}
.menu-container h4{
    font-size: 17px;
    color: var(--secondary-color);
}
.menu-container p{
    font-size: 13px;
    text-align: justify;
}
.menu-price{
    align-items: center;
}
.menu-price-amount{
    font-size: 25px;
    font-weight: 600;
}

@media screen and (max-width: 991px) {
    .menu-img {
        height: 70px;
        width: 70px;
    }

}
@media screen and (max-width: 600px) {
   .menu-img{
    height: 60px;
    width: 60px;
   }
    
}

.modifiers{
    width: 100%;
    height: auto;
    color: var(--secondary-color);
    position: sticky;
    top:calc(var(--nav-height) + var(--category-height));
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    z-index: 1000;
    overflow: auto;
    white-space: nowrap;
}
.modifiers .container-md, .modifiers .container-fluid{
    background-color: var(--light-color);
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    overflow: auto;
}
@media screen and (max-width: 600px) {
    .modifiers .container-md, .modifiers .container-fluid {            
        justify-content: flex-start;
    }
}
.backdrop{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    display: none;
    
}
.backdrop.active{
    display: flex;
}
.mod-popup {
    width: 400px;
    min-height: auto;
    background-color: white;
    border-radius: 7px;
    position: relative;
    /* Needed for absolute positioning of child */
    overflow: auto;
    display: flex;
    flex-direction: column;
    /* So content can push the close button down */
}
.mod-popup .card-header{
    background-color: var(--secondary-color);
    position: sticky;
    padding: 5px;
    border-radius: 5px;
}
.mod-popup .card-header h5{
    color: #fff

}
.popup-close {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: var(--secondary-color);
    color: #fff;

    /* Key change: position inside .mod-popup */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}
.popup-close:hover{
    opacity: 0.8;
}
.dots {
    border-bottom: 2px dotted #000;
    height: 1em;
    align-self: center;
}
.mod-item{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
}
.mod-item-line{
    display: flex;
    flex-grow: 1;
}
.addon-btn{
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    font-size: 12px;
    letter-spacing: 1px;
}
.addon-btn:hover{
    opacity: 0.8;   
}
@media screen and (max-width: 600px) {
    .addon-btn{
        height: 35px;
    }
}
.menu-title{
    color: var(--secondary-color);
}
.menu-title small{
    font-size: 12px;    
}
.menu-title small:first-of-type{
    color: var(--success-color);
    font-size: 13px;
}
.menu-title img{
    height: 12px;
}
.menu-title .new-label{
    background-color: var(--success-color);
    color: #ffffff;
    padding: 5px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: normal;
}

.show-more{
    font-weight: 700;
    cursor: pointer;
    height: 30px;
    width: 150px;
    display: flex;
    align-items: center;
}
.show-more.active{
    background-color: var(--secondary-color);
    color: white;
    padding-left: 10px;
    border-radius: 5px;
}
.menu-details{
   display: none;
}
.menu-details.active{
    display: block;
    margin-top: 10px;
    font-size: 15px;
}
.price-container{
   margin-top: 10px;
}
.lto-container {
    display: flex;
    background-color: var(--primary-color);
    width: 50px;
    /* or auto if you prefer flex sizing */
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: #fff;
    border-radius: 5px;
}
.lto p {
    transform: rotate(-90deg);
    padding: 5px 10px;
    font-size: 16px;
    /* or smaller if you want */
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: max-content;
    letter-spacing: 1px;
}
.lto{

    color: white;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px; 
    letter-spacing: 1px;
}
.add-price-row-btn{
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    height: 30px;
    width: 50px;
    border-radius: 7px;      
}
.remove-price-row-btn{
    color: var(--danger-color);
    background-color: #ffffff00;
    font-size: 25px;
    border: none;
    height: 30px;
    width: 50px;
    border-radius: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
}


/*/home page*/

.carousel-item{
    margin-top: calc(var(--nav-height));
   
}


.menu-tile{
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 7px;

}
.menu-tile:hover{
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
    transition: all 0.5s ease;
}
.menu-tile-img{
    height: 110px;
    width: 110px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.menu-tile img{
    width: 100%;
    height: auto;
}
.menu-tile h5{
    font-size: 17px;
    color: var(--secondary-color) !important;
}
.menu-tile .reservation{
    width: 150px;
}
@media screen and (max-width: 576px) {
    .menu-tile-img{
        height: 70px;
        width: 70px;
    }
    .menu-tile{
        width: 100%;
        height: auto;
    }
    
}

.mapouter{
    width: 100%;
}
.mapouter iframe{
    height: 400px;
    width: 100%;
    border-radius: 7px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.05);
}
.footer-spacer{
    margin-bottom: 150px;
}

footer{
    width: 100%;
}


.custom-switch {
    position: relative;
    display: flex;
    width: 60px;
    height: 28px;
    font-size: 12px;
}

.custom-switch-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-switch-slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 34px;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    box-sizing: border-box;
    color: white;
}

.switch-label {
    z-index: 1;
    pointer-events: none;
}

.custom-switch-slider::before {
    content: "";
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    top: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    z-index: 2;
}

.custom-switch-input:checked+.custom-switch-slider {
    background-color: #28a745;
}

.custom-switch-input:checked+.custom-switch-slider::before {
    transform: translateX(32px);
}

.admin-layout {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
}
#adminSidebar {
    width: 250px;
    background-color: #212529;
    color: white;
    transition: width 0.3s ease;
    overflow-x: hidden;
    padding: 10px;
}

#adminSidebar.sidebar-collapsed {
    width: 80px;
}

#adminSidebar .btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#adminSidebar.sidebar-collapsed .btn {
    justify-content: center;
}

#adminSidebar .btn span {
    margin-left: 8px;
    transition: opacity 0.2s ease;
}

#adminSidebar.sidebar-collapsed .btn span {
    display: none;
}

/* MAIN layout */
main {
    flex-grow: 1;
    padding: 2rem;
}
#adminSidebar.sidebar-collapsed h6, #adminSidebar.sidebar-collapsed h5{
    display : none;
}
#adminSidebar.sidebar-collapsed button{
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}
/* Responsive behavior */
@media (max-width: 768px) {
    .admin-layout {
        flex-direction: row;
    }

    #adminSidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        height: 100vh;
        z-index: 1050;
    }

    main {
        margin-left: 250px;
        width: calc(100% - 250px);
    }

    #adminSidebar.sidebar-collapsed+main {
        margin-left: 60px;
        width: calc(100% - 60px);
    }
    
    
}