/* WebSocket Connection Indicator Styles */

.connection-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: var(--z-notification);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.connection-indicator.connected {
    background: hsl(var(--success));
    color: hsl(var(--success-foreground));
}

.connection-indicator.disconnected {
    background: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
}

.connection-indicator.error {
    background: hsl(var(--warning));
    color: hsl(var(--warning-foreground));
}

.connection-indicator.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.connection-indicator .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

/* Sync Indicators */

.sync-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 16px;
    background: hsl(var(--info));
    color: hsl(var(--info-foreground));
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: var(--z-notification);
}

.sync-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

.sync-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background: hsl(var(--info) / 0.9);
    color: hsl(var(--info-foreground));
    border-radius: 8px;
    font-size: 14px;
    z-index: var(--z-notification);
    animation: slideUpNotification 0.3s ease;
}

.sync-notification.fade-out {
    animation: slideDownNotification 0.3s ease;
}

@keyframes slideUpNotification {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideDownNotification {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}
