html[dir="rtl"] .page-content {
    margin-left: 0;
    margin-right: var(--size-side-left, 250px);
}

html[dir="rtl"] .sidebar-container.collapsed~.page-content {
    margin-right: var(--scaled-80, 80px);
}

html[dir="rtl"] nav.fixed {
    right: var(--size-side-left, 250px);
    left: 0;
    width: calc(100% - var(--size-side-left, 250px));
}

html[dir="rtl"] .sidebar-container.collapsed~nav.fixed {
    right: var(--scaled-80, 80px);
    left: 0;
    width: calc(100% - var(--scaled-80, 80px));
}

html[dir="rtl"] #sidebar {
    border-right: 1px solid #e5e7eb;
    border-left: 0;
}

html[dir="rtl"] .text-left {
    text-align: right !important;
}

html[dir="rtl"] .text-right {
    text-align: left !important;
}

html[dir="rtl"] .border-l-2 {
    border-left-width: 0 !important;
    border-right-width: 2px !important;
}

html[dir="rtl"] .border-l {
    border-left-width: 0 !important;
    border-right-width: 1px !important;
}

html[dir="rtl"],
html[dir="rtl"] body,
html[dir="rtl"] * {
    font-family: 'Tajawal', 'Segoe UI', 'Arial', 'Tahoma', sans-serif;
}


/* Ensure Material Symbols icons always use the correct font, even in RTL */

html[dir="rtl"] .material-symbols-outlined,
html[dir="rtl"] .material-symbols-outlined *,
html[dir="rtl"] i.material-symbols-outlined,
html[dir="rtl"] span.material-symbols-outlined {
    font-family: 'Material Symbols Outlined' !important;
    direction: ltr !important;
    font-feature-settings: 'liga' !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}


/* Ensure FontAwesome icons always use the correct font, even in RTL */

html[dir="rtl"] .fa,
html[dir="rtl"] .fas,
html[dir="rtl"] .fa-solid,
html[dir="rtl"] i[class*="fa-"],
html[dir="rtl"] i[class^="fas"],
html[dir="rtl"] i[class^="fa-"]:not([class*="fa-brands"]):not([class*="fa-regular"]) {
    font-family: "Font Awesome 6 Free" !important;
    direction: ltr !important;
    font-weight: 900 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: auto !important;
    font-style: normal !important;
    font-variant: normal !important;
    line-height: 1 !important;
}

html[dir="rtl"] .far,
html[dir="rtl"] .fa-regular,
html[dir="rtl"] i[class^="far"] {
    font-family: "Font Awesome 6 Free" !important;
    direction: ltr !important;
    font-weight: 400 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: auto !important;
    font-style: normal !important;
    font-variant: normal !important;
    line-height: 1 !important;
}

html[dir="rtl"] .fab,
html[dir="rtl"] .fa-brands,
html[dir="rtl"] i[class^="fab"],
html[dir="rtl"] i[class*="fa-brands"] {
    font-family: "Font Awesome 6 Brands" !important;
    direction: ltr !important;
    font-weight: 400 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: auto !important;
    font-style: normal !important;
    font-variant: normal !important;
    line-height: 1 !important;
}