html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}
/* Base styles for form controls */
input[type="text"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #444;
    color: #fff;
    transition: border-color 0.3s ease;
}

    input[type="text"]:focus,
    input[type="number"]:focus,
    textarea:focus,
    select:focus {
        border-color: #666;
        outline: none;
    }

/* Button styling */
button, input[type="submit"] {
    width: 100%;
    background-color: #333;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    button:hover, input[type="submit"]:hover {
        background-color: #555;
    }

    button.save-item, input[type="submit"].save-item {
        background-color: #4CAF50;
    }

        button.save-item:hover, input[type="submit"].save-item:hover {
            background-color: #45a049;
        }

/* Modal form adjustments */
.modal-content form {
    max-width: 500px; /* Adjust as needed */
    margin: 0 auto; /* Center the form in the modal */
}

/* Responsive design */
@media screen and (max-width: 600px) {
    input[type="text"],
    input[type="number"],
    textarea,
    select,
    button,
    input[type="submit"] {
        width: 100%;
    }
}


html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.editable-combo {
    position: relative;
    width: 400px;
}

    .editable-combo input[type="text"] {
        width: 100%;
        padding: 5px;
        box-sizing: border-box;
    }

.options-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: none;
    position: absolute;
    width: 100%;
    background-color: white;
    border: 1px solid #ccc;
    max-height: 150px;
    overflow-y: auto;
}

    .options-list li {
        padding: 5px 10px;
        cursor: pointer;
    }

        .options-list li:hover {
            background-color: #f5f5f5;
        }

.tag-collection {
    margin-top: 10px;
}

/*.tag {
    display: inline-block;
    padding: 5px 10px;
    margin: 5px;
    background-color: #e9e9e9;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: default;
    position: relative;
}

    .tag .remove-tag {
        position: absolute;
        right: 2px;
        top: 2px;
        font-size: 8px;
        cursor: pointer;
        color: #888;
    }

        .tag .remove-tag:hover {
            color: red;
        }
*/

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #141414;
    color: #fff;
    overflow-x: hidden;
}

.container {
    display: flex;
}

.sidebar {
    width: 70px;
    background-color: #1a1a1a;
    height: 100vh;
    position: fixed;
    overflow-x: hidden;
    overflow-y: auto; /* Allow vertical scrolling */
    transition: width 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}

    /* Hide scrollbar in Webkit browsers (Chrome, Safari, Edge) */
    .sidebar::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

/* Hide scrollbar in Firefox */
.sidebar {
    scrollbar-width: none;
}

/* Optional: Ensure no scrollbar in older browsers */
.sidebar {
    -ms-overflow-style: none; /* Internet Explorer and Edge (legacy) */
}

    .sidebar.expanded {
        width: 250px; /* Expanded width */
    }

.menu-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Collapsed state: Center the search icon */
.sidebar:not(.expanded) .menu-search {
    padding: 0;
    justify-content: center;
    width: 70px; /* Ensure the container matches the sidebar width */
    box-sizing: border-box; /* Prevent padding/margins from affecting width */
}

.sidebar:not(.expanded) .search-container {
    padding: 0;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.sidebar:not(.expanded) .search-icon {
    position: static;
    transform: translateY(-10px); /* Nudge up to align with other icons */
    margin: 0;
    width: 20px;
    font-size: 18px;
    color: #e50914;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-form {
    margin: 0;
    padding: 0;
}

    .sidebar-form .nav-link {
        border: none;
        background: none;
        padding: 10px 15px;
        width: 100%;
        text-align: left;
    }

        .sidebar-form .nav-link:hover {
            background-color: #404040;
            color: #e50914;
        }

    .sidebar-form .menu-item {
        border: none;
        background: none;
        padding: 15px 10px; /* Match other menu-items */
        width: 100%;
        text-align: left;
        display: flex;
        align-items: center;
        color: #fff;
    }

        .sidebar-form .menu-item:hover {
            background-color: #333;
            color: #f3f3f3;
            transform: translateX(5px); /* Match hover effect */
        }

        .sidebar-form .menu-item::before {
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            display: inline-block;
            width: 20px;
            content: var(--icon-content, "");
            margin-right: 10px; /* Match icon spacing */
        }

/* Adjust for collapsed menu */
.sidebar:not(.expanded) .sidebar-form .menu-item {
    justify-content: center;
    padding: 15px 0;
    width: 70px;
}

    .sidebar:not(.expanded) .sidebar-form .menu-item span {
        display: none;
    }

.menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    padding: 15px;
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: center;
    transition: background-color 0.3s ease;
}

    .menu-toggle:hover {
        background-color: #333;
    }

    .menu-toggle span {
        display: block;
        width: 30px;
        height: 3px;
        background-color: #fff;
        margin: 6px 0;
        transition: 0.4s;
    }

