
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 24rem;
}

.toast {
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 18rem;
    max-width: 100%;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    background-color: #ecfdf5;
    /*border-left: 4px solid #10b981;*/
    color: #065f46;
}

.toast-error {
    background-color: #fef2f2;
    /*border-left: 4px solid #ef4444;*/
    color: #991b1b;
}

.toast-warning {
    background-color: #fffbeb;
    /*border-left: 4px solid #f59e0b;*/
    color: #92400e;
}

.toast-info {
    background-color: #eff6ff;
    /*border-left: 4px solid #3b82f6;*/
    color: #1e40af;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-icon {
    flex-shrink: 0;
}

.toast-message {
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding-right: 0.5rem;
}

.toast-close {
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}

.toast-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

@keyframes toast-progress {
    0% {
        width: 100%;
    }
    100% {
        width: 0%;
    }
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
}

.toast-success .toast-progress {
    background-color: #10b981;
    animation: toast-progress 5s linear forwards;
}

.toast-error .toast-progress {
    background-color: #ef4444;
    animation: toast-progress 5s linear forwards;
}

.toast-warning .toast-progress {
    background-color: #f59e0b;
    animation: toast-progress 5s linear forwards;
}

.toast-info .toast-progress {
    background-color: #3b82f6;
    animation: toast-progress 5s linear forwards;
}