
#toast_container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    width: 100%;
    max-width: 500px;
    padding: 0 16px;
    box-sizing: border-box;
}

.toast {
    pointer-events: auto;
    background-color: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-family: Arial, sans-serif;
    font-size: 16px;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(-20px);
    animation: toastIn 0.4s ease forwards;
    box-sizing: border-box;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.error {
    background-color: #d32f2f;
    color: white;
}

@keyframes toastIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast.hiding {
    animation: toastOut 0.3s ease forwards;
}

@keyframes toastOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}