/**
 * ملف الخطوط المخصص
 * Custom Fonts File
 * نظام تتبع الشحنات - Shipment Tracking System
 */

/* استيراد خطوط تجوال جميلة */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* إعدادات الخطوط الأساسية */
:root {
    --font-primary: 'Cairo', 'Amiri', 'Noto Sans Arabic', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: 'Amiri', 'Cairo', 'Noto Sans Arabic', serif;
    --font-display: 'Cairo', 'Amiri', 'Noto Sans Arabic', serif;
}

/* خط تجوال للعناوين الرئيسية */
.main-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1.2;
    color: #2c3e50;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    letter-spacing: -0.5px;
}

/* خط تجوال للعناوين الفرعية */
.sub-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.3;
    color: #34495e;
    letter-spacing: -0.25px;
}

/* خط تجوال للنصوص المهمة */
.important-text {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2c3e50;
}

/* خط تجوال للعناوين الصغيرة */
.small-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.4;
    color: #2c3e50;
}

/* خط تجوال للنصوص العادية */
.normal-text {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    color: #5a6c7d;
}

/* خط تجوال للنصوص الصغيرة */
.small-text {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #6c757d;
}

/* خط تجوال للعناوين في البطاقات */
.card-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* خط تجوال للنصوص في البطاقات */
.card-text {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
    color: #5a6c7d;
}

/* خط تجوال للأزرار */
.btn {
    font-family: var(--font-primary);
    font-weight: 500;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

/* خط تجوال للنماذج */
.form-label {
    font-family: var(--font-primary);
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.95rem;
}

.form-control {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 0.95rem;
}

/* خط تجوال للجداول */
.table th {
    font-family: var(--font-primary);
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.table td {
    font-family: var(--font-primary);
    font-weight: 400;
    color: #5a6c7d;
    font-size: 0.9rem;
}

/* خط تجوال للتنبيهات */
.alert {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 0.95rem;
}

.alert h4 {
    font-family: var(--font-display);
    font-weight: 600;
    color: inherit;
    margin-bottom: 0.5rem;
}

/* خط تجوال للشارات */
.badge {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.75rem;
}

/* خط تجوال للعناوين في الشريط الجانبي */
.sidebar h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.sidebar h2 {
    font-family: var(--font-display);
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.sidebar .lead {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* خط تجوال للعناوين في الإحصائيات */
.stats-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.stats-card p {
    font-family: var(--font-primary);
    font-weight: 400;
    color: #5a6c7d;
    margin-bottom: 0;
}

/* خط تجوال للعناوين في الجدول الزمني */
.timeline-content h6 {
    font-family: var(--font-display);
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.timeline-content p {
    font-family: var(--font-primary);
    font-weight: 400;
    color: #5a6c7d;
    margin-bottom: 0;
}

/* خط تجوال للعناوين في القوائم */
.list-group-item h6 {
    font-family: var(--font-display);
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.list-group-item p {
    font-family: var(--font-primary);
    font-weight: 400;
    color: #5a6c7d;
    margin-bottom: 0;
}

/* خط تجوال للعناوين في التذييل */
footer h5 {
    font-family: var(--font-display);
    font-weight: 600;
    color: #2c3e50;
}

footer p {
    font-family: var(--font-primary);
    font-weight: 400;
    opacity: 0.8;
}

/* خط تجوال للعناوين في النماذج */
.modal-title {
    font-family: var(--font-display);
    font-weight: 600;
    color: #2c3e50;
}

/* خط تجوال للعناوين في التنقل */
.navbar-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    transition: color 0.15s ease-in-out;
}

/* خط تجوال للعناوين في الجداول */
.table-responsive h5 {
    font-family: var(--font-display);
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* خط تجوال للعناوين في البطاقات */
.card-header h5 {
    font-family: var(--font-display);
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

/* تحسينات للعناوين العامة */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.75rem; font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 600; }
h5 { font-size: 1.25rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

/* تحسينات للخطوط في الأجهزة المحمولة */
@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }
    
    .sub-title {
        font-size: 1.25rem;
    }
    
    .sidebar h1 {
        font-size: 2.5rem;
    }
    
    .sidebar .lead {
        font-size: 1rem;
    }
}

/* تحسينات للخطوط في الطباعة */
@media print {
    .main-title,
    .sub-title,
    .important-text,
    .card-title,
    .card-text {
        color: #000 !important;
    }
    
    .sidebar h1,
    .sidebar h2,
    .sidebar .lead {
        color: #000 !important;
        text-shadow: none !important;
    }
}
