/* فونت Vazir - تمام وزن‌ها و فرمت‌ها */
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Thin.eot');
    src: url('../fonts/Vazir-Thin.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Vazir-Thin.woff2') format('woff2'),
         url('../fonts/Vazir-Thin.woff') format('woff'),
         url('../fonts/Vazir-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Light.eot');
    src: url('../fonts/Vazir-Light.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Vazir-Light.woff2') format('woff2'),
         url('../fonts/Vazir-Light.woff') format('woff'),
         url('../fonts/Vazir-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir.eot');
    src: url('../fonts/Vazir.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Vazir.woff2') format('woff2'),
         url('../fonts/Vazir.woff') format('woff'),
         url('../fonts/Vazir.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Vazir-Regular - اگر فایل وجود نداشت، از Vazir استفاده می‌شود */

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Medium.eot');
    src: url('../fonts/Vazir-Medium.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Vazir-Medium.woff2') format('woff2'),
         url('../fonts/Vazir-Medium.woff') format('woff'),
         url('../fonts/Vazir-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Bold.eot');
    src: url('../fonts/Vazir-Bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Vazir-Bold.woff2') format('woff2'),
         url('../fonts/Vazir-Bold.woff') format('woff'),
         url('../fonts/Vazir-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Vazir-Black - اگر فایل وجود نداشت، از Vazir-Bold استفاده می‌شود */
@font-face {
    font-family: 'Vazir';
    src: url('../fonts/Vazir-Bold.eot');
    src: url('../fonts/Vazir-Bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/Vazir-Bold.woff2') format('woff2'),
         url('../fonts/Vazir-Bold.woff') format('woff'),
         url('../fonts/Vazir-Bold.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* تنظیمات فونت برای بخش‌های مختلف */
:root {
    --font-family-base: 'Vazir', 'Tahoma', 'Arial', sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    --font-weight-black: 900;
}

/* فونت پیش‌فرض برای body */
body {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-normal);
}

/* فونت برای تمام عناصر */
* {
    font-family: var(--font-family-base);
}

/* تیترها */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-bold);
}

h1, .h1 {
    font-weight: var(--font-weight-black);
}

h2, .h2 {
    font-weight: var(--font-weight-bold);
}

h3, .h3, h4, .h4 {
    font-weight: var(--font-weight-medium);
}

h5, .h5, h6, .h6 {
    font-weight: var(--font-weight-normal);
}

/* Navbar */
.navbar,
.navbar-brand,
.nav-link {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-medium);
}

.navbar-brand {
    font-weight: var(--font-weight-bold);
}

/* دکمه‌ها */
.btn {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-medium);
}

.btn-primary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info {
    font-weight: var(--font-weight-medium);
}

/* فرم‌ها */
.form-label,
.form-control,
.form-text,
input,
textarea,
select {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-normal);
}

.form-label {
    font-weight: var(--font-weight-medium);
}

/* جداول */
.table,
.table th,
.table td {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-normal);
}

.table th {
    font-weight: var(--font-weight-medium);
}

/* کارت‌ها */
.card,
.card-title,
.card-text {
    font-family: var(--font-family-base);
}

.card-title {
    font-weight: var(--font-weight-bold);
}

.card-text {
    font-weight: var(--font-weight-normal);
}

/* Alert */
.alert {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-normal);
}

.alert strong {
    font-weight: var(--font-weight-bold);
}

/* Badge */
.badge {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-medium);
}

/* Footer */
.footer {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-light);
}

/* متن‌های کوچک */
small,
.text-muted,
.form-text {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-light);
}

/* متن‌های قوی */
strong,
b,
.fw-bold {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-bold);
}

/* کد */
code,
pre,
kbd,
samp {
    font-family: 'Vazir', 'Courier New', monospace;
    font-weight: var(--font-weight-normal);
}

/* Bootstrap Override */
.bootstrap-override * {
    font-family: var(--font-family-base) !important;
}

/* آمار و اعداد */
.stat-value,
.stat-card h3 {
    font-family: var(--font-family-base);
}

.stat-value {
    font-weight: var(--font-weight-black);
}

.stat-card h3 {
    font-weight: var(--font-weight-light);
}

/* صفحه لاگین */
.login-box h2 {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-bold);
}

.login-box p {
    font-family: var(--font-family-base);
    font-weight: var(--font-weight-light);
}

