/* إصلاح شامل لأيقونات Font Awesome */

/* تحديد خطوط Font Awesome */
@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-solid-900.woff2") format("woff2");
}

@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-regular-400.woff2") format("woff2");
}

@font-face {
    font-family: "Font Awesome 6 Brands";
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/webfonts/fa-brands-400.woff2") format("woff2");
}

/* إصلاح جميع أنواع الأيقونات */
.fas, .fa-solid,
.far, .fa-regular,
.fab, .fa-brands,
.fal, .fa-light,
.fad, .fa-duotone,
.fat, .fa-thin,
[class^="fa-"], [class*=" fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "FontAwesome" !important;
    font-weight: 900 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    text-decoration: none;
    speak: none;
}

/* أيقونات العلامات التجارية */
.fab, .fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* الأيقونات العادية */
.far, .fa-regular {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}

/* الأيقونات المصمتة */
.fas, .fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

/* إصلاح أيقونات محددة */
.fa-eye::before { content: "\f06e"; }
.fa-edit::before { content: "\f044"; }
.fa-trash::before { content: "\f2ed"; }
.fa-plus::before { content: "\f067"; }
.fa-save::before { content: "\f0c7"; }
.fa-times::before { content: "\f00d"; }
.fa-check::before { content: "\f00c"; }
.fa-arrow-right::before { content: "\f061"; }
.fa-arrow-left::before { content: "\f060"; }
.fa-home::before { content: "\f015"; }
.fa-user::before { content: "\f007"; }
.fa-cog::before { content: "\f013"; }
.fa-cogs::before { content: "\f085"; }
.fa-video::before { content: "\f03d"; }
.fa-desktop::before { content: "\f108"; }
.fa-building::before { content: "\f1ad"; }
.fa-list::before { content: "\f03a"; }
.fa-info-circle::before { content: "\f05a"; }
.fa-check-circle::before { content: "\f058"; }
.fa-upload::before { content: "\f093"; }
.fa-download::before { content: "\f019"; }
.fa-search::before { content: "\f002"; }
.fa-filter::before { content: "\f0b0"; }
.fa-sort::before { content: "\f0dc"; }
.fa-calendar::before { content: "\f133"; }
.fa-clock::before { content: "\f017"; }
.fa-bell::before { content: "\f0f3"; }
.fa-envelope::before { content: "\f0e0"; }
.fa-phone::before { content: "\f095"; }
.fa-map-marker::before { content: "\f041"; }
.fa-globe::before { content: "\f0ac"; }
.fa-wifi::before { content: "\f1eb"; }
.fa-signal::before { content: "\f012"; }
.fa-battery-full::before { content: "\f240"; }
.fa-volume-up::before { content: "\f028"; }
.fa-volume-mute::before { content: "\f6a9"; }
.fa-play::before { content: "\f04b"; }
.fa-pause::before { content: "\f04c"; }
.fa-stop::before { content: "\f04d"; }
.fa-forward::before { content: "\f04e"; }
.fa-backward::before { content: "\f04a"; }
.fa-step-forward::before { content: "\f051"; }
.fa-step-backward::before { content: "\f048"; }
.fa-eject::before { content: "\f052"; }
.fa-chevron-left::before { content: "\f053"; }
.fa-chevron-right::before { content: "\f054"; }
.fa-chevron-up::before { content: "\f077"; }
.fa-chevron-down::before { content: "\f078"; }
.fa-angle-left::before { content: "\f104"; }
.fa-angle-right::before { content: "\f105"; }
.fa-angle-up::before { content: "\f106"; }
.fa-angle-down::before { content: "\f107"; }
.fa-bars::before { content: "\f0c9"; }
.fa-th::before { content: "\f00a"; }
.fa-th-list::before { content: "\f00b"; }
.fa-th-large::before { content: "\f009"; }

/* أيقونات العلامات التجارية */
.fa-youtube::before { content: "\f167"; }
.fa-facebook::before { content: "\f09a"; }
.fa-twitter::before { content: "\f099"; }
.fa-instagram::before { content: "\f16d"; }
.fa-linkedin::before { content: "\f08c"; }
.fa-whatsapp::before { content: "\f232"; }
.fa-telegram::before { content: "\f2c6"; }
.fa-snapchat::before { content: "\f2ab"; }
.fa-tiktok::before { content: "\e07b"; }

/* تحسينات إضافية */
.btn .fas, .btn .far, .btn .fab,
.nav-link .fas, .nav-link .far, .nav-link .fab,
.card-header .fas, .card-header .far, .card-header .fab {
    margin-left: 5px;
    vertical-align: middle;
}

/* إصلاح الأيقونات في الأزرار الصغيرة */
.btn-sm .fas, .btn-sm .far, .btn-sm .fab {
    font-size: 12px;
}

/* إصلاح الأيقونات في الأزرار الكبيرة */
.btn-lg .fas, .btn-lg .far, .btn-lg .fab {
    font-size: 18px;
}

/* إصلاح الأيقونات في القوائم */
.list-group-item .fas, .list-group-item .far, .list-group-item .fab {
    margin-left: 8px;
    width: 16px;
    text-align: center;
}

/* إصلاح الأيقونات في الجداول */
.table .fas, .table .far, .table .fab {
    font-size: 14px;
}

/* إصلاح الأيقونات في البطاقات */
.card .fas, .card .far, .card .fab {
    margin-left: 5px;
}

/* إصلاح الأيقونات في الشريط الجانبي */
.sidebar .fas, .sidebar .far, .sidebar .fab {
    width: 20px;
    text-align: center;
    margin-left: 10px;
}

/* إصلاح الأيقونات في شريط التنقل */
.navbar .fas, .navbar .far, .navbar .fab {
    font-size: 16px;
}

/* إصلاح الأيقونات في التنبيهات */
.alert .fas, .alert .far, .alert .fab {
    margin-left: 8px;
}

/* إصلاح الأيقونات في النماذج */
.form-control .fas, .form-control .far, .form-control .fab,
.input-group-text .fas, .input-group-text .far, .input-group-text .fab {
    font-size: 14px;
}

/* إصلاح الأيقونات في الشارات */
.badge .fas, .badge .far, .badge .fab {
    font-size: 10px;
    margin-left: 3px;
}

/* إصلاح الأيقونات الكبيرة */
.fa-2x { font-size: 2em; }
.fa-3x { font-size: 3em; }
.fa-4x { font-size: 4em; }
.fa-5x { font-size: 5em; }

/* إصلاح الأيقونات الدوارة */
.fa-spin {
    animation: fa-spin 2s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(359deg); }
}

/* إصلاح الأيقونات النابضة */
.fa-pulse {
    animation: fa-pulse 1s infinite steps(8);
}

@keyframes fa-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}