.custom-fixed-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    z-index: 9999;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    direction: rtl;
}

.custom-fixed-menu a,
.custom-fixed-menu .dropdown-container {
    text-align: center;
    text-decoration: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 5px;
    transition: color 0.3s ease;
}

.custom-fixed-menu a i,
.custom-fixed-menu a img,
.custom-fixed-menu .dropdown-container i,
.custom-fixed-menu .dropdown-container img {
    display: block;
    font-size: 24px;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.custom-fixed-menu a:hover,
.custom-fixed-menu .dropdown-container a:hover {
    color: #007bff;
}

.dropdown-container {
    position: relative;
    flex: 1;
}

.dropdown-menu {
    display: none;
    position: absolute;
    bottom: 60px;
    left: 10px;
    right: 10px;
    z-index: 1000;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.dropdown-menu a {
    padding: 12px 15px;
    display: block;
    text-align: right;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: #f8f8f8;
    color: #007bff;
}

.show-menu .dropdown-menu {
    display: block;
}

/* إخفاء القائمة بناءً على الإعدادات */
@media only screen and (max-width: 767px) {
    .custom-fixed-menu {
        display: flex;
    }
}
@media only screen and (min-width: 768px) {
    .custom-fixed-menu {
        display: flex;
    }
}