/*!
 * Font Awesome 6.5.1 Override Fix
 * Ensures proper loading and display of Font Awesome icons
 */

/* Force Font Awesome font loading */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

/* Override any conflicting font families */
.fa, .fas, .far, .fal, .fab, .fat, .fad, .fak {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "Font Awesome 6 Sharp", "Font Awesome 6 Duotone" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    display: inline-block !important;
}

/* Specific weight fixes */
.far {
    font-weight: 400 !important;
}

.fab {
    font-weight: 400 !important;
}

/* Common icon fixes */
.fa-user::before { content: "\f007" !important; }
.fa-lock::before { content: "\f023" !important; }
.fa-check-double::before { content: "\f560" !important; }
.fa-university::before { content: "\f19c" !important; }
.fa-id-card::before { content: "\f2c2" !important; }
.fa-hashtag::before { content: "\f292" !important; }
.fa-user-plus::before { content: "\f234" !important; }
.fa-star::before { content: "\f005" !important; }
.fa-paper-plane::before { content: "\f1d8" !important; }
.fa-trophy::before { content: "\f091" !important; }
.fa-receipt::before { content: "\f543" !important; }
.fa-list-ul::before { content: "\f0ca" !important; }
.fa-users::before { content: "\f0c0" !important; }
.fa-right-to-bracket::before { content: "\f2f6" !important; }
.fa-headset::before { content: "\f590" !important; }
.fa-exchange-alt::before { content: "\f362" !important; }
.fa-wallet::before { content: "\f555" !important; }
.fa-money-bill-wave::before { content: "\f53a" !important; }
.fa-hand-holding-usd::before { content: "\f4c0" !important; }

/* Line brand icon */
.fa-line::before { content: "\f3c0" !important; }

/* Regular style icons */
.fa-regular.fa-star::before { content: "\f005" !important; }
.fa-regular.fa-paper-plane::before { content: "\f1d8" !important; }
.fa-regular.fa-calendar-alt::before { content: "\f073" !important; }

/* Solid style icons */
.fa-solid.fa-right-to-bracket::before { content: "\f2f6" !important; }
.fa-solid.fa-headset::before { content: "\f590" !important; }

/* Ensure icons are visible and not replaced by squares */
[class^="fa-"]::before,
[class*=" fa-"]::before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

/* Fix for spinning animation */
.fa-spin {
    animation: fa-spin 2s infinite linear !important;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Debug helper - remove after testing */
/*
.fa::before, .fas::before, .far::before, .fab::before {
    background: red !important;
    color: white !important;
}
*/