/* ================================
   SUCCESS POPUP TOAST MESSAGE
   ================================ */

.pop-up-msg {
    position: fixed;
    top: 24px;
    left: 24px;

    min-width: 280px;
    max-width: 380px;

    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #ffffff;

    padding: 16px 20px 18px;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;

    z-index: 9999;
    overflow: hidden;

    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);

    opacity: 0;
    transform: translateX(-120%);

    animation:
        popupSlideIn 0.4s ease-out forwards,
        popupFadeOut 0.4s ease-in forwards 4.6s;
}

/* FORCE TEXT COLOR (fix for admin override issue) */
.pop-up-msg,
.pop-up-msg * {
    color: #ffffff;
}

/* Text inside popup */
.pop-up-msg .popup-text {
    display: block;
    padding-right: 6px;
}

/* Progress bar background */
.pop-up-msg .popup-progress {
    position: absolute;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: rgba(255, 255, 255, 0.35);
}

/* Progress bar fill animation */
.pop-up-msg .popup-progress::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    background: #ffffff;
    animation: popupProgressBar 5s linear forwards;
}

/* Slide-in animation */
@keyframes popupSlideIn {
    from {
        transform: translateX(-120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Fade-out animation */
@keyframes popupFadeOut {
    to {
        transform: translateX(-120%);
        opacity: 0;
    }
}

/* Progress bar countdown */
@keyframes popupProgressBar {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .pop-up-msg {
        left: 16px;
        right: 16px;
        max-width: unset;
    }
}
