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

html[dir="rtl"] .navbar-nav {
    padding-right: 0;
}

html[dir="rtl"] .ml-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

html[dir="rtl"] .text-left {
    text-align: right !important;
}

html[dir="rtl"] .text-right {
    text-align: left !important;
}

html[dir="rtl"] .text-lang-change {
    text-align: right !important;
}
html[dir="ltr"] .text-lang-change {
    text-align: left !important;
}

/* Language switcher */
.lang-switch {
    display: inline-block;
    margin-left: 15px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    color: #fff;
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* RTL specific margins and paddings */
html[dir="rtl"] .mr-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

html[dir="rtl"] .ml-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}
