/**
 * Mapeamento de ícones Fontello para Font Awesome 6
 * GranMoney - Modernização de ícones
 *
 * Este arquivo sobrescreve os ícones antigos do Fontello com equivalentes do Font Awesome 6.
 * Os ícones FA6 são mais modernos, consistentes e melhor renderizados.
 */

/* ==================== CONFIGURAÇÃO BASE ==================== */

/* Reset para ícones mapeados - usar Font Awesome */
.icon-mapped:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}

.icon-mapped-brands:before {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400;
}

/* ==================== AÇÕES PRINCIPAIS ==================== */

/* Busca/Pesquisa */
.icon-search:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f002" !important; /* fa-magnifying-glass */
}

/* Adicionar */
.icon-plus:before,
.icon-plus-1:before,
.icon-plus-2:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\2b" !important; /* fa-plus */
}

/* Remover/Menos */
.icon-minus:before,
.icon-minus-1:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f068" !important; /* fa-minus */
}

/* Confirmar/OK */
.icon-ok-1:before,
.icon-ok-5:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f00c" !important; /* fa-check */
}

.icon-ok-circled2-1:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f058" !important; /* fa-circle-check */
}

/* Cancelar/Fechar */
.icon-cancel:before,
.icon-cancel-1:before,
.icon-cancel-5:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f00d" !important; /* fa-xmark */
}

.icon-cancel-circled2-1:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f057" !important; /* fa-circle-xmark */
}

/* Excluir/Lixeira */
.icon-trash:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f2ed" !important; /* fa-trash-can */
}

/* Editar/Lápis */
.icon-pencil:before,
.icon-pencil-2:before,
.icon-pencil-4:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f303" !important; /* fa-pencil */
}

/* Apagar/Borracha */
.icon-eraser:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f12d" !important; /* fa-eraser */
}

/* ==================== NAVEGAÇÃO ==================== */

/* Setas direcionais */
.icon-up-open:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f077" !important; /* fa-chevron-up */
}

.icon-down-open:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f078" !important; /* fa-chevron-down */
}

.icon-left-open:before,
.icon-left-open-2:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f053" !important; /* fa-chevron-left */
}

.icon-right-open:before,
.icon-right-open-2:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f054" !important; /* fa-chevron-right */
}

.icon-right-dir:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f0da" !important; /* fa-caret-right */
}

/* Dupla seta */
.icon-angle-double-left:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f100" !important; /* fa-angles-left */
}

.icon-angle-double-right:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f101" !important; /* fa-angles-right */
}

/* Expandir/Redimensionar */
.icon-resize-horizontal-2:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f337" !important; /* fa-arrows-left-right-to-line */
}

/* Forward/Avançar */
.icon-forward:before,
.icon-right-1:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f061" !important; /* fa-arrow-right */
}

/* ==================== INFORMAÇÃO E ALERTAS ==================== */

/* Informação */
.icon-info:before,
.icon-info-circled-alt:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f05a" !important; /* fa-circle-info */
}

/* Atenção/Alerta */
.icon-attention-alt-1:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f071" !important; /* fa-triangle-exclamation */
}

/* Ajuda */
.icon-help:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f059" !important; /* fa-circle-question */
}

/* Lâmpada/Ideia */
.icon-lightbulb-1:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400; /* Regular */
    content: "\f0eb" !important; /* fa-lightbulb */
}

/* Flash/Raio */
.icon-flash-1:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f0e7" !important; /* fa-bolt */
}

/* Bloqueado */
.icon-block-3:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f05e" !important; /* fa-ban */
}

/* ==================== LOADING/SPINNER ==================== */

.icon-spin6:before,
.icon-spin3:before,
.icon-spinner:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f110" !important; /* fa-spinner */
}

/* ==================== DOCUMENTOS E ARQUIVOS ==================== */

/* Documento */
.icon-doc:before,
.icon-doc-1:before,
.icon-doc-2:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400; /* Regular */
    content: "\f15b" !important; /* fa-file */
}

.icon-doc-text:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400; /* Regular */
    content: "\f15c" !important; /* fa-file-lines */
}

/* Imprimir */
.icon-print:before,
.icon-print-1:before,
.icon-print-3:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f02f" !important; /* fa-print */
}

/* Download */
.icon-download:before,
.icon-download-2:before,
.icon-download-alt:before,
.icon-download-3:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f019" !important; /* fa-download */
}

.icon-download-cloud-1:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f0ed" !important; /* fa-cloud-arrow-down */
}

/* Upload */
.icon-upload-2:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f093" !important; /* fa-upload */
}

/* ==================== CONFIGURAÇÕES E FERRAMENTAS ==================== */

/* Engrenagem/Configurações */
.icon-cog:before,
.icon-cog-1:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f013" !important; /* fa-gear */
}

/* Filtro */
.icon-filter-1:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f0b0" !important; /* fa-filter */
}

/* Lista */
.icon-th-list-4:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f0c9" !important; /* fa-bars */
}

.icon-list-numbered-1:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f0cb" !important; /* fa-list-ol */
}

/* Grid */
.icon-grid:before,
.icon-squares:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f00a" !important; /* fa-table-cells */
}

/* Link externo */
.icon-link-ext:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f35d" !important; /* fa-up-right-from-square */
}

/* Exportar */
.icon-export:before,
.icon-export-3:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f56e" !important; /* fa-file-export */
}

/* Devolução/Reply */
.icon-reply-1:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f3e5" !important; /* fa-reply */
}

/* ==================== COMUNICAÇÃO ==================== */

/* Email/Arroba */
.icon-at-2:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f0e0" !important; /* fa-envelope */
}

/* ==================== MÍDIA E SOCIAL ==================== */

/* YouTube */
.icon-youtube-play:before {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400;
    content: "\f167" !important; /* fa-youtube */
}

/* Olho/Visualizar */
.icon-eye-1:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400; /* Regular */
    content: "\f06e" !important; /* fa-eye */
}

/* Like/Thumbs up */
.icon-thumbs-up:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400; /* Regular */
    content: "\f164" !important; /* fa-thumbs-up */
}

/* ==================== EMOJIS ==================== */

.icon-emo-happy:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400; /* Regular */
    content: "\f118" !important; /* fa-face-smile */
}

.icon-emo-unhappy:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400; /* Regular */
    content: "\f119" !important; /* fa-face-frown */
}

/* ==================== FINANÇAS ==================== */

/* Dinheiro/Dólar */
.icon-dollar-1:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f53a" !important; /* fa-dollar-sign */
}

/* Cartão de crédito */
.icon-credit-card:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400; /* Regular */
    content: "\f09d" !important; /* fa-credit-card */
}

/* Código de barras */
.icon-barcode:before,
.icon-barcode-1:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    content: "\f02a" !important; /* fa-barcode */
}

/* ==================== IMAGENS ==================== */

.icon-picture-2:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400; /* Regular */
    content: "\f03e" !important; /* fa-image */
}

/* ==================== EDIÇÃO ==================== */

.icon-edit-1:before {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400; /* Regular */
    content: "\f044" !important; /* fa-pen-to-square */
}

/* ==================== AJUSTES VISUAIS ==================== */

/* Garantir que ícones FA6 tenham tamanho consistente */
[class^="icon-"]:before,
[class*=" icon-"]:before {
    width: 1.2em;
    text-align: center;
    display: inline-block;
}

/* Animação de rotação para spinners */
.icon-spin6:before,
.icon-spin3:before,
.icon-spinner:before {
    animation: fa-spin 1s infinite linear;
}

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