#toast-container {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 320px;
}

/* Toast base */
.toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
    animation: slideIn .35s ease;
    font-size: 0.9rem;
}

.toast.success { background: #065f46; }
.toast.error   { background: #7f1d1d; }
.toast.info    { background: #1e3a8a; }
.toast.warning { background: #92400e; }

.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.toast-close {
    margin-left: auto;
    cursor: pointer;
    opacity: .7;
}

.toast-close:hover {
    opacity: 1;
}

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

@keyframes fadeOut {
    to { opacity: 0; transform: translateX(20px); }
}

/* Mobile */
@media (max-width: 640px) {
    #toast-container {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        top: 1rem;
        max-width: 90%;
    }
}


@media (prefers-color-scheme: dark) {
  .toast { background: #222; }
}
