html[dir="rtl"] body,
html[dir="rtl"] .dropdown-menu,
html[dir="rtl"] .form-control,
html[dir="rtl"] .form-select,
html[dir="rtl"] .card,
html[dir="rtl"] .modal {
    text-align: right;
}

html[dir="rtl"] .dropdown-menu .ti-fw,
html[dir="rtl"] .nav-link .epanel-nav-main-icon,
html[dir="rtl"] .form-label i {
    margin-left: .35rem;
    margin-right: 0;
}

html[dir="rtl"] .dropdown-menu-end {
    --bs-position: start;
}

html[dir="rtl"] .epanel-user-label {
    margin-left: .25rem;
    margin-right: .4rem;
}

html[dir="rtl"] .input-group > :not(:first-child) {
    margin-left: 0;
}

/* Arapça yazı tipi (yerel, CDN yok): yalnız Arapça karakterler için indirilir. */
@font-face {
    font-family: "HP Noto Sans Arabic";
    src: url("../fonts/noto-sans-arabic-var.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

html[dir="rtl"] {
    --bs-body-font-family: "HP Inter", "HP Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] textarea {
    font-family: "HP Inter", "HP Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

/* Yön gösteren ikonlar sağdan sola düzende aynalanır (sayfalama, ok, ileri/geri). */
html[dir="rtl"] .ti-chevron-left,
html[dir="rtl"] .ti-chevron-right,
html[dir="rtl"] .ti-chevrons-left,
html[dir="rtl"] .ti-chevrons-right,
html[dir="rtl"] .ti-arrow-left,
html[dir="rtl"] .ti-arrow-right,
html[dir="rtl"] .ti-arrow-narrow-left,
html[dir="rtl"] .ti-arrow-narrow-right,
html[dir="rtl"] .ti-arrow-bar-left,
html[dir="rtl"] .ti-arrow-bar-right,
html[dir="rtl"] .ti-arrow-back-up,
html[dir="rtl"] .ti-arrow-forward-up,
html[dir="rtl"] .ti-caret-left,
html[dir="rtl"] .ti-caret-right,
html[dir="rtl"] .ti-corner-down-left,
html[dir="rtl"] .ti-corner-down-right,
html[dir="rtl"] .ti-logout,
html[dir="rtl"] .ti-login {
    transform: scaleX(-1);
}

/* Sayfalamadaki özel kural çifte ters çevirmesin. */
html[dir="rtl"] .pagination .ti-chevrons-left,
html[dir="rtl"] .pagination .ti-chevron-left,
html[dir="rtl"] .pagination .ti-chevron-right,
html[dir="rtl"] .pagination .ti-chevrons-right {
    transform: scaleX(-1);
}

/* Kod, URL, e-posta ve sayı alanları sağdan sola düzende de soldan sağa okunur. */
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="url"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="number"],
html[dir="rtl"] input[type="password"],
html[dir="rtl"] code,
html[dir="rtl"] pre,
html[dir="rtl"] .font-monospace {
    direction: ltr;
    text-align: left;
}
