div:where(.swal2-container) div:where(.swal2-popup) {
    display: none;
    position: relative;
    box-sizing: border-box;
    grid-template-columns: minmax(0, 100%);
    width: 480px !important;
    max-width: 90% !important;
    padding: 0;
    border: none;
    border-radius: 28px !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    color: #2d3748 !important;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 1rem;
    container-name: swal2-popup;
    overflow: hidden;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(0, 0, 0, 0.05) !important;
    animation: swal2-show 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(20px);
}

/* Header Styling */
div:where(.swal2-container) .swal2-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    margin-bottom: 0.5rem !important;
    letter-spacing: -0.025em;
}

/* Content Styling */
div:where(.swal2-container) .swal2-html-container {
    font-size: 1.1rem !important;
    color: #4a5568 !important;
    line-height: 1.6 !important;
    font-weight: 400;

}

/* Success Icon Enhancement */
div:where(.swal2-icon).swal2-success {
    width: 80px !important;
    height: 80px !important;
    margin: 1.5rem auto 1rem !important;
    border: 4px solid transparent;
    border-radius: 50%;
    background: linear-gradient(135deg, #00aca1 0%, #0081b4 100%);
    position: relative;
}

div:where(.swal2-icon).swal2-success .swal2-success-ring {
    position: absolute;
    z-index: 2;
    top: -0.25em;
    left: -0.25em;
    box-sizing: content-box;
    width: 100%;
    height: 100%;
    border: 0.25em solid rgba(0, 172, 161, 0.2) !important;
    border-radius: 50%;
    animation: ringPulse 2s infinite;
}

@keyframes ringPulse {
    0% { border-color: rgba(0, 172, 161, 0.2); }
    50% { border-color: rgba(0, 172, 161, 0.4); }
    100% { border-color: rgba(0, 172, 161, 0.2); }
}

div:where(.swal2-icon).swal2-success [class^=swal2-success-line] {
    display: block;
    position: absolute;
    z-index: 2;
    height: 0.35em;
    border-radius: 0.25em;
    background: #ffffff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Button Styling */
div:where(.swal2-container) button:where(.swal2-styled) {
    padding: 14px 32px !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    min-width: 140px !important;
    letter-spacing: 0.025em;
    text-transform: none;
    position: relative;
    overflow: hidden;
}

div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm) {
    background: linear-gradient(135deg, #00aca1 0%, #0081b4 100%) !important;
    color: white !important;
    box-shadow: 
        0 4px 14px 0 rgba(0, 172, 161, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover {
    transform: translateY(-2px) !important;
    box-shadow: 
        0 8px 25px 0 rgba(0, 172, 161, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    background: linear-gradient(135deg, #009c91 0%, #0071a4 100%) !important;
}

div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active {
    transform: translateY(0) !important;
    box-shadow: 
        0 2px 8px 0 rgba(0, 172, 161, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* Cancel Button Styling */
div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel) {
    background: transparent !important;
    color: #718096 !important;
    border: 2px solid #e2e8f0 !important;
    transition: all 0.3s ease !important;
}

div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover {
    background: #f7fafc !important;
    color: #4a5568 !important;
    border-color: #cbd5e0 !important;
    transform: translateY(-1px) !important;
}

/* Loading Animation */
div:where(.swal2-icon).swal2-success .swal2-success-circular-line {
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Progress Bar (for timed alerts) */
.swal2-timer-progress-bar {
    background: linear-gradient(90deg, #00aca1, #0081b4) !important;
    height: 3px !important;
    border-radius: 0 0 28px 28px !important;
}

/* Close Button */
.swal2-close {
    font-size: 2rem !important;
    color: #a0aec0 !important;
    transition: all 0.3s ease !important;
}

.swal2-close:hover {
    color: #718096 !important;
    transform: scale(1.1);
}

/* Footer Styling */
.swal2-footer {
    border-top: 1px solid #e2e8f0 !important;
    padding: 1rem !important;
    background: #f8fafc !important;
    border-radius: 0 0 28px 28px !important;
}

/* Responsive Design */
@media (max-width: 480px) {
    div:where(.swal2-container) div:where(.swal2-popup) {
        width: 95% !important;
        margin: 1rem !important;
        border-radius: 20px !important;
    }
    
    div:where(.swal2-container) button:where(.swal2-styled) {
        padding: 12px 24px !important;
        min-width: 120px !important;
        font-size: 0.95rem !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    div:where(.swal2-container) div:where(.swal2-popup) {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%) !important;
        color: #e2e8f0 !important;
        box-shadow: 
            0 25px 50px -12px rgba(0, 0, 0, 0.5),
            0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    }
    
    div:where(.swal2-container) .swal2-title {
        color: #f7fafc !important;
    }
    
    div:where(.swal2-container) .swal2-html-container {
        color: #cbd5e0 !important;
    }
}