/* Sidebar Styles */
.sidebar {
    width: 250px;
    background-color: #f8f8f8;
    padding: 20px;
    display: block;
}

.categories ul {
    list-style-type: none;
    padding: 0;
}

.category-item {
    margin: 10px 0;
    cursor: pointer;
}

.category-item a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
}

.arrow {
    float: right;
    font-size: 20px;
}

.subcategories {
    list-style-type: none;
    padding: 0 20px;
    display: none;
}

.subcategories li a {
    text-decoration: none;
    color: #777;
    font-size: 16px;
}

.subcategories li a:hover {
    color: #333;
}

/* Show subcategories when clicked */
.category-item.active .subcategories {
    display: block;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .sidebar {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #333;
        color: white;
    }

    .menu-toggle {
        background-color: #343a40;
        color: white;
        font-size: 30px;
        border: none;
        padding: 10px;
        width: 100%;
        cursor: pointer;
    }

    .categories {
        padding: 20px;
    }

    .category-item a {
        color: white;
    }

    .arrow {
        color: white;
    }

    .subcategories li a {
        color: #ddd;
    }

    .category-item.active .subcategories {
        display: block;
    }

    .category-item.active .arrow {
        transform: rotate(180deg);
    }
}

/* Show sidebar on mobile when menu is clicked */
.sidebar.show {
    display: block;
}
/* Default styles for sidebar (hidden on desktop) */
.sidebar {
    display: none; /* Initially hidden on desktop */
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    background-color: #f8f8f8;
    padding: 20px;
    z-index: 1000;
    height: 100%;
}

.categories ul {
    list-style-type: none;
    padding: 0;
}

.category-item {
    margin: 10px 0;
    cursor: pointer;
}

.category-item a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
}

/* Mobile view styles */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
        position: absolute;
        left: 20px;
        top: 20px;
        font-size: 30px;
        background-color: transparent;
        border: none;
        color: #333;
    }

    .sidebar {
        display: block; /* Show sidebar on mobile */
    }

    .category-item a {
        color: #333;
    }
}

/* Desktop version (sidebar hidden by default) */
@media (min-width: 769px) {
    .sidebar {
        display: none;
    }
} 

