/* 1. تعريف الخط المخصص ومساره */
@font-face {
    font-family: 'MyCustomFont'; /* هذا هو الاسم الذي ستستخدمه برمجياً لاحقاً */
    src: url('../fonts/Hacen_Tunisia.ttf') format('truetype'); /* مسار الملف بالنسبة لملف الـ css */
    font-weight: normal;
    font-style: normal;
}

html {
    font-size: 12px !important; /* تصغير الخط في الجوال والشاشات الصغيرة */
}

@media (min-width: 768px) {
    html {
        font-size: 14px !important; /* تصغير الخط في الكمبيوتر والتابلت (كان 16) */
    }
}

/* تصغير خطوط القوائم المنسدلة، الحقول، الأزرار، وعناوين الحقول */
.form-control,
.form-select,
.dropdown-menu,
.dropdown-item,
.btn,
.form-label,
.input-group-text,
.table {
    font-size: 1rem !important; /* يعادل تقريباً 90% من حجم الخط الأساسي */
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}


    /* ==========================================
   قواعد الوضع الداكن (Dark Mode Styles)
   ========================================== */
    body.dark-mode,
    [data-bs-theme="dark"] body {
        background-color: #121212 !important;
        color: #e0e0e0 !important;
    }

        /* تحويل الكروت للوضع الداكن */
        body.dark-mode .card,
        [data-bs-theme="dark"] .card {
            background-color: #1e1e1e !important;
            color: #ffffff !important;
            border-color: #333333 !important;
        }

        /* تحويل حقول الإدخال والقوائم */
        body.dark-mode .form-control,
        body.dark-mode .form-select,
        body.dark-mode .input-group-text,
        [data-bs-theme="dark"] .form-control,
        [data-bs-theme="dark"] .form-select,
        [data-bs-theme="dark"] .input-group-text {
            background-color: #2b2b2b !important;
            color: #ffffff !important;
            border-color: #444444 !important;
        }

            /* معالجة الحقول المقفلة (Readonly) */
            body.dark-mode .form-control[readonly],
            [data-bs-theme="dark"] .form-control[readonly] {
                background-color: #181818 !important;
                color: #aaa !important;
            }

        /* معالجة الخلفيات المضيئة bg-light */
        body.dark-mode .bg-light,
        [data-bs-theme="dark"] .bg-light {
            background-color: #2b2b2b !important;
            color: #ffffff !important;
        }

        /* تحويل الجداول والقوائم المنسدلة */
        body.dark-mode .table,
        body.dark-mode .dropdown-menu,
        [data-bs-theme="dark"] .table,
        [data-bs-theme="dark"] .dropdown-menu {
            background-color: #1e1e1e !important;
            color: #ffffff !important;
        }

        body.dark-mode .text-muted,
        [data-bs-theme="dark"] .text-muted {
            color: #a0a0a0 !important;
        }