/* RTL and Vazir font styles */
html, body {
    font-family: 'Vazir', Tahoma, Arial, sans-serif !important;
    direction: rtl;
}

/* Fix Bootstrap RTL issues */
.dropdown-menu {
    text-align: right;
}

.form-group label {
    text-align: right;
}

.float-end {
    float: left !important;
}

.float-start {
    float: right !important;
}

.offset-md-2 {
    margin-right: 16.666667%;
    margin-left: 0;
}

.col-md-10 {
    margin-right: 0;
}

/* Fix Bootstrap button spacing in RTL */
.btn-group > .btn:not(:last-child):not(.dropdown-toggle),
.btn-group > .btn-group:not(:last-child) > .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.btn-group > .btn:not(:first-child),
.btn-group > .btn-group:not(:first-child) > .btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

/* Add some spacing for RTL text */
h1, h2, h3, h4, h5, h6, p, span, div, a, button, input, select, textarea {
    letter-spacing: 0.5px;
}

/* Fix table alignment */
.table th, .table td {
    text-align: right;
}

/* Fix form validation messages */
.field-validation-error {
    float: right;
}

/* Fix nav tabs in RTL */
.nav-tabs {
    padding-right: 0;
}

/* Fix pagination in RTL */
.pagination {
    padding-right: 0;
} 