[file name]: afb-menu-frontend.css
[file content begin]
/* AFB Vertical Menu - إصلاح نهائي متكامل */
:root {
    /* Colors */
    --afb-bg-color: transparent;
    --afb-text-color: #333;
    --afb-border-color: #e5e5e5;
    --afb-hover-bg: #f7f7f7;
    --afb-hover-color: #333;
    --afb-active-bg: #f0f0f0;
    --afb-active-color: #333;
    --afb-arrow-color: #333;
    
    /* Typography */
    --afb-font-size: 14px;
    --afb-font-weight: 600;
    --afb-icon-size: 14px;
    --afb-animation-speed: 300ms;
    
    /* Box Shadow */
    --afb-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --afb-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
    --afb-shadow-active: 0 4px 16px rgba(0, 0, 0, 0.15);
    
    /* Layout */
    --afb-item-height: 42px;
    --afb-item-spacing: 6px;
    --afb-border-radius: 6px;
    --afb-padding-x: 16px;
    --afb-padding-y: 0;
}

/* الأساسيات */
.afb-vertical-menu {
    font-family: inherit;
    font-size: var(--afb-font-size);
    font-weight: var(--afb-font-weight);
    color: var(--afb-text-color);
    background: var(--afb-bg-color);
    width: 100%;
    box-sizing: border-box;
}

/* اكتشاف اللغة والاتجاه */
body[lang="ar"] .afb-vertical-menu,
body:lang(ar) .afb-vertical-menu,
html[dir="rtl"] .afb-vertical-menu,
body.rtl .afb-vertical-menu {
    direction: rtl;
}

/* Menu Navigation */
.afb-menu-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--afb-item-spacing);
}

/* Menu Items */
.afb-menu-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--afb-item-spacing);
}

/* إصلاح جذري: هيكل li جديد */
.afb-menu-item {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: var(--afb-item-height);
    margin: 0;
    padding: 0;
    background-color: var(--afb-bg-color, white);
    box-shadow: var(--afb-shadow);
    border: 1px solid var(--afb-border-color);
    border-radius: var(--afb-border-radius);
    transition: all var(--afb-animation-speed) cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    box-sizing: border-box;
}

/* حاوية داخلية للرابط والتوجيه */
.afb-menu-item-inner {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: var(--afb-item-height);
    box-sizing: border-box;
}

/* Menu Link */
.afb-menu-link {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-height: var(--afb-item-height);
    padding: var(--afb-padding-y) var(--afb-padding-x);
    text-decoration: none;
    color: var(--afb-text-color);
    transition: all var(--afb-animation-speed) cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    gap: 3px;
    z-index: 2;
    overflow: hidden;
}

/* مساحة للتوجيه على اليمين (LTR) */
.afb-menu-item.afb-menu-parent > .afb-menu-item-inner > .afb-menu-link {
    padding-right: 50px !important;
}

/* مساحة للتوجيه على اليسار (RTL) */
html[dir="rtl"] .afb-menu-item.afb-menu-parent > .afb-menu-item-inner > .afb-menu-link,
body.rtl .afb-menu-item.afb-menu-parent > .afb-menu-item-inner > .afb-menu-link,
body[lang="ar"] .afb-menu-item.afb-menu-parent > .afb-menu-item-inner > .afb-menu-link {
    padding-right: var(--afb-padding-x) !important;
    padding-left: 50px !important;
}

/* إصلاح نهائي: التوجيه - الحل النهائي */
.afb-menu-toggle {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--afb-border-color);
    width: 28px !important;
    height: 28px !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: var(--afb-arrow-color);
    transition: all var(--afb-animation-speed) cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 !important;
    z-index: 100 !important;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin: 0 !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    box-sizing: border-box;
}

/* LTR: التوجيه على اليمين */
.afb-vertical-menu:not([dir="rtl"]):not(.rtl) .afb-menu-toggle,
body:not([dir="rtl"]):not(.rtl) .afb-menu-toggle,
body[lang="en"] .afb-menu-toggle,
body:lang(en) .afb-menu-toggle {
    right: 12px !important;
    left: auto !important;
}

