/**
 * RTL (Right-to-Left) Styles
 * تصميم RTL للغة العربية
 */

[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .breadcrumb-nav {
    direction: rtl;
}

[dir="rtl"] .topbar-right {
    flex-direction: row-reverse;
}

[dir="rtl"] .sidebar-nav .nav-link {
    text-align: right;
}

[dir="rtl"] .dropdown-menu {
    text-align: right;
}

[dir="rtl"] .dropdown-item {
    text-align: right;
}

/* إصلاح مشكلة القوائم المنسدلة في النماذج - RTL */
[dir="rtl"] .form-select {
    padding-right: 0.75rem;
    padding-left: 2.5rem;
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .form-select option {
    padding-right: 0.75rem;
    padding-left: 0.5rem;
    text-align: right;
    direction: rtl;
}

/* إصلاح مشكلة القطع في القوائم المنسدلة */
[dir="rtl"] select.form-select {
    overflow: visible !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[dir="rtl"] select.form-select option {
    padding: 0.5rem 0.75rem;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

[dir="rtl"] .stat-card-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .stat-card-footer {
    flex-direction: row-reverse;
}

[dir="rtl"] .analytics-card-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .table-card-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .table-card-body table {
    direction: rtl;
}

[dir="rtl"] .table-card-body th,
[dir="rtl"] .table-card-body td {
    text-align: right;
}

[dir="rtl"] .page-header h1,
[dir="rtl"] .page-header h2 {
    direction: rtl;
}

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

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

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

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

[dir="rtl"] .float-start {
    float: right !important;
}

[dir="rtl"] .float-end {
    float: left !important;
}

