/* YekanBakh Font Family */
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakh/YekanBakhFaNum-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakh/YekanBakhFaNum-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakh/YekanBakhFaNum-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakh/YekanBakhFaNum-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakh/YekanBakhFaNum-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakh/YekanBakhFaNum-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/YekanBakh/YekanBakhFaNum-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Apply YekanBakh to the entire application */
body {
    font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
}

/* Ensure all text elements use YekanBakh */
h1, h2, h3, h4, h5, h6,
p, span, div, a, button, input, textarea, select,
label, small, strong, em, b, i,
.form-control, .btn, .alert, .card, .modal {
    font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
}

/* Specific weight classes for different elements */
.font-weight-thin { font-weight: 100; }
.font-weight-light { font-weight: 300; }
.font-weight-normal { font-weight: 400; }
.font-weight-medium { font-weight: 500; }
.font-weight-semibold { font-weight: 600; }
.font-weight-bold { font-weight: 700; }
.font-weight-extrabold { font-weight: 800; }
.font-weight-black { font-weight: 900; }

/* RTL Support for YekanBakh */
[dir="rtl"] {
    font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
}

/* Form elements with proper RTL support */
[dir="rtl"] .form-control {
    text-align: right;
    font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
}

[dir="rtl"] .form-control::placeholder {
    text-align: right;
    font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
}

/* Button styling with YekanBakh */
[dir="rtl"] .btn {
    font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
}

/* Headings with proper weight */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, 
[dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
    font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
    font-weight: 700;
}

/* Labels and form text */
[dir="rtl"] .form-label {
    font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
    font-weight: 600;
}

/* Alert messages */
[dir="rtl"] .alert {
    font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
}

/* Navigation and menu items */
[dir="rtl"] .navbar, [dir="rtl"] .nav-link {
    font-family: 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
}
