/* Navigation Bar Container */
nav#navMenu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
}

/* Hamburger Icon Style */
.hamburger {
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    background-color: transparent;
    color: white;
    text-align: right;
}

.hamburger span {
    font-size: 30px;
    cursor: pointer;
    display: block;
    text-align: center;
}


.closeburger {
    background-color: rgb(141, 19, 19);
    color: white;
    padding: 14px 20px;
    text-decoration: none;
}


.nav-links {
    margin-top: 50px; /* Give space for the fixed header */
    list-style-type: none;
    padding: 0;
    margin: 0;
    position: fixed;
    top: 0;
    right: -200px;
    background-color: #333;
    width: 200px;
    height: 100vh; /* Keeps the height to match the viewport */
    overflow-y: auto; /* Allows vertical scrolling */
    overflow-x: hidden; /* Prevents horizontal scrolling */
    transition: right 0.3s ease;
    padding-bottom: 20px; /* Adjust padding as needed */
}

.menu-buffer {
    height: 3em; /* Height can be adjusted as needed */
}


.nav-links li a {
    display: block;
    color: white;
    padding: 14px 20px;
    text-decoration: none;
}

.nav-links li a:hover {
    background-color: #555;
}

.nav-links li p {
    display: block;
    color: white;
    padding: 0px 10px 0px;
    text-decoration: none;
    font-size: 1.4em;
    margin: 20px 0px 0px 0px;
}


/* Additional styles for custom checkbox appearance */
#categoriesContainer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 10px;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
}

.search-container {
    width: 100%;
    padding: 0 10px 15px 10px;
    box-sizing: border-box;
}

#categorySearch {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    background-color: #555;
    color: white;
    border: 1px solid #777;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

#categorySearch::placeholder {
    color: #aaa;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.checkbox-holder {
    display: flex;
    align-items: start;
    padding: 8px 0;
    width: 100%;
    border-bottom: 1px solid #555;
    margin-bottom: 5px;
}

.custom-checkbox {
    position: relative;
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-right: 10px;
    padding: 10px;
    box-sizing: content-box;
}

@media (max-width: 600px) {
    .custom-checkbox {
        width: 30px; /* Larger checkbox on mobile */
        height: 30px;
        padding: 15px; /* Larger touch area */
    }

    .custom-checkbox + label {
        font-size: 1.2em; /* Larger text for easier reading and tapping */
    }
}
/* Base style for checkboxes */
.custom-checkbox {
    appearance: none;
    -webkit-appearance: none;
    height: 20px; /* Consistent size */
    width: 20px; /* Consistent size */
    border: 2px solid #ccc;
    border-radius: 0.25rem;
    background-color: #fff; /* Background color for visibility */
    cursor: pointer;
    position: relative;
    margin-right: 10px; /* Space between checkbox and label */
    box-sizing: border-box; /* Includes padding and border in the element's total width and height */
}

/* Pseudo-element to increase clickable area */
.custom-checkbox::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    bottom: -10px;
    right: -10px;
    background: transparent;
    z-index: -1;
}

@media (max-width: 600px) {
    .custom-checkbox {
        padding: 10px; /* Larger touch area, doesn't change visual size */
    }

    .custom-checkbox + label {
        font-size: 1.2em; /* Increase label size for better readability on mobile */
    }
}

.custom-checkbox:checked {
    background-color: #f59e0b; /* Example: Tailwind yellow-500 */
    border-color: #f59e0b;
}


/* Style adjustments for list items containing checkboxes */
.nav-links li {
    display: flex;
    align-items: center;
    padding-left: 14px; /* space for checkbox */
}

.nav-links li a {
    margin-left: 10px; /* space between checkbox and link text */
}

.nav-links li p {
    margin-left: 10px; /* space between checkbox and link text */
}

.checkbox-holder {
    display: flex;
    align-items: start;
    text-align: left;
}

/* Remove this style as we're now using buttons with inline styles */

