/* ==========================================================================
   Peoplyra — RTL
   Layout mirrors automatically because the codebase uses CSS logical
   properties (margin-inline-*, inset-inline-*, text-align: start …) and
   bootstrap.rtl.min.css is swapped in by theme-init.js / theme.js.
   This file only holds what logical properties cannot express.
   ========================================================================== */

/* Directional icons: add .icon-flip to arrows/chevrons that point along the reading axis */
[dir="rtl"] .icon-flip { transform: scaleX(-1); }

/* Latin-script values inside RTL text keep a natural bidi order */
[dir="rtl"] input[type="email"],
[dir="rtl"] input[type="url"],
[dir="rtl"] input[type="tel"] { unicode-bidi: plaintext; text-align: start; }
[dir="rtl"] .tabular, [dir="rtl"] .kpi-value, [dir="rtl"] code { unicode-bidi: plaintext; }

/* The OTP boxes always read left-to-right (digits) */
.otp { direction: ltr; }

/* Mobile off-canvas slides in from the right */
@media (max-width: 991.98px) {
  [dir="rtl"] .app-sidebar { transform: translateX(100%); }
  [dir="rtl"] .app-sidebar.is-open { transform: none; }
}

/* Brand panel decorative glow mirrors */
[dir="rtl"] .auth-side::before {
  background:
    radial-gradient(60% 50% at 15% 10%, rgba(99, 102, 241, .45), transparent 70%),
    radial-gradient(50% 45% at 100% 100%, rgba(56, 189, 248, .18), transparent 70%);
}

/* Sorting caret & dropdown carets need no flip; progress bars fill from the right automatically */
[dir="rtl"] .progress-bar { transition: width .6s ease; }
[dir="rtl"] .toast-region { inset-inline-end: 1rem; }
