/* ==================================
   خطوط المشروع العامة
   ================================== */

@font-face {
    font-family: "DINNextApp";
    src: url("/site/fonts/din-next-lt-w23-regular.ttf?v=20261204202430") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "HelveticaApp";
    src: url("/site/fonts/HelveticaNeue.ttc?v=20261204202430") format("collection");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

:root {
    --app-font-text: "HelveticaApp", Arial, Tahoma, sans-serif;
    --app-font-title: "DINNextApp", Tahoma, Arial, sans-serif;
    --app-font-size-base: 17px;
    --app-font-size-small: .78rem;
    --app-font-size-control: .84rem;
    --app-line-height: 1.65;
}

/* ==================================
   أحجام الخطوط العامة
   ================================== */

html {
    font-size: var(--app-font-size-base);
}

body {
    font-size: 1rem;
    line-height: var(--app-line-height);
}

/* ==================================
   النصوص العامة
   ================================== */

html,
body,
input,
select,
textarea,
button,
.btn,
.form-control,
.form-select,
.form-label,
.dropdown-menu,
.dropdown-item,
.table,
.alert,
.badge,
.nav-link,
.modal,
.modal-body,
.offcanvas,
.offcanvas-body,
.card-body,
p,
span,
label,
a,
li,
td,
th,
small,
strong {
    font-family: var(--app-font-text) !important;
}

/* ==================================
   جميع العناوين
   ================================== */

h1,
h2,
h3,
h4,
h5,
h6,
.page-title,
.section-title,
.card-title,
.card-header,
.modal-title,
.offcanvas-title,
.navbar-brand,
.dashboard-title,
.portal-title,
.toolbarx-title,
.accordion-button,
.dropdown-header,
legend {
    font-family: var(--app-font-title) !important;
}

/* ==================================
   تكبير النصوص الصغيرة والحقول
   ================================== */

small,
.small,
.form-text,
.text-muted.small {
    font-size: var(--app-font-size-small) !important;
}

input,
select,
textarea,
button,
.btn,
.form-control,
.form-select,
.form-label,
.dropdown-item {
    font-size: var(--app-font-size-control);
}

.table th,
.table td {
    font-size: .80rem;
}

/* الشاشات الكبيرة */
@media (min-width: 1400px) {
    html {
        font-size: 18px;
    }
}

/* الجوال */
@media (max-width: 576px) {
    html {
        font-size: 16px;
    }
}
