/*
 * خط الموقع: Droid Arabic Kufi
 * القالب يستخدم "Droid-Arabic-Kufi" لكنه لم يعرّف ملفات الخط، فكان المتصفح يعرض خط النظام.
 * ملفات Droid Kufi الأصلية لم تعد متوفرة لدى Google، واستمر الخط نفسه باسمه الجديد Noto Kufi Arabic
 * (من حزمة @fontsource/noto-kufi-arabic، رخصة SIL OFL) وهو المعرّف هنا بالاسمين.
 */
@font-face {
    font-family: 'Droid-Arabic-Kufi';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/noto-kufi-arabic/noto-kufi-arabic-arabic-400-normal.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: 'Droid-Arabic-Kufi';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/noto-kufi-arabic/noto-kufi-arabic-arabic-700-normal.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: 'Droid-Arabic-Kufi';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/noto-kufi-arabic/noto-kufi-arabic-latin-400-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Droid-Arabic-Kufi';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/noto-kufi-arabic/noto-kufi-arabic-latin-700-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* خط غامق في كل الموقع، مع إبقاء النص التوضيحي داخل الحقول عادياً */
body,
.select2-container,
.dropdown-menu,
.modal,
.toast,
.offcanvas {
    font-family: 'Droid-Arabic-Kufi', sans-serif;
    font-weight: 700;
}
input,
textarea,
select,
button {
    font-family: inherit;
}
::placeholder {
    font-weight: 400;
}

/* ---------- حقول الإدخال: نص داكن وغامق وحدود أوضح ---------- */
/* القالب يجعل بعض قوائم Select2 بخط سفلي فقط، فنعيد لها إطاراً كاملاً */
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    border: 1.5px solid #c3c9d2 !important;
    border-radius: 10px !important;
    min-height: 44px !important;
    height: auto !important;
    background-color: #fff !important;
    display: flex !important;
    align-items: center;
}
.select2-container .select2-selection--single .select2-selection__rendered {
    border: 0 !important;
    flex: 1;
    padding-inline: 12px 30px;
}
.select2-container .select2-selection--single .select2-selection__arrow {
    top: 50% !important;
    transform: translateY(-50%);
}
[data-theme-mode="dark"] .select2-container .select2-selection--single,
[data-theme-mode="dark"] .select2-container .select2-selection--multiple {
    border-color: #3a3f47 !important;
    background-color: #1b1e24 !important;
}
.form-control,
.form-select,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    color: #111827;
    font-weight: 700;
    font-size: 15px;
    background-color: #fff;
    border: 1.5px solid #c3c9d2;
    border-radius: 10px;
    min-height: 44px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #111827;
    font-weight: 700;
    line-height: 40px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; }
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    color: #111827;
    font-weight: 700;
    border-color: #c3c9d2;
    border-radius: 8px;
}
.select2-results__option { font-weight: 700; color: #1f2937; }
.form-control:focus,
.form-select:focus,
.select2-container--focus .select2-selection,
.select2-container--open .select2-selection {
    color: #111827;
    border-color: #4aa872 !important;
    box-shadow: 0 0 0 3px rgba(95, 191, 135, 0.22) !important;
}
.form-control::placeholder,
.select2-container--default .select2-selection__placeholder,
.select2-search__field::placeholder {
    color: #8b929c !important;
    font-weight: 400;
    opacity: 1;
}
.form-control:disabled,
.form-control[readonly],
.form-select:disabled {
    background-color: #f1f3f5;
    color: #374151;
}
.form-label,
label {
    color: #1f2937;
    font-weight: 700;
}

[data-theme-mode="dark"] .form-control,
[data-theme-mode="dark"] .form-select,
[data-theme-mode="dark"] .select2-container--default .select2-selection--single,
[data-theme-mode="dark"] .select2-container--default .select2-selection--multiple {
    color: #f3f4f6;
    background-color: #1b1e24;
    border-color: #3a3f47;
}
[data-theme-mode="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered,
[data-theme-mode="dark"] .form-control:focus,
[data-theme-mode="dark"] .form-select:focus { color: #f3f4f6; }
[data-theme-mode="dark"] .form-control:disabled,
[data-theme-mode="dark"] .form-control[readonly] { background-color: #23272e; color: #d1d5db; }
[data-theme-mode="dark"] .form-label,
[data-theme-mode="dark"] label { color: #e5e7eb; }
