
/* Visakargari - Global Persian font + RTL for authenticated panels */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100..900&display=swap');

html,
body,
body *,
button,
input,
textarea,
select,
option,
table,
th,
td,
label,
a {
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
}

/* Preserve Font Awesome icon fonts overridden by the rule above */
.fa,
.fas,
.far,
.fal,
.fad,
.fab {
    font-family: "Font Awesome 6 Free" !important;
}

.fab {
    font-family: "Font Awesome 6 Brands" !important;
}

.far {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}

.fas {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

html,
body {
    direction: rtl !important;
    text-align: right !important;
}

body {
    font-size: 14px;
}

/* Forms */
input,
textarea,
select,
.form-control,
.form-select,
.form-check-label {
    direction: rtl !important;
    text-align: right !important;
}

input::placeholder,
textarea::placeholder {
    text-align: right !important;
    direction: rtl !important;
}

/* Tables */
table,
.table {
    direction: rtl !important;
}

th,
td {
    text-align: right !important;
}

/* Bootstrap / common UI elements */
.dropdown-menu,
.modal-content,
.card,
.alert,
.list-group,
.nav,
.pagination {
    direction: rtl;
    text-align: right;
}

.dropdown-menu {
    right: 0;
    left: auto;
}

.btn,
button {
    text-align: center !important;
}

/* Persian numbers and badges */
.badge,
.form-text,
small {
    font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
}

/* Keep icons from being affected by text alignment */
i,
svg {
    text-align: initial;
}

/* RTL utility */
[dir="ltr"] {
    direction: ltr !important;
    text-align: left !important;
}

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