/* ===== Fix SweetAlert2 Animation Issues ===== */

/* Desabilita animações que podem causar bugs visuais */
.swal2-popup {
    animation: none !important;
}

.swal2-show {
    animation: swal2-show 0.3s !important;
}

.swal2-hide {
    animation: swal2-hide 0.15s !important;
}

/* Garante que o ícone apareça corretamente */
.swal2-icon {
    /* display: flex !important;  <-- REMOVIDO: Isso forçava ícones ocultos a aparecerem */
    /* align-items: center !important; */
    /* justify-content: center !important; */
    margin: 1.5em auto !important;
}

.swal2-icon .swal2-icon-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Fix para ícone de sucesso */
.swal2-success {
    border-color: #a5dc86 !important;
}

.swal2-success [class^='swal2-success-line'] {
    background-color: #a5dc86 !important;
}

.swal2-success .swal2-success-ring {
    border: 4px solid rgba(165, 220, 134, 0.3) !important;
}

/* Fix para ícone de erro */
.swal2-error {
    border-color: #f27474 !important;
}

.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #f27474 !important;
}

/* Fix para ícone de warning */
.swal2-warning {
    border-color: #facea8 !important;
    color: #f8bb86 !important;
}

/* Fix para ícone de info */
.swal2-info {
    border-color: #9de0f6 !important;
    color: #3fc3ee !important;
}

/* Fix para ícone de question */
.swal2-question {
    border-color: #c9dae1 !important;
    color: #87adbd !important;
}

/* Garante que o backdrop não interfira */
.swal2-container {
    z-index: 10000 !important;
}

/* Fix para toast (notificações no canto) */
.swal2-toast {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1) !important;
}

.swal2-toast .swal2-icon {
    margin: 0 0.5em 0 0 !important;
}

/* Animações suaves e sem bugs */
@keyframes swal2-show {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }

    45% {
        transform: scale(1.05);
        opacity: 1;
    }

    80% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes swal2-hide {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0.5);
        opacity: 0;
    }
}

/* Remove animações de loading que podem bugar */
.swal2-loading {
    animation: none !important;
}