/* RTL: التوجيه على اليسار */
html[dir="rtl"] .afb-menu-toggle,
body.rtl .afb-menu-toggle,
body[lang="ar"] .afb-menu-toggle,
body:lang(ar) .afb-menu-toggle {
    right: auto !important;
    left: 12px !important;
}

/* Expanded state - لا يتغير الموقع */
.afb-menu-toggle[aria-expanded="true"] {
    background: var(--afb-active-bg);
    color: var(--afb-active-color);
    border-color: var(--afb-active-color);
    transform: translateY(-50%) rotate(180deg) !important;
}

/* Hover effects */
.afb-menu-toggle:hover {
    background: white;
    color: var(--afb-hover-color);
    border-color: var(--afb-hover-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.05) !important;
}

.afb-menu-toggle[aria-expanded="true"]:hover {
    transform: translateY(-50%) rotate(180deg) scale(1.05) !important;
}

/* Toggle Icons */
.afb-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    position: relative;
}

.afb-toggle-icon i {
    font-size: 14px;
    transition: all var(--afb-animation-speed) ease;
}

/* Submenu - خارج تدفق الـ li */
.afb-submenu {
    list-style: none;
    margin: 0 !important;
    padding: 0;
    background-color: var(--afb-bg-color, white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--afb-border-color);
    border-top: none;
    border-radius: 0 0 var(--afb-border-radius) var(--afb-border-radius);
    overflow: hidden;
    width: 100% !important;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
}

/* Submenu مفتوح */
.afb-submenu[style*="display: block"],
.afb-submenu.show,
.afb-menu-parent.active > .afb-submenu,
.afb-menu-parent.afb-submenu-open > .afb-submenu {
    display: block !important;
    max-height: 5000px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* تعديل الحدود عند الفتح */
.afb-menu-parent.afb-submenu-open,
.afb-menu-parent.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent !important;
}

/* إصلاح: عناصر القوائم الفرعية - الحل النهائي لظهور toggle */
.afb-submenu .afb-menu-item {
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    min-height: calc(var(--afb-item-height) - 8px);
    background-color: transparent;
}

.afb-submenu .afb-menu-item:last-child {
    border-bottom: none;
}

/* أساسيات القوائم الفرعية */
.afb-submenu .afb-menu-link {
    padding-left: 1px;
    padding-right: var(--afb-padding-x);
    min-height: calc(var(--afb-item-height) - 8px);
    background-color: transparent;
}

html[dir="rtl"] .afb-submenu .afb-menu-link,
body.rtl .afb-submenu .afb-menu-link,
body[lang="ar"] .afb-submenu .afb-menu-link {
    padding-left: var(--afb-padding-x);
    padding-right: 1px;
}

/* إصلاح: مساحة للتوجيه في القوائم الفرعية (المستوى 1) */
.afb-submenu .afb-menu-parent > .afb-menu-item-inner > .afb-menu-link {
    padding-right: 20px !important;
}

html[dir="rtl"] .afb-submenu .afb-menu-parent > .afb-menu-item-inner > .afb-menu-link,
body.rtl .afb-submenu .afb-menu-parent > .afb-menu-item-inner > .afb-menu-link,
body[lang="ar"] .afb-submenu .afb-menu-parent > .afb-menu-item-inner > .afb-menu-link {
    padding-right: var(--afb-padding-x) !important;
    padding-left: 50px !important;
}

/* إصلاح: ظهور زر toggle في القوائم الفرعية */
.afb-submenu .afb-menu-parent .afb-menu-toggle {
    display: flex !important;
    right: 12px !important;
    left: auto !important;
    width: 26px !important;
    height: 26px !important;
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(229, 229, 229, 0.8);
}

html[dir="rtl"] .afb-submenu .afb-menu-parent .afb-menu-toggle,
body.rtl .afb-submenu .afb-menu-parent .afb-menu-toggle,
body[lang="ar"] .afb-submenu .afb-menu-parent .afb-menu-toggle {
    right: auto !important;
    left: 12px !important;
}

/* إصلاح: مساحة للتوجيه في القوائم الفرعية العميقة (المستوى 2) */
.afb-submenu .afb-submenu .afb-menu-parent > .afb-menu-item-inner > .afb-menu-link {
    padding-right: 50px !important;
    padding-left: 45px;
}

