/* فونت Vazir برای فارسی */
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/VazirFD.woff2') format('woff2'),
         url('../fonts/VazirFD.woff') format('woff'),
         url('../fonts/VazirFD.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Vazir', Tahoma, sans-serif !important;
    direction: rtl;
    text-align: right;
}

.navbar {
    font-family: 'Vazir', sans-serif;
}

.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.table th, .table td {
    vertical-align: middle;
    text-align: right;
}

.table-striped tbody tr:nth-of-type(odd) {
    --bs-table-accent-bg: rgba(0, 0, 0, 0.05);
}

.btn {
    font-family: 'Vazir', sans-serif;
    border-radius: 0.375rem;
}

.form-control, .form-select {
    font-family: 'Vazir', sans-serif;
    border-radius: 0.375rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    text-align: right;
    direction: rtl;
}

.select2-container--default .select2-selection--single {
    height: calc(2.25rem + 2px);
    padding: 0.375rem 0.75rem;
}

.alert {
    border-radius: 0.375rem;
    font-family: 'Vazir', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Vazir', sans-serif;
    font-weight: bold;
}

/* JalaliDatePicker RTL fix */
.pwt-datepicker {
    direction: rtl;
}

.pwt-datepicker .pwt-datepicker__header {
    text-align: center;
}

/* Custom for login */
.login-card {
    max-width: 400px;
    margin: 100px auto;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 0.5rem 0.5rem 0 0;
}