/* Toast notification system — single source of truth.
   Ported from Submira/buckettrips; recolored to Relay's --tone-* tokens.
   Top-right, under the navbar. Driven by showToast() in js/toast.js. */
.toast-container {
    position: fixed;
    top: 68px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast-container .toast {
    min-width: 300px;
    max-width: 440px;
    padding: 14px 18px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: toastIn 0.3s ease-out;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    pointer-events: auto;
}
.toast-container .toast.success { border-left: 4px solid var(--tone-success-fg); }
.toast-container .toast.error   { border-left: 4px solid var(--tone-error-fg); }
.toast-container .toast.warning { border-left: 4px solid var(--tone-warning-fg); }
.toast-container .toast.info    { border-left: 4px solid var(--accent-color); }

.toast-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}
.toast-container .toast.success .toast-icon { color: var(--tone-success-fg); }
.toast-container .toast.error .toast-icon   { color: var(--tone-error-fg); }
.toast-container .toast.warning .toast-icon { color: var(--tone-warning-fg); }
.toast-container .toast.info .toast-icon    { color: var(--accent-color); }

.toast-content { flex: 1; min-width: 0; }
.toast-title { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.toast-message { font-size: 0.82rem; color: var(--text-secondary); margin-top: 2px; word-break: break-word; }

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.5;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}
.toast-close:hover { opacity: 1; }

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