/* تطبيق خط Cairo على النصوص مع استثناء الأيقونات */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap');

/* تطبيق الخط على العناصر النصية */
body,
h1, h2, h3, h4, h5, h6,
p, span, div, a, button, input, textarea, select, label,
table, th, td, li, ul, ol,
.navbar, .card, .btn,
.rtl, .ltr,
.rtl *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not(.material-icons):not([class*="icon"]):not([class*="Icon"]):not([class*="icofont"]):not([class*="ti-"]):not([class*="feather"]) {
    font-family: 'Cairo', sans-serif !important;
}

/* تنسيقات RTL افتراضية */
html[dir="rtl"] {
    text-align: right;
}

html[dir="rtl"] .me-2 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

html[dir="rtl"] .ms-2 {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

/* تنسيقات LTR للوحة التحكم */
body[data-sidebar-rtl="false"] {
    direction: ltr;
    text-align: left;
}

/* إصلاح تنسيقات Bootstrap RTL */
[dir="rtl"] .dropdown-menu-end {
    right: auto !important;
    left: 0 !important;
}

[dir="rtl"] .text-end {
    text-align: left !important;
}

[dir="rtl"] .text-start {
    text-align: right !important;
}
