/* RTL-specific overrides for Arabic, Hebrew, Persian, Urdu */

/* RTL font family */
.font-rtl {
    font-family: 'Noto Sans Arabic', 'Noto Sans Hebrew', system-ui, sans-serif;
}

/* RTL font adjustments for legibility */
[dir="rtl"] {
    font-size: 1.05em;
    line-height: 1.8;
}

/* Sidebar positioning for RTL */
[dir="rtl"] .glass-sidebar {
    left: auto;
    right: 0;
}

/* Sidebar slide direction: push off-screen RIGHT in RTL */
[dir="rtl"] #sidebar.-translate-x-full {
    --tw-translate-x: 100%;
}

/* Icon mirroring -- some icons (arrows, chevrons) should flip in RTL */
[dir="rtl"] .icon-flip {
    transform: scaleX(-1);
}

/* Fix for notification badge positioning in RTL */
[dir="rtl"] .notification-badge {
    left: auto;
    right: -0.25rem;
}

/* Mobile bottom nav safe area */
[dir="rtl"] .glass-nav {
    left: 0;
    right: 0;
}

/* Fix for absolute/fixed positioned elements that use directional classes */
[dir="rtl"] .helpbot-toggle {
    left: 1rem;
    right: auto;
}

/* Language-specific font size adjustments */
.lang-ja { font-size: 0.95em; }
.lang-zh { font-size: 0.95em; }
.lang-ko { font-size: 0.95em; }
.lang-th { line-height: 2; }
