/* 1. تعریف فونت Vazirmatn بر اساس فایل‌های موجود در پوشه fonts */

/* حالت معمولی (Regular) */
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/vazir/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* حالت ضخیم (Bold) */
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/vazir/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* حالت لایت (Light) */
@font-face {
    font-family: 'Vazirmatn';
    src: url('fonts/vazir/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* 2. جایگزینی فونت در کل برنامه */

/* طبق فایل app.all.css که فرستادی، اسکریپت از "Open Sans" استفاده می‌کند.
با کد زیر، در تمام بخش‌ها فونت وزیر را جایگزین می‌کنیم.
*/

html, body, 
.card-title, 
.modal-title, 
.btn, 
.form-control, 
.table, 
.datatable,
h1, h2, h3, h4, h5, h6, 
p, span, a, div {
    font-family: 'Vazirmatn', 'Open Sans', sans-serif !important;
}

/* بهینه سازی برای زبان فارسی */
body {
    direction: rtl;
    text-align: right;
}

/* اگر در بخش‌هایی اعداد هنوز انگلیسی هستند یا فونت عوض نشده */
input, textarea, select, button {
    font-family: 'Vazirmatn', sans-serif !important;
}