/* Menu Plans Styles */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.plan-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(0, 123, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.price-range {
    font-size: 1.2rem;
    font-weight: 600;
    color: #28a745;
}


.selected-items-list {
    /*max-height: 400px;*/
    overflow-y: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
}

/* Scrollbar Track */
.selected-items-list::-webkit-scrollbar {
    width: 0px; 
}



.menu-item-checkbox {
    transition: background-color 0.2s ease;
}

.menu-item-checkbox:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.form-check-input:checked + .form-check-label {
    font-weight: 600;
    color: #d3a662;
}

/* Category Accordion Styles */
.category-accordion {
    position: relative;
}

.category-button {
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.category-button:hover {
    background-color: #e9ecef;
}

.category-button:focus {
    box-shadow: none;
    outline: none;
}

.category-button .fa-chevron-down {
    transition: transform 0.3s ease;
}

.category-button[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

.selection-limit-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px 10px;
    z-index: 1;
}

.category-items {
    /*padding: 10px 0;*/
    display: flex;
    flex-wrap: wrap;
}

.card-body.res-cates{
        padding-bottom:0px;
}

/* Make menu items display in a grid for medium devices */
@media (min-width: 768px) {
    .menu-item-card {
        min-width: 50%;
        padding-right: 10px;
        flex-grow: 1;
    }
    
    /* Improve spacing and alignment */
    .menu-item-checkbox {
        padding: 8px 5px !important;
    }
    
    /* Add a subtle border to separate items */
    /*.menu-item-card:nth-child(odd) {*/
    /*    border-right: 1px solid #f0f0f0;*/
    /*}*/
    
    /* Add hover effect */
    .menu-item-checkbox:hover {
        background-color: #ffffff;
        border-radius: 4px;
    }
}

/* Selected Items Styles */
.selected-category {
    margin-bottom: 15px;
}

.selected-category h6 {
    color: #000000;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.selected-items-by-category .list-group-item {
    padding: 8px 15px;
    border-radius: 4px !important;
    margin-bottom: 5px;
    border: 1px solid #e9ecef;
}

.remove-item-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Selection Counter */
.selection-counter {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.8rem;
    margin-left: 10px;
}

.selection-counter.limit-reached {
    background-color: #dc3545;
    color: white;
}

/* Extra Item Badge */
.extra-item-badge {
    margin-left: 8px;
    font-size: 0.75rem;
    padding: 3px 6px;
    cursor: help;
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.8;
    }
}

/* Mobile styles */
@media (max-width: 767.98px) {
    .mobile-bottom-bar {
        display: flex;
        justify-content: space-around;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        padding: 10px;
        z-index: 1030;
    }
    
    .mobile-bottom-bar .btn {
        flex: 1;
        margin: 0 5px;
        white-space: nowrap;
        font-size: 0.85rem;
    }
    
   
    /* Make selected items card not sticky on mobile */
    .col-md-6 .sticky-top {
        position: relative !important;
        top: 0 !important;
    }
    
    /* Add some spacing between columns on mobile */
    .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Make the selected items section more visible on mobile */
    .col-md-6:nth-child(2) .card {
        border: 2px solid #28a745;
    }
    
    /* Floating button animation */
    #floatingSelectedBtn {
        animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
        0% {
            transform: scale(1);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }
        50% {
            transform: scale(1.05);
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
        }
        100% {
            transform: scale(1);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }
    }
    
    /* Make category buttons more touch-friendly */
    .category-button {
        padding: 15px !important;
    }
    
    /* Improve form checkboxes for touch */
    .form-check-input {
        width: 20px;
        height: 20px;
        margin-top: 0.25rem;
    }
    
    .form-check-label {
        padding-left: 5px;
        line-height: 1.5;
    }
}

.subcategory-items .menu-item-checkbox {
    border: 1px solid #e9ecef;
        border-radius: 5px;
}