/* Font Awesome Icon Fix - Ensure icons display properly */

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

/* Ensure icons are visible */
i.fas, i.far, i.fab, i.fa {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}

/* Fix for solid icons */
.fas, .fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}

/* Fix for regular icons */
.far, .fa-regular {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400;
}

/* Fix for brands icons */
.fab, .fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400;
}

/* Ensure icons don't inherit Kurdish font */
[lang="ku"] i.fas, [lang="ku"] i.far, [lang="ku"] i.fab, [lang="ku"] i.fa,
[lang="ku"] .fas, [lang="ku"] .far, [lang="ku"] .fab, [lang="ku"] .fa {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}

/* Fix icon spacing */
i.fas, i.far, i.fab, i.fa {
    margin-right: 8px;
}

[dir="ltr"] i.fas, [dir="ltr"] i.far, [dir="ltr"] i.fab, [dir="ltr"] i.fa {
    margin-right: 8px;
    margin-left: 0;
}

[dir="rtl"] i.fas, [dir="rtl"] i.far, [dir="rtl"] i.fab, [dir="rtl"] i.fa {
    margin-left: 8px;
    margin-right: 0;
}

/* Fix for icons in buttons */
.btn i, button i, a i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}

/* Fix for navbar icons */
.navbar i, .navbar-brand i, .navbar-user i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}

/* Fix for category card icons */
.category-icon i, .category-card i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}

/* Fix for table icons */
.data-table i, table i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}

/* Fix for alert icons */
.alert i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}

/* Ensure icons are not affected by text transformations */
i.fas, i.far, i.fab, i.fa {
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Fix icon size consistency */
i.fas, i.far, i.fab, i.fa {
    font-size: inherit;
    line-height: inherit;
    vertical-align: middle;
}

/* Fix for dashboard icons */
.dashboard-title i, .dashboard-content i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}

/* Fix for form icons */
.form-group i, .form-control i, label i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}

/* Ensure icons display inline */
i {
    display: inline-block;
    width: auto;
    height: auto;
}

/* Fix for specific icon classes */
.fa-warehouse, .fa-user-circle, .fa-sign-out-alt, .fa-tachometer-alt,
.fa-boxes, .fa-plus-circle, .fa-minus-circle, .fa-users, .fa-chart-bar,
.fa-undo, .fa-cogs, .fa-chart-line, .fa-box, .fa-arrow-left, .fa-arrow-right,
.fa-edit, .fa-trash, .fa-eye, .fa-save, .fa-times, .fa-check, .fa-search,
.fa-filter, .fa-download, .fa-print, .fa-file-pdf, .fa-file-excel,
.fa-calendar, .fa-clock, .fa-envelope, .fa-phone, .fa-map-marker-alt,
.fa-building, .fa-tag, .fa-dollar-sign, .fa-percentage, .fa-shopping-cart,
.fa-receipt, .fa-truck, .fa-cubes, .fa-exclamation-triangle, .fa-check-circle,
.fa-info-circle, .fa-question-circle, .fa-home, .fa-list, .fa-th, .fa-th-list {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    display: inline-block;
}
