/* Connection-state toasts (see connection_status.js). Sits above modals. */

.conn-toast-stack {
    position: fixed;
    bottom: 1.25em;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
    z-index: 3000;
    width: min(440px, calc(100vw - 2em));
    pointer-events: none;
}

.conn-toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75em;
    width: 100%;
    padding: 0.8em 1em;
    background: rgba(255, 255, 255, 0.97);
    border: 1.5px solid var(--glass-border);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    font-size: 13px;
    line-height: 1.45;
    color: var(--text, #1A1A1A);
    pointer-events: auto;
}

.conn-toast-error,
.conn-toast-offline {
    border-color: rgba(192, 57, 43, 0.45);
    background: #fdf3f2;
}

.conn-toast-online {
    border-color: rgba(39, 174, 96, 0.45);
    background: #f1faf5;
}

.conn-toast-text {
    flex: 1;
    min-width: 0;
}

.conn-toast-close {
    flex-shrink: 0;
    border: none;
    background: none;
    font-size: 16px;
    line-height: 1;
    color: var(--text-muted, #888);
    cursor: pointer;
    padding: 0 2px;
}

.conn-toast-close:hover {
    color: var(--text, #1A1A1A);
}
