/* 
 * نسخة احتياطية محلية من Font Awesome
 * تُستخدم عندما لا يمكن تحميل النسخة من CDN
 */

/* تحميل خط Font Awesome من CDN مع fallback محلي */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

/* نسخة احتياطية محلية - سيتم استخدامها إذا فشل التحميل من CDN */
@font-face {
    font-family: 'Font Awesome 5 Free';
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: local('Font Awesome 5 Free'), local('FontAwesome5Free-Regular'),
         url('fonts/fa-regular-400.woff2') format('woff2'),
         url('fonts/fa-regular-400.woff') format('woff');
}

@font-face {
    font-family: 'Font Awesome 5 Free';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: local('Font Awesome 5 Free'), local('FontAwesome5Free-Solid'),
         url('fonts/fa-solid-900.woff2') format('woff2'),
         url('fonts/fa-solid-900.woff') format('woff');
}

/* تطبيق الخط على كلاسات Font Awesome */
.fas {
    font-family: 'Font Awesome 5 Free', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    display: inline-block;
}

.far {
    font-family: 'Font Awesome 5 Free', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    display: inline-block;
}

.fa {
    font-family: 'Font Awesome 5 Free', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    display: inline-block;
}

/* إضافة محتوى للأيقونات المستخدمة */
.fa-chart-line:before { content: "\f201"; }
.fa-file-invoice:before { content: "\f570"; }
.fa-check-circle:before { content: "\f058"; }
.fa-clock:before { content: "\f017"; }
.fa-users:before { content: "\f0c0"; }
.fa-percentage:before { content: "\f295"; }
.fa-external-link-alt:before { content: "\f35d"; }
.fa-calendar-alt:before { content: "\f073"; }
.fa-dollar-sign:before { content: "\f155"; }
.fa-arrow-up:before { content: "\f062"; }
.fa-arrow-down:before { content: "\f063"; }
.fa-equals:before { content: "\f52c"; }
.fa-refresh:before { content: "\f021"; }
.fa-download:before { content: "\f019"; }
.fa-print:before { content: "\f02f"; }
.fa-calculator:before { content: "\f1ec"; }
.fa-list-alt:before { content: "\f022"; }
.fa-plus-circle:before { content: "\f055"; }
.fa-chart-bar:before { content: "\f080"; }
.fa-lock:before { content: "\f023"; }
.fa-inbox:before { content: "\f01c"; }
.fa-folder-open:before { content: "\f07c"; }
.fa-chevron-down:before { content: "\f078"; }
.fa-file-alt:before { content: "\f15c"; }
.fa-eye:before { content: "\f06e"; }
.fa-edit:before { content: "\f044"; }
.fa-coins:before { content: "\f51e"; }
.fa-info-circle:before { content: "\f05a"; }
.fa-file-pdf:before { content: "\f1c1"; }
.fa-sync:before { content: "\f021"; }
.fa-sync-alt:before { content: "\f2f1"; }

/* تحسينات للعرض */
.fa-lg { font-size: 1.33333em; line-height: 0.75em; vertical-align: -0.0667em; }
.fa-xs { font-size: 0.75em; }
.fa-sm { font-size: 0.875em; }
.fa-1x { font-size: 1em; }
.fa-2x { font-size: 2em; }
.fa-3x { font-size: 3em; }

/* تحسين العرض في حاويات الإحصائيات */
.dmp-stat-icon-modern .fas,
.dmp-stat-icon-modern .far,
.dmp-stat-icon-modern .fa,
.dmp-stat-icon .fas,
.dmp-stat-icon .far,
.dmp-stat-icon .fa {
    font-size: 1.5rem;
    line-height: 1;
    display: inline-block;
}

/* معالجة خاصة للحالات التي لا يتم فيها تحميل الخط */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .fas:before, .far:before, .fa:before {
        font-family: 'Font Awesome 5 Free', -apple-system, BlinkMacSystemFont, sans-serif !important;
    }
}
