.sp-toast-container {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1050;
}

.sp-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    padding: 16px;
    border-radius: 4px;

    transform: translateX(100%);
    opacity: 0;

    transition: transform 0.6s ease, opacity 0.4s ease;
}

.sp-toast.active {
    transform: translateX(0);
    opacity: 1;
}

.sp-toast-success {
    background-color: #3fad7a;
}

.sp-toast-danger {
    background-color: #d64956;
}

.sp-toast-close {
    width: 20px;
    height: 20px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: rgba(255,255,255,0.3);
    overflow: hidden;
}

.sp-toast-progress::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    background: #fff;
    animation: sp-toast-progress 5s linear forwards;
}

@keyframes sp-toast-progress {
    from { width: 100%; }
    to { width: 0%; }
}
