#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    width: 350px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-message {
    position: relative;
    padding: 1rem 1.25rem;
    padding-right: 40px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    animation: slideInAndOut 5s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

.toast-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.toast-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.toast-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

.toast-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}

.toast-close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.7;
    color: inherit;
    transition: opacity 0.2s ease-in-out;
    width: 30px;
    height: 30px;
    background-color: transparent;
}

.toast-close-btn:hover {
    opacity: 1;
    background-color: transparent;
}

.toast-text {
    display: block;
    word-wrap: break-word;
}

@keyframes slideInAndOut {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    10% {
        transform: translateX(0);
        opacity: 1;
    }
    90% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}