.menu-content {
    /* Removed opacity and visibility transitions */
    padding-top: 20px;
}

    .menu-content ul {
        list-style-type: none;
        padding: 0;
    }

    .menu-content li a {
        color: #fff;
        text-decoration: none;
        padding: 15px 10px;
        display: flex;
        align-items: center;
        transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    }

        .menu-content li a::before {
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            display: inline-block;
            width: 20px;
            content: var(--icon-content, "");
        }

        .menu-content li a:hover {
            background-color: #333;
            color: #f3f3f3;
            transform: translateX(5px);
        }

            .menu-content li a:hover::before {
                transform: scale(1.2);
            }

        /* Ensure icons are always visible */
        .menu-content li a::before {
            visibility: visible;
        }

/* Hide text when menu is not expanded */
.sidebar:not(.expanded) .menu-content li a span {
    display: none;
}

/* Adjust for collapsed menu */
.sidebar:not(.expanded) .menu-content li a {
    justify-content: center;
    padding: 15px 0; /* Remove side padding to center icon better */
    width: 70px; /* Match the sidebar width to ensure icon fits */
}

/* Ensure icon has space when menu is expanded */
.sidebar.expanded .menu-content li a::before {
    margin-right: 10px;
}

/*.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

    .menu-item:hover {
        background-color: #333;
    }

    .menu-item span {
        margin-left: 15px;
        display: none;*/ /* Hidden when sidebar is collapsed */
/*}*/

.sidebar.expanded .menu-item span {
    display: inline; /* Visible when sidebar is expanded */
}

.sidebar .nav-link {
    color: #fff;
    padding: 10px 15px;
    display: flex;
    align-items: center;
}

    .sidebar .nav-link:hover {
        background-color: #404040;
        color: #e50914;
        Red accent
    }

    .sidebar .nav-link i {
        margin-right: 10px;
        width: 20px;
        Consistent icon width
    }
