.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 280px;
    max-width: 420px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    animation: toastIn 0.3s ease, toastOut 0.4s ease 3.6s forwards;
}

.toast-error {
    background: #fff3f3;
    border: 1px solid #ffcdd2;
    color: #c62828;
}

.toast-success {
    background: #f1f8e9;
    border: 1px solid #c5e1a5;
    color: #2e7d32;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    from { opacity: 1; }
    to   { opacity: 0; visibility: hidden; }
}