html[dir="rtl"] .afb-submenu .afb-submenu .afb-menu-parent > .afb-menu-item-inner > .afb-menu-link,
body.rtl .afb-submenu .afb-submenu .afb-menu-parent > .afb-menu-item-inner > .afb-menu-link,
body[lang="ar"] .afb-submenu .afb-submenu .afb-menu-parent > .afb-menu-item-inner > .afb-menu-link {
    padding-right: 45px !important;
    padding-left: 50px !important;
}

/* إصلاح: ظهور زر toggle في القوائم الفرعية العميقة (المستوى 2) */
.afb-submenu .afb-submenu .afb-menu-parent .afb-menu-toggle {
    display: flex !important;
    right: 10px !important;
    left: auto !important;
    width: 24px !important;
    height: 24px !important;
    background: rgba(255, 255, 255, 0.7);
}

html[dir="rtl"] .afb-submenu .afb-submenu .afb-menu-parent .afb-menu-toggle,
body.rtl .afb-submenu .afb-submenu .afb-menu-parent .afb-menu-toggle,
body[lang="ar"] .afb-submenu .afb-submenu .afb-menu-parent .afb-menu-toggle {
    right: auto !important;
    left: 10px !important;
}

/* إصلاح: مساحة للتوجيه في القوائم الفرعية العميقة (المستوى 3) */
.afb-submenu .afb-submenu .afb-submenu .afb-menu-parent > .afb-menu-item-inner > .afb-menu-link {
    padding-right: 50px !important;
    padding-left: 60px;
}

html[dir="rtl"] .afb-submenu .afb-submenu .afb-submenu .afb-menu-parent > .afb-menu-item-inner > .afb-menu-link,
body.rtl .afb-submenu .afb-submenu .afb-submenu .afb-menu-parent > .afb-menu-item-inner > .afb-menu-link,
body[lang="ar"] .afb-submenu .afb-submenu .afb-submenu .afb-menu-parent > .afb-menu-item-inner > .afb-menu-link {
    padding-right: 60px !important;
    padding-left: 50px !important;
}

/* إصلاح: ظهور زر toggle في القوائم الفرعية العميقة (المستوى 3) */
.afb-submenu .afb-submenu .afb-submenu .afb-menu-parent .afb-menu-toggle {
    display: flex !important;
    right: 8px !important;
    left: auto !important;
    width: 22px !important;
    height: 22px !important;
    background: rgba(255, 255, 255, 0.6);
}

html[dir="rtl"] .afb-submenu .afb-submenu .afb-submenu .afb-menu-parent .afb-menu-toggle,
body.rtl .afb-submenu .afb-submenu .afb-submenu .afb-menu-parent .afb-menu-toggle,
body[lang="ar"] .afb-submenu .afb-submenu .afb-submenu .afb-menu-parent .afb-menu-toggle {
    right: auto !important;
    left: 8px !important;
}

/* زيادة مسافة البادئة للقوائم الفرعية العميقة */
.afb-submenu .afb-submenu .afb-menu-link {
    padding-left: 45px;
}

.afb-submenu .afb-submenu .afb-submenu .afb-menu-link {
    padding-left: 60px;
}

.afb-submenu .afb-submenu .afb-submenu .afb-submenu .afb-menu-link {
    padding-left: 75px;
}

html[dir="rtl"] .afb-submenu .afb-submenu .afb-menu-link,
body.rtl .afb-submenu .afb-submenu .afb-menu-link,
body[lang="ar"] .afb-submenu .afb-submenu .afb-menu-link {
    padding-left: var(--afb-padding-x);
    padding-right: 45px;
}

html[dir="rtl"] .afb-submenu .afb-submenu .afb-submenu .afb-menu-link,
body.rtl .afb-submenu .afb-submenu .afb-submenu .afb-menu-link,
body[lang="ar"] .afb-submenu .afb-submenu .afb-submenu .afb-menu-link {
    padding-right: 60px;
}

html[dir="rtl"] .afb-submenu .afb-submenu .afb-submenu .afb-submenu .afb-menu-link,
body.rtl .afb-submenu .afb-submenu .afb-submenu .afb-submenu .afb-menu-link,
body[lang="ar"] .afb-submenu .afb-submenu .afb-submenu .afb-submenu .afb-menu-link {
    padding-right: 75px;
}

