.swal2-container {
    position: fixed !important;
    z-index: 2147483647 !important;
}

.swal2-popup {
    border-radius: 1rem !important;
    position: relative !important;
    overflow: hidden !important;
}

.swal2-popup::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 5px !important;
    background-size: 200% 100% !important;
    animation: gradientShift 3s ease infinite !important;
    z-index: 1 !important;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

[data-coreui-theme=dark] .swal2-popup {
    background: #1f232d !important;
    color: #fff !important;
}

/* Botões - estilos base comuns */
.swal2-confirm.swal2-styled,
.swal2-cancel.swal2-styled {
    border-radius: 0.5rem !important;
    padding: 0.65rem 2rem !important;
    font-weight: 600 !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

/* Botão confirm - roxo */
.swal2-confirm.swal2-styled {
    background-color: #747af2 !important;
}

.swal2-confirm.swal2-styled:hover {
    background-color: #5a62e8 !important;
    transform: translateY(-2px) !important;
}

/* Botão cancel - cinza */
.swal2-cancel.swal2-styled {
    background-color: #a8a9b2 !important;
}

.swal2-cancel.swal2-styled:hover {
    background-color: #99999b !important;
    transform: translateY(-2px) !important;
}

/* Estado active para ambos */
.swal2-confirm.swal2-styled:active,
.swal2-cancel.swal2-styled:active {
    transform: translateY(0) !important;
}



/* Ícone de sucesso - Verde moderno */
.swal2-icon.swal2-success {
    border-color: #10b981 !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #10b981 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(16, 185, 129, 0.2) !important;
}

/* Ícone de erro - Vermelho coral moderno */
.swal2-icon.swal2-error {
    border-color: #ef4444 !important;
}

.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #ef4444 !important;
}

/* Ícone de aviso - Âmbar/laranja moderno */
.swal2-icon.swal2-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}

/* Ícone de informação - Azul safira */
.swal2-icon.swal2-info {
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
}

/* Ícone de pergunta - Roxo moderno */
.swal2-icon.swal2-question {
    border-color: #8b5cf6 !important;
    color: #8b5cf6 !important;
}




/* Barra de progresso do timer */
.swal2-timer-progress-bar {
    background: linear-gradient(90deg, #747af2, #5a62e8) !important;
    height: 4px !important;
    border-radius: 0 0 4px 4px !important;
}

/* Container da barra de progresso */
.swal2-timer-progress-bar-container {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    overflow: hidden !important;
    border-radius: 0 0 1rem 1rem !important;
}

/* Sucesso */
.swal2-popup.swal2-icon-success .swal2-timer-progress-bar {
    background: linear-gradient(90deg, #10b981, #0da271) !important;
}

/* Erro */
.swal2-popup.swal2-icon-error .swal2-timer-progress-bar {
    background: linear-gradient(90deg, #ef4444, #dc2626) !important;
}

/* Aviso */
.swal2-popup.swal2-icon-warning .swal2-timer-progress-bar {
    background: linear-gradient(90deg, #f59e0b, #d97706) !important;
}

/* Info */
.swal2-popup.swal2-icon-info .swal2-timer-progress-bar {
    background: linear-gradient(90deg, #3b82f6, #2563eb) !important;
}

/* Pergunta */
.swal2-popup.swal2-icon-question .swal2-timer-progress-bar {
    background: linear-gradient(90deg, #8b5cf6, #7c3aed) !important;
}


/* Toast - sombra melhorada */
.swal2-popup.swal2-toast {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Dark mode específico para toast */
[data-coreui-theme=dark] .swal2-popup.swal2-toast {
    background: #212631 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Adicionar também a linha superior nos toasts */
.swal2-popup.swal2-toast::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background-size: 200% 100% !important;
    animation: gradientShift 3s ease infinite !important;
    z-index: 1 !important;
}
