/* RTL Support for Hebrew Language */
/* Note: Most RTL handling is done by bootstrap.rtl.min.css which is loaded
   conditionally for RTL languages in _Layout.cshtml. This file contains only
   custom overrides not handled by Bootstrap RTL. */


/* FontAwesome icon spacing in buttons */
html[dir="rtl"] .btn i.fas,
html[dir="rtl"] .btn i.far {
    margin-left: 0.5rem;
    margin-right: 0;
}

html[dir="rtl"] i.fas:first-child,
html[dir="rtl"] i.far:first-child {
    margin-left: 0.5rem;
    margin-right: 0;
}

html[dir="rtl"] i.fas:last-child,
html[dir="rtl"] i.far:last-child {
    margin-right: 0.5rem;
    margin-left: 0;
}

/* Language switcher specific styles */
.language-switcher {
    position: relative;
}

.language-switcher .btn {
    min-width: 100px;
}

.language-switcher .dropdown-menu {
    min-width: 100px;
}

/* Input field direction overrides */
html[dir="rtl"] input[type="text"],
html[dir="rtl"] input[type="password"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] textarea,
html[dir="rtl"] select {
    direction: rtl;
    text-align: right;
}

/* Number inputs should stay LTR */
html[dir="rtl"] input[type="number"] {
    direction: ltr;
    text-align: left;
}

/* Email inputs should stay LTR */
html[dir="rtl"] input[type="email"] {
    direction: ltr;
    text-align: left;
}

/* Date inputs should stay LTR */
html[dir="rtl"] input[type="date"],
html[dir="rtl"] input[type="datetime-local"] {
    direction: ltr;
    text-align: left;
}
