/* =========================================
   Modern Toast Styling (Clean Version)
========================================= */

.toast-container {
    width: 360px;
    pointer-events: none;
    z-index: 99999;
}

    .toast-container .toast {
        pointer-events: auto;
    }

/* Base appearance */
.modern-toast {
    opacity: 0;
    transform: translateX(40px);
    transition: transform 0.45s cubic-bezier(.22,1,.36,1), opacity 0.35s ease;
    margin-bottom: 12px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

    /* Visible state */
    .modern-toast.toast-show {
        opacity: 1;
        transform: translateX(0);
    }

    /* Exit state */
    .modern-toast.toast-hide {
        opacity: 0;
        transform: translateX(40px);
    }

/* Smooth vertical stacking animation */
.toast-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Progress bar */
.toast-progress {
    height: 3px;
    width: 100%;
    background: rgba(255,255,255,0.6);
    animation: toastProgress linear forwards;
}

@keyframes toastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.toast-icon {
    font-size: 1.1rem;
    font-weight: 600;
}

/* =========================================
   MOBILE ADAPTIVE POSITIONING
========================================= */

@media (max-width: 768px) {

    .toast-container {
        top: auto !important;
        bottom: 20px !important;
        left: 50%;
        right: auto !important;
        transform: translateX(-50%);
        width: 92%;
    }

    .modern-toast {
        transform: translateY(40px);
    }

        .modern-toast.toast-show {
            transform: translateY(0);
        }

        .modern-toast.toast-hide {
            transform: translateY(40px);
        }
}
