/* --- تعریف فونت یکان بخ با فرمت‌های مختلف --- */
@font-face {
  font-family: "YekanBakh";
  src:
    url("/fonts/YekanBakh-Regular.woff2") format("woff2"),
    url("/fonts/YekanBakh-Regular.woff") format("woff"),
    url("/fonts/YekanBakh-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "YekanBakh";
  src:
    url("/fonts/YekanBakh-SemiBold.woff2") format("woff2"),
    url("/fonts/YekanBakh-SemiBold.woff") format("woff"),
    url("/fonts/YekanBakh-SemiBold.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "YekanBakh";
  src:
    url("/fonts/YekanBakh-Bold.woff2") format("woff2"),
    url("/fonts/YekanBakh-Bold.woff") format("woff"),
    url("/fonts/YekanBakh-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "YekanBakh";
  src:
    url("/fonts/YekanBakh-Black.woff2") format("woff2"),
    url("/fonts/YekanBakh-Black.woff") format("woff"),
    url("/fonts/YekanBakh-Black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

/* --- اعمال فونت به body و تنظیمات پایه --- */
body {
  font-family: "YekanBakh", sans-serif !important;
  font-weight: 400;
  direction: rtl;
}

/* --- اعمال صریح فونت به تمام عناصر --- */
*,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video,
input,
textarea,
select,
button,
option,
::placeholder, /* متن placeholder در input */
::before, /* محتوای قبل از عناصر */
::after {
  /* محتوای بعد از عناصر */
  font-family: "YekanBakh", sans-serif !important;
  direction: rtl !important;
}

/* --- تنظیم وزن فونت input و button --- */
input,
textarea,
select,
button {
  font-weight: inherit !important;
}

/* --- تنظیم وزن عناوین --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700 !important;
}

/* --- تنظیم وزن عناصر خاص --- */
.navbar-brand h1,
.stat-card h2,
.stat-card .count,
.btn-submit,
.panel h3,
.summary-list .date,
.data-table .food-name {
  font-weight: 700 !important;
}

/* --- تنظیم وزن متوسط برای برخی عناصر --- */
.stat-card .date {
  font-weight: 500 !important;
}

/* --- تنظیم وزن دکمه‌ها --- */
input[type="submit"],
input[type="button"],
button {
  font-weight: 700 !important;
}