/* إصلاح: عرض أيقونات WordPress */
.afb-menu-link i,
.afb-menu-link .fa,
.afb-menu-link .fas,
.afb-menu-link .far,
.afb-menu-link .fab,
.afb-menu-link .dashicons,
.afb-menu-link .dashicons-before::before,
.afb-menu-link:before {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: var(--afb-icon-size) !important;
    min-width: 20px;
    text-align: center;
    color: inherit !important;
    margin: 0 !important;
}

/* LTR: أيقونة على اليسار */
.afb-vertical-menu:not([dir="rtl"]):not(.rtl) .afb-menu-link i,
body:not([dir="rtl"]):not(.rtl) .afb-menu-link i {
    margin-right: 10px !important;
    margin-left: 5px !important;
}

/* RTL: أيقونة على اليمين */
html[dir="rtl"] .afb-menu-link i,
body.rtl .afb-menu-link i,
body[lang="ar"] .afb-menu-link i {
    margin-right: 5px !important;
    margin-left: 10px !important;
}

/* Menu Text */
.afb-menu-text {
    flex: 1;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    transition: transform var(--afb-animation-speed) ease;
}

/* Text animation */
.afb-menu-link:hover .afb-menu-text {
    transform: translateX(3px);
}

html[dir="rtl"] .afb-menu-link:hover .afb-menu-text,
body.rtl .afb-menu-link:hover .afb-menu-text {
    transform: translateX(-3px);
}

/* Active/Current Item */
.afb-menu-item.afb-current-item,
.afb-menu-item.active {
    background-color: var(--afb-active-bg);
    color: var(--afb-active-color);
    box-shadow: var(--afb-shadow-active);
    border-color: transparent;
    position: relative;
    z-index: 2;
}

/* Active item indicator */
.afb-menu-item.afb-current-item::before,
.afb-menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--afb-active-color), transparent);
    border-radius: var(--afb-border-radius) 0 0 var(--afb-border-radius);
}

html[dir="rtl"] .afb-menu-item.afb-current-item::before,
html[dir="rtl"] .afb-menu-item.active::before,
body.rtl .afb-menu-item.afb-current-item::before,
body.rtl .afb-menu-item.active::before,
body[lang="ar"] .afb-menu-item.afb-current-item::before,
body[lang="ar"] .afb-menu-item.active::before {
    left: auto;
    right: 0;
    border-radius: 0 var(--afb-border-radius) var(--afb-border-radius) 0;
}

/* Current link */
.afb-current-item > .afb-menu-item-inner > .afb-menu-link,
.afb-menu-item.active > .afb-menu-item-inner > .afb-menu-link {
    color: var(--afb-active-color);
    font-weight: 700;
}

/* Link hover */
.afb-menu-link:hover {
    background-color: var(--afb-hover-bg);
    color: var(--afb-hover-color);
    text-decoration: none;
}

