/* ============================================
   ICONS STYLES - استایل‌های آیکون‌ها
   اطمینان از لود صحیح تمام آیکون‌ها
   ============================================ */

/* Base Styles for All Icons */
i.fas,
i.far,
i.fab,
i.fal,
i.fad {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands', 'Font Awesome 5 Free', 'Font Awesome 5 Brands', 'FontAwesome', sans-serif !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-flex !important;
    align-items: center !important;
    justify-content: center !important;
    speak: none !important;
    font-feature-settings: normal !important;
    font-variant-ligatures: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-wrap: normal !important;
    white-space: nowrap !important;
    direction: ltr !important;
}

/* Solid Icons (fas) */
.fas {
    font-weight: 900 !important;
}

/* Regular Icons (far) */
.far {
    font-weight: 400 !important;
}

/* Brand Icons (fab) */
.fab {
    font-family: 'Font Awesome 6 Brands', 'Font Awesome 5 Brands', 'FontAwesome', sans-serif !important;
    font-weight: 400 !important;
}

/* Light Icons (fal) */
.fal {
    font-weight: 300 !important;
}

/* Duotone Icons (fad) */
.fad {
    font-weight: 900 !important;
}

/* Ensure Icons are Visible */
i[class*="fa-"] {
    visibility: visible !important;
    opacity: 1 !important;
    display: inline-flex !important;
}

/* Icon Sizing */
.fa-xs { font-size: 0.75em !important; }
.fa-sm { font-size: 0.875em !important; }
.fa-lg { font-size: 1.33333em !important; line-height: 0.75em !important; vertical-align: -0.0667em !important; }
.fa-xl { font-size: 1.5em !important; line-height: 0.75em !important; vertical-align: -0.0667em !important; }
.fa-2x { font-size: 2em !important; }
.fa-3x { font-size: 3em !important; }
.fa-4x { font-size: 4em !important; }
.fa-5x { font-size: 5em !important; }
.fa-6x { font-size: 6em !important; }
.fa-7x { font-size: 7em !important; }
.fa-8x { font-size: 8em !important; }
.fa-9x { font-size: 9em !important; }
.fa-10x { font-size: 10em !important; }

/* Icon Alignment */
.fa-fw {
    text-align: center !important;
    width: 1.25em !important;
}

/* Icon Rotation */
.fa-rotate-90 { transform: rotate(90deg) !important; }
.fa-rotate-180 { transform: rotate(180deg) !important; }
.fa-rotate-270 { transform: rotate(270deg) !important; }
.fa-flip-horizontal { transform: scale(-1, 1) !important; }
.fa-flip-vertical { transform: scale(1, -1) !important; }
.fa-flip-both { transform: scale(-1, -1) !important; }

/* Icon Animation */
.fa-spin {
    animation: fa-spin 2s infinite linear !important;
}

.fa-pulse {
    animation: fa-spin 1s infinite steps(8) !important;
}

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

/* Loading State */
.fa-loading {
    opacity: 0.5 !important;
    animation: faPulse 1s ease-in-out infinite !important;
}

@keyframes faPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Fix for RTL */
[dir="rtl"] i.fas,
[dir="rtl"] i.far,
[dir="rtl"] i.fab {
    direction: ltr !important;
    display: inline-flex !important;
}

/* Specific Icon Fixes */
.fa-home::before { content: "\f015"; }
.fa-network-wired::before { content: "\f6ff"; }
.fa-briefcase::before { content: "\f0b1"; }
.fa-blog::before { content: "\f781"; }
.fa-envelope::before { content: "\f0e0"; }
.fa-rocket::before { content: "\f135"; }
.fa-arrow-left::before { content: "\f060"; }
.fa-shopping-cart::before { content: "\f07a"; }
.fa-phone-alt::before { content: "\f879"; }
.fa-check-circle::before { content: "\f058"; }
.fa-server::before { content: "\f233"; }
.fa-shield-alt::before { content: "\f3ed"; }
.fa-bolt::before { content: "\f0e7"; }
.fa-wifi::before { content: "\f1eb"; }
.fa-cogs::before { content: "\f085"; }
.fa-sparkles::before { content: "\f890"; }
.fa-project-diagram::before { content: "\f542"; }
.fa-star::before { content: "\f005"; }
.fa-users::before { content: "\f0c0"; }
.fa-calendar-alt::before { content: "\f073"; }
.fa-award::before { content: "\f559"; }
.fa-headset::before { content: "\f590"; }
.fa-wrench::before { content: "\f0ad"; }
.fa-comments::before { content: "\f086"; }
.fa-inbox::before { content: "\f01c"; }
.fa-folder-open::before { content: "\f07c"; }
.fa-globe::before { content: "\f0ac"; }
.fa-video::before { content: "\f03d"; }
.fa-plug::before { content: "\f1e6"; }
.fa-chart-line::before { content: "\f201"; }
.fa-clock::before { content: "\f017"; }
.fa-file-alt::before { content: "\f15c"; }
.fa-bullseye::before { content: "\f140"; }
.fa-user-check::before { content: "\f4fc"; }
.fa-eye::before { content: "\f06e"; }
.fa-map-marker-alt::before { content: "\f3c5"; }

/* Debug Mode - نمایش محتوای آیکون‌ها */
body.fa-debug i.fas::before,
body.fa-debug i.far::before,
body.fa-debug i.fab::before {
    border: 1px dashed red;
    padding: 2px;
}



