/* IRANSans Font Configuration */

/* Font Face Definitions */
@font-face {
    font-family: 'IRANSans';
    src: url('../font/iransans-normal/woff2/IRANSansWeb.woff2') format('woff2'),
         url('../font/iransans-normal/woff/IRANSansWeb.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('../font/iransans-normal/woff2/IRANSansWeb_Bold.woff2') format('woff2'),
         url('../font/iransans-normal/woff/IRANSansWeb_Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('../font/iransans-normal/woff2/IRANSansWeb_Light.woff2') format('woff2'),
         url('../font/iransans-normal/woff/IRANSansWeb_Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('../font/iransans-normal/woff2/IRANSansWeb_Medium.woff2') format('woff2'),
         url('../font/iransans-normal/woff/IRANSansWeb_Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('../font/iransans-normal/woff2/IRANSansWeb_Black.woff2') format('woff2'),
         url('../font/iransans-normal/woff/IRANSansWeb_Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRANSans';
    src: url('../font/iransans-normal/woff2/IRANSansWeb_UltraLight.woff2') format('woff2'),
         url('../font/iransans-normal/woff/IRANSansWeb_UltraLight.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

/* Font Family Variables */
:root {
    --font-family-primary: 'IRANSans', 'Tahoma', 'Arial', sans-serif;
    --font-family-fallback: 'Tahoma', 'Arial', sans-serif;
}

/* Base Font Settings */
body {
    font-family: var(--font-family-primary);
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Font Weight Utilities */
.font-ultralight { font-weight: 200 !important; }
.font-light { font-weight: 300 !important; }
.font-normal { font-weight: normal !important; }
.font-medium { font-weight: 500 !important; }
.font-bold { font-weight: bold !important; }
.font-black { font-weight: 900 !important; }

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-primary);
    font-weight: bold;
    line-height: 1.2;
}

.navbar-brand {
    font-family: var(--font-family-primary);
    font-weight: bold;
}

.card-title {
    font-family: var(--font-family-primary);
    font-weight: bold;
}

.stats-number {
    font-family: var(--font-family-primary);
    font-weight: bold;
}

.btn {
    font-family: var(--font-family-primary);
    font-weight: 500;
}

.sidebar-menu a {
    font-family: var(--font-family-primary);
    font-weight: 500;
}

.sidebar-menu a.active {
    font-family: var(--font-family-primary);
    font-weight: bold;
}

.table th {
    font-family: var(--font-family-primary);
    font-weight: bold;
}

.badge {
    font-family: var(--font-family-primary);
    font-weight: 500;
}

/* Form Elements */
input, textarea, select, button {
    font-family: var(--font-family-primary);
}

/* Font Loading Optimization */
.font-loading {
    font-display: swap;
}

/* RTL Text Rendering */
[dir="rtl"] {
    font-family: var(--font-family-primary);
}

/* Print Styles */
@media print {
    * {
        font-family: var(--font-family-primary) !important;
    }
} 