/* Toast notifications — styles for js/toast.js (self-contained, no Toastify). */

.toast-host {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    pointer-events: none;
}

.toast-notification {
    position: relative;
    min-width: 220px;
    max-width: min(420px, calc(100vw - 32px));
    padding: 12px 36px 12px 14px;
    border-radius: var(--radius-md, 8px);
    background: #fff;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
    border-left: 4px solid #64748b;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;
}

.toast-notification.toast-in {
    opacity: 1;
    transform: translateY(0);
}

.toast-success { border-left-color: #16a34a; color: #14532d; }
.toast-error   { border-left-color: #dc2626; color: #7f1d1d; }
.toast-warning { border-left-color: #d97706; color: #78350f; }
.toast-info    { border-left-color: #2563eb; color: #1e3a5f; }

.toast-close {
    position: absolute;
    top: 6px;
    right: 8px;
    border: 0;
    background: none;
    color: inherit;
    opacity: .5;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
}

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

@media (max-width: 600px) {
    .toast-host { left: 16px; right: 16px; align-items: stretch; }
    .toast-notification { max-width: none; }
}
