/**
 * Custom SweetAlert2 Styling for RemoveBG AI Plugin
 * Makes the popups match the plugin's modern design
 */

/* Custom class for RemoveBG popups */
.removebg-swal-popup {
    border-radius: 16px !important;
    padding: 2rem !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
}

.removebg-swal-popup .swal2-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin-bottom: 0.75rem !important;
}

.removebg-swal-popup .swal2-html-container {
    font-size: 0.9375rem !important;
    line-height: 1.7 !important;
    color: #475569 !important;
    white-space: pre-line !important;
}

.removebg-swal-popup .swal2-icon {
    margin: 1rem auto 1.5rem !important;
}

/* Custom button styling */
.removebg-swal-btn {
    border-radius: 8px !important;
    padding: 0.75rem 2rem !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.removebg-swal-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
}

.removebg-swal-btn-cancel {
    background: #f1f5f9 !important;
    color: #64748b !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 0.75rem 2rem !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
}

.removebg-swal-btn-cancel:hover {
    background: #e2e8f0 !important;
    color: #475569 !important;
    transform: translateY(-1px) !important;
}

.removebg-swal-btn-danger {
    background: #ef4444 !important;
    color: white !important;
    border-radius: 8px !important;
    padding: 0.75rem 2rem !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
}

.removebg-swal-btn-danger:hover {
    background: #dc2626 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

/* Credits popup special styling */
.removebg-swal-credits .swal2-html-container {
    text-align: left !important;
    background: #f8fafc !important;
    padding: 1.25rem !important;
    border-radius: 8px !important;
    border-left: 4px solid #6366f1 !important;
    margin: 1rem 0 !important;
}

/* Icon colors matching the theme */
.removebg-swal-popup .swal2-icon.swal2-info {
    border-color: #6366f1 !important;
    color: #6366f1 !important;
}

.removebg-swal-popup .swal2-icon.swal2-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}

.removebg-swal-popup .swal2-icon.swal2-error {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

.removebg-swal-popup .swal2-icon.swal2-success {
    border-color: #10b981 !important;
    color: #10b981 !important;
}

.removebg-swal-popup .swal2-icon.swal2-question {
    border-color: #8b5cf6 !important;
    color: #8b5cf6 !important;
}

/* Animation improvements */
.swal2-show {
    animation: swal2-show 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

@keyframes swal2-show {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .removebg-swal-popup {
        padding: 1.5rem !important;
        margin: 1rem !important;
    }

    .removebg-swal-popup .swal2-title {
        font-size: 1.25rem !important;
    }

    .removebg-swal-btn,
    .removebg-swal-btn-cancel,
    .removebg-swal-btn-danger {
        width: 100% !important;
        margin: 0.25rem 0 !important;
    }

    .swal2-actions {
        flex-direction: column-reverse !important;
        width: 100% !important;
    }
}
