/* Success Popup Container */
.success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.success-popup.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Content */
.popup-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.success-popup.active .popup-content {
    transform: translateY(0);
}

/* Decorative Elements */
.popup-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
}

/* Checkmark Animation */
.checkmark-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #4CAF50;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: scaleIn 0.3s ease;
}

.checkmark {
    width: 40px;
    height: 40px;
    position: relative;
}

.checkmark:after {
    content: "";
    display: block;
    position: absolute;
    left: 12px;
    top: 20px;
    width: 16px;
    height: 4px;
    background: white;
    transform: rotate(45deg);
    animation: checkmarkStroke 0.3s ease;
}

.checkmark:before {
    content: "";
    display: block;
    position: absolute;
    left: 8px;
    top: 16px;
    width: 24px;
    height: 4px;
    background: white;
    transform: rotate(-45deg);
    animation: checkmarkStroke 0.4s ease 0.1s;
    animation-fill-mode: backwards;
}

/* Text Styling */
.popup-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.popup-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Close Button */
.popup-close-btn {
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.popup-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Animations */
@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    80% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes checkmarkStroke {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}