/* Font Awesome 6 Fallback & Icon Fixes */

/* Ensure Font Awesome loads properly */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css');

/* Font Awesome 6 icon mappings for common icons */
.fa-tools:before,
.fas.fa-tools:before {
    content: "\f7d9"; /* screwdriver-wrench */
}

.fa-sign-out-alt:before,
.fas.fa-sign-out-alt:before {
    content: "\f2f5"; /* right-from-bracket */
}

/* Ensure icons display properly */
.fa, .fas, .far, .fal, .fab, .fa-solid, .fa-regular, .fa-light, .fa-brands {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", "FontAwesome";
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.fa-regular {
    font-weight: 400;
}

.fa-light {
    font-weight: 300;
}

.fa-brands {
    font-weight: 400;
    font-family: "Font Awesome 6 Brands";
}

/* Common icon fixes */
.fa-screwdriver-wrench:before { content: "\f7d9"; }
.fa-key:before { content: "\f084"; }
.fa-images:before { content: "\f302"; }
.fa-chart-pie:before { content: "\f200"; }
.fa-right-from-bracket:before { content: "\f2f5"; }
.fa-arrow-left:before { content: "\f060"; }
.fa-search:before { content: "\f002"; }
.fa-shield-alt:before { content: "\f3ed"; }

/* Additional spacing for icons */
.fa + * {
    margin-left: 0.5em;
}

* + .fa {
    margin-right: 0.5em;
}

.me-1,
.me-2 {
    margin-right: 0.5rem;
}

/* Loading fallback */
.fa:before {
    content: attr(data-icon);
} 