/**
 * RTL (Right-to-Left) Styles for Arabic
 * 
 * @package QMS
 */

/* Base RTL adjustments */
html[dir="rtl"],
body.rtl {
    direction: rtl;
    text-align: right;
}

/* Layout adjustments */
.rtl .container {
    direction: rtl;
}

.rtl .flex-row-reverse {
    flex-direction: row-reverse;
}

/* Text alignment */
.rtl {
    text-align: right;
}

.rtl .text-left {
    text-align: right !important;
}

.rtl .text-right {
    text-align: left !important;
}

/* Margin and padding adjustments */
.rtl .me-2 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

.rtl .ms-2 {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

.rtl .ps-3 {
    padding-right: 1rem !important;
    padding-left: 0 !important;
}

.rtl .pe-3 {
    padding-left: 1rem !important;
    padding-right: 0 !important;
}

/* Navigation */
.rtl .navbar-nav {
    direction: rtl;
}

.rtl .dropdown-menu {
    text-align: right;
}

/* Buttons and icons */
.rtl .group-hover\:translate-x-2:hover {
    transform: translateX(-0.5rem);
}

/* Bootstrap adjustments */
.rtl .dropdown-menu-end {
    right: auto;
    left: 0;
}

.rtl .navbar-brand {
    margin-right: 0;
    margin-left: 1rem;
}

/* Flexbox adjustments */
.rtl .justify-start {
    justify-content: flex-end;
}

.rtl .justify-end {
    justify-content: flex-start;
}

/* Border adjustments */
.rtl .border-l {
    border-left: none;
    border-right: 1px solid;
}

.rtl .border-r {
    border-right: none;
    border-left: 1px solid;
}

.rtl .border-x {
    border-left: 1px solid;
    border-right: 1px solid;
}

/* Language switcher */
.rtl .language-switcher {
    direction: rtl;
}

/* Footer adjustments */
.rtl footer ul {
    direction: rtl;
}

/* Form adjustments */
.rtl input[type="search"],
.rtl input[type="text"],
.rtl textarea {
    direction: rtl;
    text-align: right;
}

/* Add more RTL specific adjustments as needed */