/* Animations */
.afb-animation-slide .afb-submenu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-5px);
    transition: all var(--afb-animation-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.afb-animation-slide .afb-menu-parent.active > .afb-submenu,
.afb-animation-slide .afb-menu-parent.afb-submenu-open > .afb-submenu {
    max-height: 5000px;
    opacity: 1;
    transform: translateY(0);
}

.afb-animation-fade .afb-submenu {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: scale(0.95);
    transition: all var(--afb-animation-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.afb-animation-fade .afb-menu-parent.active > .afb-submenu,
.afb-animation-fade .afb-menu-parent.afb-submenu-open > .afb-submenu {
    opacity: 1;
    visibility: visible;
    max-height: 5000px;
    transform: scale(1);
}

/* دعم WP Bakery Reverse Row */
.vc_row.rtl-reverse .afb-vertical-menu {
    direction: rtl;
}

.vc_row.rtl-reverse .afb-menu-toggle {
    right: auto !important;
    left: 12px !important;
}

.vc_row:not(.rtl-reverse) .afb-menu-toggle {
    left: 12px !important;
    right: auto !important;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
    .afb-vertical-menu {
        --afb-item-height: 48px;
        --afb-item-spacing: 8px;
        --afb-font-size: 15px;
        --afb-padding-x: 18px;
        --afb-border-radius: 8px;
        --afb-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
        --afb-shadow-hover: 0 5px 15px rgba(0, 0, 0, 0.12);
    }
    
    .afb-menu-item {
        min-height: var(--afb-item-height);
    }
    
    .afb-menu-link {
        min-height: var(--afb-item-height);
        padding: calc(var(--afb-item-height) * 0.15) var(--afb-padding-x);
    }
    
    .afb-menu-item.afb-menu-parent > .afb-menu-item-inner > .afb-menu-link {
        padding-right: 55px !important;
    }
    
    html[dir="rtl"] .afb-menu-item.afb-menu-parent > .afb-menu-item-inner > .afb-menu-link,
    body.rtl .afb-menu-item.afb-menu-parent > .afb-menu-item-inner > .afb-menu-link,
    body[lang="ar"] .afb-menu-item.afb-menu-parent > .afb-menu-item-inner > .afb-menu-link {
        padding-left: 55px !important;
        padding-right: var(--afb-padding-x) !important;
    }
    
    .afb-menu-toggle {
        width: 32px !important;
        height: 32px !important;
    }
    
    .afb-vertical-menu:not([dir="rtl"]):not(.rtl) .afb-menu-toggle,
    body:not([dir="rtl"]):not(.rtl) .afb-menu-toggle {
        right: 14px !important;
    }
    
    html[dir="rtl"] .afb-menu-toggle,
    body.rtl .afb-menu-toggle,
    body[lang="ar"] .afb-menu-toggle {
        left: 14px !important;
    }
    
    .afb-submenu .afb-menu-parent .afb-menu-toggle {
        width: 30px !important;
        height: 30px !important;
        right: 14px !important;
    }
    
    html[dir="rtl"] .afb-submenu .afb-menu-parent .afb-menu-toggle {
        left: 14px !important;
    }
    
    .afb-toggle-icon {
        width: 16px;
        height: 16px;
    }
    
    .afb-toggle-icon i {
        font-size: 16px;
    }
    
    .afb-submenu .afb-menu-link {
        padding-left: 35px;
        min-height: calc(var(--afb-item-height) - 10px);
    }
    
    html[dir="rtl"] .afb-submenu .afb-menu-link,
    body.rtl .afb-submenu .afb-menu-link,
    body[lang="ar"] .afb-submenu .afb-menu-link {
        padding-left: var(--afb-padding-x);
        padding-right: 35px;
    }
    
    .afb-submenu .afb-menu-item {
        min-height: calc(var(--afb-item-height) - 10px);
    }
    
    /* Better touch targets */
    .afb-menu-link,
    .afb-menu-toggle {
        min-height: 44px;
    }
    
    :root {
        --afb-animation-speed: 250ms;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .afb-vertical-menu {
        --afb-item-height: 44px;
        --afb-padding-x: 16px;
        --afb-font-size: 14px;
    }
    
    .afb-menu-text {
        font-size: 14px;
    }
    
    .afb-has-icons .afb-menu-icon {
        font-size: 16px;
    }
    
    .afb-menu-link {
        flex-wrap: wrap;
        align-content: center;
        min-height: 44px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .afb-menu-item.afb-menu-parent > .afb-menu-item-inner > .afb-menu-link {
        padding-right: 50px !important;
    }
    
    html[dir="rtl"] .afb-menu-item.afb-menu-parent > .afb-menu-item-inner > .afb-menu-link,
    body.rtl .afb-menu-item.afb-menu-parent > .afb-menu-item-inner > .afb-menu-link,
    body[lang="ar"] .afb-menu-item.afb-menu-parent > .afb-menu-item-inner > .afb-menu-link {
        padding-left: 50px !important;
        padding-right: var(--afb-padding-x) !important;
    }
    
    .afb-menu-text {
        width: 100%;
        margin-top: 2px;
    }
    
    .afb-menu-toggle {
        width: 30px !important;
        height: 30px !important;
    }
    
    .afb-vertical-menu:not([dir="rtl"]):not(.rtl) .afb-menu-toggle,
    body:not([dir="rtl"]):not(.rtl) .afb-menu-toggle {
        right: 10px !important;
    }
    
    html[dir="rtl"] .afb-menu-toggle,
    body.rtl .afb-menu-toggle,
    body[lang="ar"] .afb-menu-toggle {
        left: 10px !important;
    }
}

/* Accessibility */
.afb-menu-toggle:focus {
    outline: 2px solid var(--afb-active-color) !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 3px rgba(var(--afb-active-color-rgb), 0.3) !important;
}

.afb-menu-link:focus {
    outline: 2px solid var(--afb-hover-color);
    outline-offset: -2px;
    border-radius: var(--afb-border-radius);
}

/* Smooth transitions */
.afb-menu-item,
.afb-menu-link,
.afb-menu-toggle,
.afb-menu-icon,
.afb-menu-text {
    transition: all calc(var(--afb-animation-speed) * 0.8) cubic-bezier(0.4, 0, 0.2, 1);
	margin-right: 2px !important;
	margin-left: 2px !important;
}

/* Loading animation */
.afb-menu-loading .afb-menu-item {
    animation: afbPulse 1.5s ease-in-out infinite;
}

@keyframes afbPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(0.98);
    }
}

/* Entrance animation */
.afb-menu-item {
    animation: afbSlideIn 0.5s ease-out;
    animation-fill-mode: both;
}

@keyframes afbSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation */
.afb-menu-items .afb-menu-item:nth-child(1) { animation-delay: 0.1s; }
.afb-menu-items .afb-menu-item:nth-child(2) { animation-delay: 0.2s; }
.afb-menu-items .afb-menu-item:nth-child(3) { animation-delay: 0.3s; }
.afb-menu-items .afb-menu-item:nth-child(4) { animation-delay: 0.4s; }
.afb-menu-items .afb-menu-item:nth-child(5) { animation-delay: 0.5s; }
.afb-menu-items .afb-menu-item:nth-child(6) { animation-delay: 0.6s; }

/* إصلاحات إضافية لتثبيت التوجيه */
.afb-menu-toggle {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* التأكد من أن التوجيه لا يتأثر بأي شيء */
.afb-menu-item.afb-menu-parent {
    overflow: visible !important;
}

/* No Menu Message */
.afb-menu-no-menu {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 0;
    border: 2px dashed #e0e0e0;
    border-radius: var(--afb-border-radius);
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    box-shadow: var(--afb-shadow);
}

.afb-menu-no-menu i {
    display: block;
    font-size: 48px;
    margin-bottom: 15px;
    color: #ddd;
    opacity: 0.7;
}

/* إصلاح للطباعة */
@media print {
    .afb-menu-toggle {
        display: none !important;
    }
    
    .afb-submenu {
        display: block !important;
        max-height: none !important;
        opacity: 1 !important;
    }
}

/* إصلاحات JavaScript */
.afb-vertical-menu {
    /* Ensure proper event handling */
    pointer-events: auto;
}

.afb-menu-toggle {
    /* Ensure button is clickable */
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Submenu states */
.afb-submenu {
    display: none;
    transition: all var(--afb-animation-speed) ease;
}

.afb-menu-parent.active > .afb-submenu,
.afb-menu-parent.afb-submenu-open > .afb-submenu {
    display: block !important;
}

/* Prevent text selection on toggle */
.afb-menu-toggle {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* تنسيقات سهم plus/minus */
.afb-arrow-plus .afb-toggle-icon {
    position: relative;
    width: 12px;
    height: 12px;
}

.afb-arrow-plus .afb-toggle-icon::before,
.afb-arrow-plus .afb-toggle-icon::after {
    content: '';
    position: absolute;
    background-color: currentColor;
    transition: all var(--afb-animation-speed) ease;
}

.afb-arrow-plus .afb-toggle-icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.afb-arrow-plus .afb-toggle-icon::after {
    width: 2px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.afb-menu-toggle[aria-expanded="true"] .afb-arrow-plus .afb-toggle-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

/* تنسيقات Color Picker في الأدمن */
.color-picker {
    width: 80px !important;
}

.color-picker.wp-picker-container {
    vertical-align: middle;
}

/* معاينة الألوان */
.color-preview-box {
    min-width: 150px;
    text-align: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}
[file content end]