/* Estilos para confirmaciones estilizadas con SweetAlert2 */

/* Popup principal de confirmación */
.styled-confirm-popup {
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
    border: none !important;
}

.styled-confirm-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin-bottom: 0.5rem !important;
}

.styled-confirm-content {
    font-size: 1.1rem !important;
    color: #495057 !important;
    line-height: 1.6 !important;
}

/* Iconos de confirmación personalizados */
.swal2-icon.swal2-warning {
    border-color: #dc3545 !important;
    color: #dc3545 !important;
}

.swal2-icon.swal2-question {
    border-color: #007bff !important;
    color: #007bff !important;
}

/* Botones estilizados */
.swal2-actions {
    gap: 10px !important;
    margin-top: 1rem !important;
}

.swal2-confirm.btn {
    border-radius: 8px !important;
    padding: 0.6rem 1.5rem !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.swal2-cancel.btn {
    border-radius: 8px !important;
    padding: 0.6rem 1.5rem !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.swal2-confirm.btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.swal2-cancel.btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Estilos específicos para botones de eliminación */
.swal2-confirm.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    border: none !important;
    color: white !important;
}

.swal2-confirm.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #bd2130) !important;
}

/* Estilos para notificaciones toast */
.styled-success-toast {
    border-radius: 10px !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
}

.styled-error-popup {
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3) !important;
}

/* Backdrop personalizado */
.swal2-backdrop-show {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(3px) !important;
}

/* Animaciones personalizadas */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(100%, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeOutRight {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        transform: translate3d(100%, 0, 0);
    }
}

/* Clases de animación */
.animate__animated {
    animation-duration: 0.4s;
    animation-fill-mode: both;
}

.animate__faster {
    animation-duration: 0.3s;
}

.animate__fadeInDown {
    animation-name: fadeInDown;
}

.animate__fadeOutUp {
    animation-name: fadeOutUp;
}

.animate__fadeInRight {
    animation-name: fadeInRight;
}

.animate__fadeOutRight {
    animation-name: fadeOutRight;
}

/* Responsive - Ajustes para móviles */
@media (max-width: 768px) {
    .styled-confirm-popup {
        margin: 1rem !important;
        width: calc(100% - 2rem) !important;
    }

    .styled-confirm-title {
        font-size: 1.3rem !important;
    }

    .styled-confirm-content {
        font-size: 1rem !important;
    }

    .swal2-actions {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .swal2-confirm.btn,
    .swal2-cancel.btn {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* Tema oscuro */
@media (prefers-color-scheme: dark) {
    .styled-confirm-popup {
        background: #2c3e50 !important;
        color: #ecf0f1 !important;
    }

    .styled-confirm-title {
        color: #ecf0f1 !important;
    }

    .styled-confirm-content {
        color: #bdc3c7 !important;
    }
}