/**
 * LmsEg RTL Specific Styles
 * Enhances Arabic layout, typography, and directional behaviors
 */

html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] body {
  font-family: var(--font-arabic);
}

/* Bi-directional icon mirroring for arrows */
html[dir="rtl"] .bi-arrow-right::before {
  content: "\f12f"; /* bi-arrow-left */
}

html[dir="rtl"] .bi-arrow-left::before {
  content: "\f138"; /* bi-arrow-right */
}

html[dir="rtl"] .bi-chevron-right::before {
  content: "\f284"; /* bi-chevron-left */
}

html[dir="rtl"] .bi-chevron-left::before {
  content: "\f285"; /* bi-chevron-right */
}

/* Ensure breadcrumb dividers flip correctly */
html[dir="rtl"] .breadcrumb-item + .breadcrumb-item::before {
  float: right;
  padding-left: 0.5rem;
  padding-right: 0;
}