/* Remove global input styles that conflict with the search input */
input[type="text"].search-input {
    margin: 0; /* Override global margin */
    padding: 6px 30px 6px 10px; /* Reduced padding for smaller height */
    width: 0; /* Hidden when sidebar is collapsed */
    transition: width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

/* Ensure consistent menu item height and alignment */
/* Ensure consistent menu item styling */
.menu-item,
.menu-search {
    display: flex;
    align-items: center;
    padding: 10px 0;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s ease;
    height: 50px;
}

/* Search container adjustments */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* Collapsed state: Center the search icon */
.sidebar:not(.expanded) .menu-search {
    padding: 0;
    justify-content: center;
    width: 70px; /* Ensure the container matches the sidebar width */
    box-sizing: border-box; /* Prevent padding/margins from affecting width */
}

.sidebar:not(.expanded) .search-container {
    padding: 0;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.sidebar:not(.expanded) .search-icon {
    position: static;
    transform: translateY(-10px); /* Nudge up to align with other icons */
    top: -5px;
    margin: 0;
    width: 20px;
    font-size: 18px;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Expanded state: Align the search icon with the input */
/*.sidebar.expanded .menu-search {
    padding: 0 20px;
}
*/
.sidebar.expanded .search-container {
    padding: 0 0 0 5px;
}

.sidebar.expanded .search-icon {
    position: static;
    transform: translateY(-10px); /* Nudge up to align with search input */
    margin: 0;
    width: 20px;
    font-size: 18px;
    color: #e50914;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.search-input {
    flex-grow: 1;
    margin-right: 30px;
    background-color: #333;
    color: #ffffff;
    border: 1px solid #444;
    border-radius: 20px;
    padding: 6px 30px 6px 10px;
    font-size: 14px;
    height: 34px;
    width: 0;
    transition: width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.sidebar.expanded .search-input {
    width: calc(100% - 60px);
    opacity: 1;
}

.search-btn {
    position: absolute;
    background: none;
    border: none;
    font-size: 16px;
    padding: 5px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2;
}

.sidebar.expanded .search-btn {
    color: #e50914;
}
/*.sidebar:not(.expanded) .search-icon {
    transform: translateY(-4px);*/ /* Increase if needed */
/*}

.sidebar.expanded .search-icon {
    transform: translateY(-3px);*/ /* Increase if needed */
/*}
.sidebar:not(.expanded) .search-icon,
.sidebar.expanded .search-icon {
    line-height: 20px;
}*/
/*.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);*/ /* Vertically center the button */
/*background: none;
    border: none;
    color: #e50914;*/ /* Red icon */
/*font-size: 16px;
    padding: 5px;
    width: 24px;*/ /* Fixed width to match icon size */
/*height: 24px;*/ /* Fixed height */
/*display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2;*/ /* Ensure button is above the input */
/*}*/

.search-btn:hover {
    color: #ff4d4d; /* Lighter red on hover */
    background: none; /* Ensure no background on hover */
}


/* Define icon content for each menu item */
.menu-item.fa-magnifier::before {
    --icon-content: "\f002";
}

.menu-item.fa-house::before {
    --icon-content: "\f015";
}

.menu-item.fa-utensils::before {
    --icon-content: "\f2e7";
}

.menu-item.fa-heart::before {
    --icon-content: "\f004";
}

.menu-item.fa-star::before {
    --icon-content: "\f005";
}

.menu-item.fa-dumbbell::before {
    --icon-content: "\f44b";
}

.menu-item.fa-shuffle::before {
    --icon-content: "\f074";
}

.menu-item.fa-layer-group::before {
    --icon-content: "\f5fd";
}

.menu-item.fa-list::before {
    --icon-content: "\f03a";
}

.menu-item.fa-table-list::before {
    --icon-content: "\f00b";
}

.menu-item.fa-sitemap::before {
    --icon-content: "\f0e8";
}

.menu-item.fa-user::before {
    --icon-content: "\f007";
}

.menu-item.fa-user-plus::before {
    --icon-content: "\f234";
}

.menu-item.fa-marker::before {
    --icon-content: "\f5a1";
}

.menu-item.fa-bars::before {
    --icon-content: "f0c9";
}

.menu-item.fa-unbox::before {
    --icon-content: "f08e";
}
.menu-item.fa-shopping-cart::before {
    --icon-content: "\f07a";
}


.content {
    margin-left: 70px;
    width: calc(100% - 70px);
    padding: 20px;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

.sidebar.expanded + .content {
    margin-left: 250px;
    width: calc(100% - 250px);
}

.category {
    margin-bottom: 30px;
}

    .category h2 {
        border-bottom: 1px solid #333;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

.meal-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
}

    .meal-grid.scrollable {
        /* Removed max-height as it's not needed for horizontal scrolling */
    }

/*.meal-item {
    flex: 0 0 auto;
    background-color: #282828;
    border-radius: 5px;
    padding: 15px;
    margin-right: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

    .meal-item:link {
        background-color: #141414;
        color: #fff;
        text-decoration: none;
    }
*/
.meal-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }

        .sidebar.expanded {
            width: 200px;
        }

    .content {
        margin-left: 50px;
        width: calc(100% - 50px);
    }

    .sidebar.expanded + .content {
        margin-left: 200px;
        width: calc(100% - 200px);
    }

    .meal-item {
        width: 150px;
    }

    .sidebar:not(.expanded) .menu-content li a {
        width: 70px; /* Adjust for mobile */
    }
}

/*Hide scrollbar for a cleaner look, but still allow scrolling*/
.meal-grid::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.meal-grid {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}
/* Existing styles from before ... */

.meal-detail {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

    .meal-detail .meal-image {
        width: 100%;
        max-width: 600px;
        display: block;
        margin: 0 auto 20px;
    }

.time-info {
    color: #ffffff; /* White text */
    font-size: 1.5rem; /* Slightly smaller than h2 default */
    margin: 0; /* Remove default margin for better alignment */
    padding: 0 30px; /* Add padding for more separation */
}

    .time-info span {
        color: #e50914; /* Red accent for labels */
    }

.collapsible-section {
    margin-bottom: 20px;
}

.collapsible-header {
    background-color: #333; /* Dark gray background */
    color: #ffffff; /* White text */
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    transition: background-color 0.4s ease;
}

    .collapsible-header:hover {
        background-color: #444; /* Slightly lighter on hover */
    }

    .collapsible-header::after {
        content: '\02795'; /* Plus sign */
        font-size: 13px;
        color: #e50914; /* Red accent */
        float: right;
        margin-left: 5px;
    }

    .collapsible-header.active::after {
        content: "\2796"; /* Minus sign */
    }

.collapsible-content {
    padding: 18px;
    background-color: #1a1a1a; /* Match app's dark theme */
    color: #ffffff; /* White text */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

    .collapsible-content ul,
    .collapsible-content ol {
        margin: 0;
        padding-left: 20px;
    }

    .collapsible-content p {
        margin-bottom: 10px;
    }
/* Responsive adjustments */
@media (max-width: 768px) {
    .meal-detail .meal-image {
        max-width: 100%;
    }
}
/* Remove default link styling */
a, a:hover, a:focus, a:active {
    text-decoration: none;
    color: inherit; /* Inherits color from parent */
}

/* Specific styling for meal items */
.meal-item a {
    display: block; /* Makes the whole meal item clickable */
    color: #fff; /* Assuming text color should be white */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transition for hover effects */
}

    .meal-item a:hover {
        background-color: #333; /* Darken background on hover */
        transform: translateY(-5px); /* Lift effect on hover */
    }

.meal-index {
    padding: 20px;
    background-color: #141414; /* Your streaming platform theme */
}

.meal-row {
    display: flex;
    flex-wrap: nowrap; /* Prevent wrapping */
    overflow-x: auto; /* Horizontal scroll */
    overflow-y: hidden; /* No vertical scroll */
    gap: 20px; /* Space between tiles */
    padding-bottom: 10px; /* For scrollbar visibility */
    scroll-behavior: smooth; /* Smooth scrolling */
}

/*.meal-tile {
    flex: 0 0 250px;
    height: 350px;
    background-color: #2c2c2c;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #fff;
    cursor: pointer;*/ /* Indicates clickability */
    /*transition: transform 0.2s, box-shadow 0.2s;*/ /* Smooth hover effect */
/*}

    .meal-tile:hover {
        transform: scale(1.05);*/ /* Slight zoom */
        /*box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);*/ /* Subtle shadow */
    /*}

    .meal-tile img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        object-position: center;
    }

    .meal-tile h3 {
        margin: 10px;
        font-size: 18px;
    }

    .meal-tile p {
        margin: 0 10px 10px;
        font-size: 14px;
        flex-grow: 1;
        overflow: hidden;
        text-overflow: ellipsis;
    }*/
/* Meal Tile Overlay for Hot Zones */
.meal-tile {
    position: relative; /* Ensure overlay positioning works */
    flex: 0 0 250px;
    height: 350px;
    background-color: #2c2c2c;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .meal-tile:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

    .meal-tile img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        object-position: center;
    }

    .meal-tile h3 {
        margin: 10px;
        font-size: 18px;
    }

    .meal-tile p {
        margin: 0 10px 10px;
        font-size: 14px;
        flex-grow: 1;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.meal-tile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px; /* Shade the top 50px of the tile */
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent black shade */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}
.meal-tile-link {
    display: flex;
    flex-direction: column;
    color: #fff;
    text-decoration: none;
    flex-grow: 1;
}

    .meal-tile-link img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        object-position: center;
    }

    .meal-tile-link h3 {
        margin: 10px;
        font-size: 18px;
    }

    .meal-tile-link p {
        margin: 0 10px 10px;
        font-size: 14px;
        flex-grow: 1;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.meal-action.favorite-btn .fa-heart-o {
    color: #fff; /* White for non-favorited */
}

.meal-action.favorite-btn:hover .fa-heart-o,
.meal-action.favorite-btn:hover .fa-heart {
    color: #ff4d4d; /* Lighter red on hover */
}
/*.meal-action.favorite-icon {
    display: inline-block;*/ /* Ensure visibility */
    /*color: #fff;*/ /* Default white for non-favorited */
/*}

.meal-action.favorite-btn[data-favorited="true"] .meal-action.favorite-icon {
    color: #ff4d4d;*/ /* Red for favorited */
/*}

.meal-action.favorite-btn[data-favorited="false"] .meal-action.favorite-icon {
    color: #fff;*/ /* White for non-favorited */
/*}

.meal-action.favorite-btn:hover .meal-action.favorite-icon {
    color: #ff4d4d;*/ /* Red on hover */
/*}
.favorite-icon {
    display: inline-block;*/ /* Ensure visibility */
    /*color: #fff;*/ /* Default white for non-favorited */
/*}

.favorite-btn[data-favorited="true"] .favorite-icon {
    color: #ff4d4d;*/ /* Red for favorited */
/*}

.favorite-btn[data-favorited="false"] .favorite-icon {
    color: #fff;*/ /* White for non-favorited */
/*}

.favorite-btn:hover .favorite-icon {
    color: #ff4d4d;*/ /* Red on hover */
/*}*/
.favorite-icon {
    display: inline-block; /* Ensure visibility */
    color: #fff; /* Default white for non-favorited */
}

.favorite-btn[data-favorited="true"] .favorite-icon {
    color: #ff4d4d; /* Red for favorited */
}

.favorite-btn[data-favorited="false"] .favorite-icon {
    color: #fff; /* White for non-favorited */
}

.favorite-btn:hover .favorite-icon {
    color: #ff4d4d; /* Red on hover */
}
.meal-action {
    background: none;
    border: none;
    color: #e50914; /* Red accent */
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .meal-action:hover {
        color: #ff4d4d; /* Lighter red on hover */
    }
    .meal-action.meal-plan-btn .fa-list {
        color: #fff; /* White by default */
    }

    .meal-action.meal-plan-btn[data-in-meal-plan="true"] .fa-list {
        color: #ff4d4d; /* Red if in meal plan */
    }

    .meal-action.meal-plan-btn:hover .fa-list {
        color: #ff4d4d; /* Lighter red on hover */
    }
/* Meal Plan Modal Styles */
#mealPlanModal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1001; /* Above sidebar (z-index: 1000) */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

    #mealPlanModal .modal-content {
        background-color: #1a1a1a;
        margin: 5% auto;
        padding: 20px;
        border: 1px solid #888;
        width: 90%;
        max-width: 600px;
        border-radius: 8px;
    }

.meal-plan-week {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.week-nav {
    background: #333;
    border: none;
    padding: 10px;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
}

    .week-nav:hover {
        background: #444;
    }

.week-range {
    font-size: 16px;
    color: #e50914;
}

.meal-plan-days {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.meal-plan-day {
    flex: 1 1 100%;
    background: #2c2c2c;
    padding: 10px;
    border-radius: 5px;
}

    .meal-plan-day h4 {
        margin: 0 0 10px;
        font-size: 16px;
    }

.meal-slot {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

    .meal-slot img {
        width: 40px;
        height: 40px;
        object-fit: cover;
        border-radius: 5px;
        margin-right: 10px;
    }

    .meal-slot span {
        flex-grow: 1;
    }

    .meal-slot button {
        background: #e50914;
        border: none;
        padding: 5px 10px;
        color: #fff;
        border-radius: 5px;
        cursor: pointer;
    }

        .meal-slot button:hover {
            background: #ff4d4d;
        }

.close-modal {
    width: 100%;
    background: #777;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

    .close-modal:hover {
        background: #888;
    }
/* Scrollbar styling (optional) */
.meal-row::-webkit-scrollbar {
    height: 8px;
}

.meal-row::-webkit-scrollbar-thumb {
    background-color: #e50914; /* Red accent */
    border-radius: 4px;
}

.meal-row::-webkit-scrollbar-track {
    background-color: #404040;
}

.meal-tile img[src=""] {
    content: url("/lib/img/no-image.jpg");
}

/* For menu items if needed */
.menu-content li a, .menu-content li a:hover, .menu-content li a:focus {
    color: inherit; /* Inherits the sidebar's text color */
}

/* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #1a1a1a;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

    .close:hover,
    .close:focus {
        color: #000;
        text-decoration: none;
        cursor: pointer;
    }

.meal-edit ul {
    list-style-type: none;
    padding: 0;
}

.meal-edit li {
    margin-bottom: 10px;
}

.meal-edit a {
    text-decoration: none;
    color: #fff;
    margin-left: 5px;
}

    .meal-edit a:hover {
        color: #ddd;
    }

/*
.meal-editor {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.meal-categories, .add-category {
  margin-bottom: 20px;
}

.tag-collection {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-collection .tag {
  background: #4CAF50;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.tag-collection .tag .remove-tag {
  margin-left: 10px;
  font-size: 14px;
  cursor: pointer;
}

input[type="text"], button {
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
}

button {
  background-color: #007BFF;
  color: white;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}*/
/*body {
    font-family: Arial, sans-serif;
    background-color: #141414;
    color: #fff;
}
*/
.meal-editor {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
}

.tag-bank {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

    .tag-bank p {
        color: #999;
        font-size: 14px;
        font-style: italic;
    }

.tag {
    background-color: #2c2c2c;
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

    .tag .remove-btn {
        background: none;
        border: none;
        color: #e50914;
        font-size: 16px;
        cursor: pointer;
        padding: 0;
    }

        .tag .remove-btn:hover {
            color: #ff4d4d;
        }

.tag-input-container {
    position: relative;
}

#tag-input {
    width: 100%;
    padding: 10px;
    background-color: #2c2c2c;
    border: 1px solid #404040;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
}

    #tag-input:focus {
        outline: none;
        border-color: #e50914;
    }

#add-tag-btn {
    background-color: #e50914;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    margin-top: 10px;
}

    #add-tag-btn:hover {
        background-color: #ff4d4d;
    }

.suggestions-list {
    position: absolute;
    z-index: 1000;
    background-color: #2c2c2c;
    border: 1px solid #404040;
    border-radius: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
}

    .suggestions-list li {
        padding: 10px;
        cursor: pointer;
    }

        .suggestions-list li:hover,
        .suggestions-list li.selected {
            background-color: #404040;
        }

#croppieContainer {
    margin: 0 auto;
}

/* Login Container (unchanged) */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 25px;
    background-color: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

    .login-container h1,
    .login-container h4 {
        color: #fff;
        text-align: center;
    }

    .login-container hr {
        border-color: #404040;
        margin: 20px 0;
    }

/* Form Group Spacing (unchanged) */
.form-group {
    margin-bottom: 20px;
}

/* Textboxes (unchanged) */
.custom-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    background-color: #2c2c2c;
    border: 1px solid #404040;
    border-radius: 6px;
    color: #fff;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

    .custom-input:focus {
        border-color: #e50914;
        outline: none;
        box-shadow: 0 0 5px rgba(229, 9, 20, 0.5);
    }

    .custom-input::placeholder {
        color: #888;
        opacity: 1;
    }

    .custom-input:disabled {
        background-color: #404040;
        opacity: 0.7;
    }

/* Button (unchanged) */
.custom-button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background-color: #e50914;
    color: #fff;
    border: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}

    .custom-button:hover {
        background-color: #b20710;
    }

/* Validation Errors (unchanged) */
.text-danger {
    color: #e50914 !important;
}

/* Manage Links */
.manage-links {
    margin-top: 20px;
}

.manage-link {
    display: block;
    color: #e50914;
    text-decoration: none;
    padding: 10px 0;
    transition: color 0.3s ease;
}

    .manage-link:hover {
        color: #fff;
        text-decoration: underline;
    }

/* Floating Toggle Button (Hidden by Default, Shown on Small Screens) */
/*.sidebar-toggle {
    display: none;*/ /* Hidden on larger screens */
    /*position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1100;*/ /* Above sidebar (z-index: 1000) */
    /*background: #1a1a1a;*/ /* Match sidebar background */
    /*border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    color: #fff;
    font-size: 20px;
}

    .sidebar-toggle:hover {
        background: #333;*/ /* Match sidebar hover effect */
    /*}*/

/* Responsive Adjustments for Small Screens */
/*@media (max-width: 768px) {
    .sidebar {
        width: 0;*/ /* Hidden by default */
        /*overflow: hidden;*/ /* Ensure content is not visible when hidden */
    /*}

        .sidebar.active {
            width: 70px;*/ /* Collapsed state when toggled */
        /*}

            .sidebar.active.expanded {
                width: 200px;*/ /* Expanded state */
            /*}

    .content {
        margin-left: 0;*/ /* No sidebar space when hidden */
        /*width: 100%;*/ /* Full width */
    /*}

    .sidebar.active + .content {
        margin-left: 70px;*/ /* Collapsed sidebar width */
        /*width: calc(100% - 70px);
    }

    .sidebar.active.expanded + .content {
        margin-left: 200px;*/ /* Expanded sidebar width */
        /*width: calc(100% - 200px);
    }

    .sidebar-toggle {
        display: block;*/ /* Show toggle button on small screens */
    /*}*/

    /* Ensure modal takes full width on small screens */
    /*.modal-content {
        width: 95%;*/ /* Slightly more breathing room */
        /*margin: 10% auto;*/ /* Adjust margin for better positioning */
    /*}
}*/

/* Floating Toggle Button (Hidden by Default, Shown on Small Screens) */
.sidebar-toggle {
    display: none; /* Hidden by default */
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1100; /* Above sidebar (z-index: 1000) */
    background: transparent; /* Transparent background */
    border: none;
    padding: 10px; /* Consistent padding */
    border-radius: 5px;
    cursor: pointer;
    color: #fff;
    font-size: 20px;
    width: 40px; /* Fixed width to prevent stretching */
    height: 40px; /* Fixed height for a square button */
    display: flex;
    align-items: center;
    justify-content: center; /* Center the icon */
}

    .sidebar-toggle:hover {
        background: #333; /* Slight background on hover for feedback */
    }

    /* Ensure the sidebar-toggle icon is centered and styled */
    .sidebar-toggle .fa-arrow-up-right-from-square {
        line-height: 1; /* Prevent icon misalignment */
        color: #e50914; /* Red accent to match your theme */
        transition: transform 0.3s ease; /* Smooth rotation transition */
    }

    .sidebar-toggle:hover .fa-arrow-up-right-from-square {
        color: #ff4d4d; /* Lighter red on hover */
    }

/* Rotate the icon 180 degrees when the sidebar is active */
/*.sidebar.active ~ .sidebar-toggle .fa-arrow-up-right-from-square {
    transform: rotate(180deg);*/ /* Rotate icon when sidebar is visible */
/*}*/
    /* Rotate the icon 180 degrees when the sidebar-toggle has the sidebar-open class */
    .sidebar-toggle.sidebar-open .fa-arrow-up-right-from-square {
        transform: rotate(180deg); /* Rotate icon when sidebar is visible */
    }

/* Ensure proper sibling selector usage */
.container {
    position: relative; /* Ensure the container can be used for sibling selectors */
}
.shopping-list {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 8px;
}

.week-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.copy-btn {
    width: 100%;
    background: #e50914;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
}

    .copy-btn:hover {
        background: #ff4d4d;
    }

.shopping-list ul {
    list-style: none;
    padding: 0;
}

.shopping-list li {
    padding: 10px 0;
    border-bottom: 1px solid #333;
}
/* Responsive Adjustments for Small Screens */
@media (max-width: 768px) {
    .sidebar {
        width: 0; /* Hidden by default */
        overflow: hidden; /* Ensure content is not visible when hidden */
    }

        .sidebar.active {
            width: 70px; /* Collapsed state when toggled */
        }

            .sidebar.active.expanded {
                width: 200px; /* Expanded state */
            }

    .content {
        margin-left: 0; /* No sidebar space when hidden */
        width: 100%; /* Full width */
    }

    .sidebar.active + .content {
        margin-left: 70px; /* Collapsed sidebar width */
        width: calc(100% - 70px);
    }

    .sidebar.active.expanded + .content {
        margin-left: 200px; /* Expanded sidebar width */
        width: calc(100% - 200px);
    }

    .sidebar-toggle {
        display: flex; /* Show toggle button on small screens */
    }

    /* Adjust menu-toggle positioning when sidebar is active to avoid overlap */
    .sidebar.active .menu-toggle {
        margin-top: 60px; /* Push down to avoid overlap with sidebar-toggle */
    }

    /* Ensure modal takes full width on small screens */
    .modal-content {
        width: 95%; /* Slightly more breathing room */
        margin: 10% auto; /* Adjust margin for better positioning */
    }
}

/* Ensure the toggle button is hidden on larger screens */
@media (min-width: 769px) {
    .sidebar-toggle {
        display: none !important; /* Force hide on larger screens */
    }
}