/* CSS PARA CENTRALIZAR OS CARDS DE ESTATÍSTICAS */
/* Adicione este código no final do seu arquivo style.css */

/* Forçar centralização dos cards de estatísticas */
.stats-grid-enhanced .stat-card-enhanced {
    text-align: center !important;
}

.stats-grid-enhanced .stat-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 1rem !important;
    margin-bottom: 1rem !important;
}

.stats-grid-enhanced .stat-icon {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5rem !important;
    color: var(--branco) !important;
    flex-shrink: 0 !important;
    margin: 0 auto !important;
}

.stats-grid-enhanced .stat-info {
    flex: 1 !important;
    text-align: center !important;
    width: 100% !important;
}

.stats-grid-enhanced .stat-number {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: var(--preto) !important;
    line-height: 1 !important;
    margin-bottom: 0.25rem !important;
    text-align: center !important;
}

.stats-grid-enhanced .stat-label {
    font-size: 0.875rem !important;
    color: var(--cinza-chumbo) !important;
    font-weight: 500 !important;
    margin-bottom: 0.25rem !important;
    text-align: center !important;
}

.stats-grid-enhanced .stat-sublabel {
    font-size: 0.75rem !important;
    color: var(--cinza-chumbo) !important;
    opacity: 0.8 !important;
    text-align: center !important;
}

/* Responsivo mobile */
@media (max-width: 768px) {
    .stats-grid-enhanced .stat-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.75rem !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .stats-grid-enhanced .stat-icon {
        margin: 0 auto !important;
    }
    
    .stats-grid-enhanced .stat-number {
        font-size: 2rem !important;
        text-align: center !important;
    }
}
/* =================== CORREÇÃO FORÇADA - CENTRALIZAÇÃO DOS CARDS DE ESTATÍSTICAS =================== */
/* ADICIONE ESTE CSS NO FINAL DO ARQUIVO style.css OU EM UM CSS SEPARADO */

/* FORÇA CENTRALIZAÇÃO ABSOLUTA - PRIORIDADE MÁXIMA */
.stats-grid-enhanced .stat-card-enhanced,
.stats-grid-enhanced .stat-card-enhanced * {
    box-sizing: border-box !important;
}

/* Container principal dos cards */
.stats-grid-enhanced .stat-card-enhanced {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.5rem !important;
}

/* Conteúdo interno - FORÇA CENTRALIZAÇÃO */
.stats-grid-enhanced .stat-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    gap: 1rem !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ícone - CENTRALIZAÇÃO FORÇADA */
.stats-grid-enhanced .stat-icon {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    align-self: center !important;
    flex-shrink: 0 !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
}

/* Container das informações */
.stats-grid-enhanced .stat-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Número principal - CENTRALIZAÇÃO FORÇADA */
.stats-grid-enhanced .stat-number {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    margin-bottom: 0.25rem !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

/* Label principal - CENTRALIZAÇÃO FORÇADA */
.stats-grid-enhanced .stat-label {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    margin-bottom: 0.25rem !important;
    font-size: 0.875rem !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

/* Sublabel - CENTRALIZAÇÃO FORÇADA */
.stats-grid-enhanced .stat-sublabel {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    font-size: 0.75rem !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

/* Progresso - CENTRALIZAÇÃO FORÇADA */
.stats-grid-enhanced .stat-progress {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0.5rem auto 0 auto !important;
}

.stats-grid-enhanced .progress-bar-mini {
    width: 100% !important;
    max-width: 200px !important;
    margin: 0 auto !important;
}

/* MOBILE - CORREÇÕES ESPECÍFICAS */
@media (max-width: 768px) {
    .stats-grid-enhanced {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .stats-grid-enhanced .stat-card-enhanced {
        padding: 1rem !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .stats-grid-enhanced .stat-content {
        gap: 0.75rem !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .stats-grid-enhanced .stat-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.3rem !important;
        margin: 0 auto !important;
        align-self: center !important;
    }
    
    .stats-grid-enhanced .stat-number {
        font-size: 1.8rem !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto !important;
        margin-bottom: 0.25rem !important;
    }
    
    .stats-grid-enhanced .stat-label {
        font-size: 0.75rem !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto !important;
        margin-bottom: 0.25rem !important;
    }
    
    .stats-grid-enhanced .stat-sublabel {
        font-size: 0.7rem !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
}

/* MOBILE PEQUENO - STACK VERTICAL */
@media (max-width: 480px) {
    .stats-grid-enhanced {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .stats-grid-enhanced .stat-card-enhanced {
        width: 100% !important;
        margin: 0 auto !important;
        padding: 1rem !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .stats-grid-enhanced .stat-content {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 0.5rem !important;
    }
    
    .stats-grid-enhanced .stat-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.2rem !important;
        margin: 0 auto !important;
        align-self: center !important;
    }
    
    .stats-grid-enhanced .stat-number {
        font-size: 1.6rem !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
    
    .stats-grid-enhanced .stat-label,
    .stats-grid-enhanced .stat-sublabel {
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
}

/* RESET COMPLETO DE QUALQUER FLEXBOX CONFLITANTE */
.stats-grid-enhanced .stat-content {
    align-items: center !important;
    justify-content: center !important;
    align-content: center !important;
    justify-items: center !important;
    place-items: center !important;
    place-content: center !important;
}

/* FORÇA REMOÇÃO DE FLOAT E POSITION ABSOLUTO */
.stats-grid-enhanced .stat-card-enhanced *,
.stats-grid-enhanced .stat-content *,
.stats-grid-enhanced .stat-info * {
    float: none !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* EXCEÇÕES PARA ELEMENTOS POSICIONADOS INTENCIONALMENTE */
.stats-grid-enhanced .stat-badge,
.stats-grid-enhanced .stat-trend,
.stats-grid-enhanced .stat-achievement {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    left: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    transform: none !important;
}

/* FALLBACK - SE AINDA NÃO FUNCIONAR */
.stats-grid-enhanced .stat-card-enhanced {
    justify-content: center !important;
    align-content: center !important;
    place-items: center !important;
    place-content: center !important;
}

/* FORÇA CENTRALIZAÇÃO EM QUALQUER SITUAÇÃO */
.stats-grid-enhanced .stat-card-enhanced > *,
.stats-grid-enhanced .stat-content > *,
.stats-grid-enhanced .stat-info > * {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* DEBUG - REMOVER APÓS TESTAR */
/*
.stats-grid-enhanced .stat-card-enhanced {
    border: 2px solid red !important;
}
.stats-grid-enhanced .stat-content {
    border: 2px solid blue !important;
}
.stats-grid-enhanced .stat-icon {
    border: 2px solid green !important;
}
.stats-grid-enhanced .stat-info {
    border: 2px solid orange !important;
}
*/