/* toast.css */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 300px;
}

.toast {
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadein 0.3s, fadeout 0.5s ease-out forwards;
    animation-delay: 0s, 2.5s;
}

.toast.success { background-color: #28a745; }
.toast.error   { background-color: #dc3545; }
.toast.warning { background-color: #ffc107; color: #333; }
.toast.info    { background-color: #17a2b8; }

.toast button {
    background: transparent;
    border: none;
    color: inherit;
    font-weight: bold;
    margin-left: 10px;
    cursor: pointer;
}

@keyframes fadein {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeout {
    to   { opacity: 0; transform: translateY(-20px); }
}
