/* 
 * خطوط عربية جميلة للمنظومة المدرسية
 * Arabic Fonts for School Management System
 * تطبيق موحد للخطوط عبر جميع صفحات النظام
 */

/* استيراد الخطوط من Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&family=Tajawal:wght@300;400;500;700&display=swap');

/* تطبيق الخط الأساسي على الجسم */
body {
    font-family: 'Cairo', 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* العناوين */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
}

/* العناصر التفاعلية */
.btn {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: 0.2px;
}

/* النماذج */
.form-control, .form-select, .form-check-label, .form-label {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
    font-weight: 400 !important;
}

/* الجداول */
.table, .table th, .table td {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
}

.table th {
    font-weight: 600 !important;
}

.table td {
    font-weight: 400 !important;
}

/* البطاقات */
.card {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
}

.card-title {
    font-weight: 600 !important;
}

.card-text {
    font-weight: 400 !important;
}

/* التنبيهات */
.alert {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
    font-weight: 400 !important;
}

/* القوائم */
.nav-link, .dropdown-item {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
    font-weight: 500 !important;
    letter-spacing: 0.2px;
}

/* النصوص المميزة */
.fw-bold, .font-weight-bold {
    font-weight: 600 !important;
}

.fw-normal, .font-weight-normal {
    font-weight: 400 !important;
}

.fw-light, .font-weight-light {
    font-weight: 300 !important;
}

/* التسميات والشارات */
.badge, .label {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
    font-weight: 500 !important;
}

/* النصوص الصغيرة */
small, .small {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
    font-weight: 400 !important;
}

/* الروابط */
a {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
    font-weight: 400 !important;
}

/* النصوص في الأزرار */
.btn-primary, .btn-secondary, .btn-success, .btn-danger, .btn-warning, .btn-info, .btn-light, .btn-dark {
    font-weight: 500 !important;
}

/* تحسين القراءة للنصوص الطويلة */
p, .text-content {
    line-height: 1.6;
    letter-spacing: 0.1px;
}

/* تحسين للعناصر التفاعلية */
.form-control:focus, .form-select:focus {
    font-weight: 400 !important;
}

/* تحسين للقوائم المنسدلة */
.dropdown-menu {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
}

.dropdown-header {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
}

/* تحسين للتبويبات */
.nav-tabs .nav-link, .nav-pills .nav-link {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
    font-weight: 500 !important;
}

/* تحسين للنماذج المتقدمة */
.input-group-text {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
    font-weight: 400 !important;
}

/* تحسين للمودال */
.modal-title {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
    font-weight: 600 !important;
}

.modal-body {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
    font-weight: 400 !important;
}

/* تحسين للتقدم */
.progress {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
}

/* تحسين للتوست */
.toast {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
}

/* تحسين للأكورديون */
.accordion-button {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
    font-weight: 500 !important;
}

.accordion-body {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
    font-weight: 400 !important;
}

/* تحسين للتنقل */
.breadcrumb-item {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
    font-weight: 400 !important;
}

/* تحسين للتصفح */
.pagination .page-link {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
    font-weight: 400 !important;
}

/* تحسين للعناصر المخصصة */
.widget-box {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
}

.stat-card {
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
}

/* تحسين للطباعة */
@media print {
    body, h1, h2, h3, h4, h5, h6, p, div, span, table, th, td {
        font-family: 'Cairo', 'Tajawal', sans-serif !important;
    }
}

/* تحسين للشاشات الصغيرة */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
    }
}

/* تحسين للشاشات الكبيرة */
@media (min-width: 1200px) {
    body {
        font-size: 16px;
        line-height: 1.6;
    }
}