/* PRESERVE ALL ICON FONTS - ULTIMATE FIX */
/* This file MUST be loaded LAST to override all font-family conflicts */

/* Force proper icon font families with maximum specificity */
i:not(.text):not(.arabic-text):not([class*="text-"]),
[class*="ti-"],
[class*="icon-"]:not(.text-icon),
[class*="fa-"],
[class*="feather-"],
[class*="material-"],
[class*="phosphor-"],
[class*="tabler-"],
.ti,
.fa,
.feather,
.material-icons,
.pc-icon,
.icon,
svg:not(.text-svg),
.svg-icon {
    font-family: inherit !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Specific icon font family assignments with ultra-high specificity */
body [class*="ti-"], 
body .ti,
html [class*="ti-"],
html .ti {
    font-family: 'tabler-icons' !important;
}

body [class*="fa-"], 
body .fa,
html [class*="fa-"],
html .fa {
    font-family: 'FontAwesome' !important;
}

body [class*="feather-"], 
body .feather,
html [class*="feather-"],
html .feather {
    font-family: 'feather' !important;
}

body [class*="material-"], 
body .material-icons,
html [class*="material-"],
html .material-icons {
    font-family: 'Material Icons' !important;
}

body [class*="phosphor-"], 
body [class^="ph-"],
html [class*="phosphor-"],
html [class^="ph-"] {
    font-family: 'Phosphor' !important;
}

/* Preserve pseudo-elements for icons */
i::before,
i::after,
[class*="ti-"]::before,
[class*="ti-"]::after,
[class*="icon-"]::before,
[class*="icon-"]::after,
[class*="fa-"]::before,
[class*="fa-"]::after,
[class*="feather-"]::before,
[class*="feather-"]::after,
[class*="material-"]::before,
[class*="material-"]::after,
[class*="phosphor-"]::before,
[class*="phosphor-"]::after,
[class*="tabler-"]::before,
[class*="tabler-"]::after {
    font-family: inherit !important;
}

/* Override any forced Cairo font on icons */
.customize-list li i,
.avtar i,
.btn i,
nav i,
header i,
footer i,
section i,
.card i {
    font-family: inherit !important;
}

/* Specific fixes for common icons */
.ti-circle-check {
    font-family: 'tabler-icons' !important;
}

.ti-chevron-left,
.ti-chevron-right,
.ti-link {
    font-family: 'tabler-icons' !important;
}

/* Swiper navigation arrows */
.swiper-button-next,
.swiper-button-prev {
    font-family: inherit !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-family: inherit !important;
    font-weight: 900 !important;
}

/* Tabler icons in swiper */
.swiper-button-next .ti,
.swiper-button-prev .ti,
.swiper-button-next i,
.swiper-button-prev i {
    font-family: 'tabler-icons' !important;
}

/* SVG icons should not be affected */
svg {
    font-family: inherit !important;
}

/* Override any wildcard selectors that might affect icons */
*[class*="icon"]::before,
*[class*="icon"]::after {
    font-family: inherit !important;
}

/* Force proper icon display with maximum specificity */
body i[class],
html i[class],
[dir="rtl"] i[class],
[dir="ltr"] i[class] {
    font-style: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    font-family: inherit !important;
}

/* OVERRIDE ANY CAIRO FONT APPLIED TO ICONS */
/* Use ultra-high specificity to beat all Cairo font rules */
html body [class*="ti-"],
html body [class*="icon-"],
html body [class*="fa-"],
html body [class*="feather-"],
html body [class*="material-"],
html body [class*="phosphor-"],
html body [class*="tabler-"],
html body .ti,
html body .fa,
html body .feather,
html body .material-icons,
html body .pc-icon,
html body i[class*="ti-"],
html body i[class*="icon-"],
html body i[class*="fa-"],
html body i[class*="feather-"],
html body i[class*="material-"],
html body i[class*="phosphor-"],
html body i[class*="tabler-"] {
    font-family: inherit !important;
}

/* RTL specific icon preservation */
[dir="rtl"] [class*="ti-"],
[dir="rtl"] [class*="icon-"],
[dir="rtl"] [class*="fa-"],
[dir="rtl"] [class*="feather-"],
[dir="rtl"] [class*="material-"],
[dir="rtl"] [class*="phosphor-"],
[dir="rtl"] [class*="tabler-"],
[dir="rtl"] .ti,
[dir="rtl"] .fa,
[dir="rtl"] .feather,
[dir="rtl"] .material-icons,
[dir="rtl"] .pc-icon,
[dir="rtl"] i[class*="ti-"],
[dir="rtl"] i[class*="icon-"],
[dir="rtl"] i[class*="fa-"],
[dir="rtl"] i[class*="feather-"],
[dir="rtl"] i[class*="material-"],
[dir="rtl"] i[class*="phosphor-"],
[dir="rtl"] i[class*="tabler-"] {
    font-family: inherit !important;
}

/* Common button and navigation icon fixes */
.btn i,
.nav-link i,
.dropdown-item i,
.card-header i,
.alert i,
.modal-header i,
.navbar i,
.sidebar i {
    font-family: inherit !important;
}