/* ==========================
   Vazir Font (Perfex CRM)
   ========================== */

/* 1) Load font (Farsi Digits version) */
@font-face {
  font-family: "Vazir";
  src: url("../fonts/vazir/Vazir-Regular-FD.woff2") format("woff2"),
       url("../fonts/vazir/Vazir-Regular-FD.woff") format("woff"),
       url("../fonts/vazir/Vazir-Regular-FD.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazir";
  src: url("../fonts/vazir/Vazir-Medium-FD.woff2") format("woff2"),
       url("../fonts/vazir/Vazir-Medium-FD.woff") format("woff"),
       url("../fonts/vazir/Vazir-Medium-FD.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazir";
  src: url("../fonts/vazir/Vazir-Bold-FD.woff2") format("woff2"),
       url("../fonts/vazir/Vazir-Bold-FD.woff") format("woff"),
       url("../fonts/vazir/Vazir-Bold-FD.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazir";
  src: url("../fonts/vazir/Vazir-Light-FD.woff2") format("woff2"),
       url("../fonts/vazir/Vazir-Light-FD.woff") format("woff"),
       url("../fonts/vazir/Vazir-Light-FD.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* 2) Default UI font variable (used in some inline styles) */
:root {
  --fontara-font: "Vazir";
}

/* 3) Apply to whole CRM (text + form controls) */
html, body,
h1,h2,h3,h4,h5,h6,
p,span,div,a,li,td,th,label,
input,textarea,select,
.form-control {
  font-family: "Vazir", sans-serif !important;
}

/* Re-map the FA "Free 400" (regular) face to the solid woff2 so that icons
   which only exist in the Solid style (e.g. fa-plus, fa-users, fa-file-import)
   still render correctly when marked with .fa-regular / .far. */
@font-face {
  font-family: "Font Awesome 6 Free";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("../plugins/font-awesome/webfonts/fa-solid-900.woff2") format("woff2"),
       url("../plugins/font-awesome/webfonts/fa-solid-900.ttf") format("truetype");
}

/* Font Awesome icons must ALWAYS keep their own font (never the UI font) */
.fa, .fas, .far, .fab,
.fa-solid, .fa-regular, .fa-brands,
[class^="fa-"], [class*=" fa-"],
.fa:before, .fas:before, .far:before, .fab:before,
.fa-solid:before, .fa-regular:before, .fa-brands:before,
.fa-classic, .fa-kit {
  font-family: "Font Awesome 6 Free" !important;
  font-style: normal !important;
}
.fa-brands, .fab,
.fa-brands:before, .fab:before {
  font-family: "Font Awesome 6 Brands" !important;
}
.fa-solid, .fas,
.fa-solid:before, .fas:before {
  font-weight: 900 !important;
}
.fa-regular, .far,
.fa-regular:before, .far:before {
  font-weight: 900 !important;
}
.fa-brands, .fab,
.fa-brands:before, .fab:before {
  font-weight: 400 !important;
}
