﻿/* ==================================
   تحميل خط Cairo
   يجب أن يكون أول سطر في الملف
================================== */

@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap");


/* ==================================
   خطوط المشروع العامة
================================== */

@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: "Cairo", Tahoma, Arial, sans-serif;
    /* العناوين */
    --app-font-title: "DINNextApp", "Cairo", 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);
}


/* النصوص الصغيرة */
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;
}


/* ==================================
   النصوص العامة
================================== */

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;
}


/* ==================================
   الشاشات الكبيرة
================================== */

@media (min-width: 1400px) {
    html {
        font-size: 18px;
    }
}


/* ==================================
   الجوال
================================== */

@media (max-width: 576px) {
    html {
        font-size: 16px;
    }
}
