.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transform: scale(0.7);
    transition: transform 0.3s ease-in-out;
    max-width: 400px;
    width: 90%;
}

.popup-overlay.show .popup-content {
    transform: scale(1);
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #4CAF50;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    position: relative;
    animation: iconScale 0.3s ease-in-out forwards;
}

@keyframes iconScale {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

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

.checkmark:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 15px;
    border-bottom: 8px solid white;
    border-right: 8px solid white;
    transform: rotate(45deg);
    top: 0;
    left: 0;
    animation: checkmark 0.4s ease-in-out forwards;
    transform-origin: center center;
    opacity: 0;
}

@keyframes checkmark {
    0% { opacity: 0; transform: rotate(45deg) scale(0); }
    100% { opacity: 1; transform: rotate(45deg) scale(1); }
}

.popup-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

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

button {
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    margin: 10px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}