#navbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    z-index: 9999;
    background-color: #333; /* Black background color */
    position: fixed; /* Make it stick/fixed */
    top: 0; /* Stay on top */
    width: 100%; /* Full width */
    transition: top 0.3s; /* Transition effect when sliding down (and up) */
    height: 50px;
}
/* Style the navbar links */
#navbar .navbar-item {
    float: left;
    color: white;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
#navbar .navbar-item > a {
    color: white;
    line-height: 50px;
}
#navbar .navbar-item a > i{
    line-height: 50px;
    width: 50px;
}
#navbar .navbar-item > i {
    color: purple;
    line-height: 50px;
    margin:auto 0px;
    width: 50px;
}
#navbar .navbar-item i:hover{
    background-color: #ddd;
    color: black;
    border-radius: 10%;
}
#navbar .navbar-item i:hover > a, #navbar .navbar-item i:hover > i{
    color: black;
}

/* Dropdown Button */
.material-icons .drop-btn{
    border: none;
    cursor: pointer;
}

/* The container <div> - needed to position the dropdown content */
.drop-down {
    position: relative;
    display: inline-block;
    z-index: 9999;
}
/* Dropdown Content (Hidden by Default) */
.dropdown-content {
display: none;
position: absolute;
background-color: #f1f1f1;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 9999;
right: 0px;
width: 400px;
transition: all .5s;
overflow-y: scroll;
height: 100vh;
padding: 8px 16px;
padding-bottom: 50px;
}
/* Links inside the dropdown */
.dropdown-content a{
    color: purple;
    display: block;
    padding-top: 8px;
    padding-bottom: 8px;
    
}
.dropdownAccount a i{
    color: purple;
}
/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: #ddd;
    padding-right: 8px;
}
/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
.show {
display:block;
}
ul {
    
    color: purple;
    font-size: 16px;
}
li {
    cursor: pointer;
    color: black;
    font-weight: bold;
    padding-top: 8px;
    padding-bottom: 8px;
    
    
}
li:hover{
    padding-right: 8px;
}

.subcategories {
    display: none; /* إخفاء الفئات الفرعية بشكل افتراضي */ 
    color: black;
}
.subcategories:hover{
    background-color: #f1f1f1;
}
.dropdown-content {
    text-align: right;
}
.toggle-symbol {
    font-weight: bold;
    cursor: pointer;
    color: #333;
    font-size: 16px;
}
.toggle-symbol.active {
    color: #555; /* تغيير لون السهم عند الفتح */
}
.toggle-symbol:hover {
    color: white;
}
.mainCategory{
    margin-right: 0px;
    padding-right: 0px;
}
