.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background-color: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.current-user label {
    color: #777;
}

.user-name {
    font-weight: bold;
    margin-right: 0.5rem;
}

.total-editors {
    color: #777;
}

.connection-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background-color: #ff4d4f;
    color: white;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.connection-status.connected {
    background-color: #52c41a;
}

.other-users {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
    color: #777;
}

.other-user {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8em;
}

/* Collaboration cursor styles */
.collaboration-cursor__caret {
    position: relative;
    margin-left: -1px;
    margin-right: -1px;
    border-left: 1px solid;
    border-right: 1px solid;
    word-break: normal;
    pointer-events: none;
}

.collaboration-cursor__label {
    position: absolute;
    top: -1.4em;
    left: -1px;
    font-size: 12px;
    font-weight: 600;
    line-height: normal;
    white-space: nowrap;
    color: white;
    padding: 0.1rem 0.3rem;
    border-radius: 3px 3px 3px 0;
    user-select: none;
    pointer-events: none;
}

/* Remote mouse pointer styles */
.remote-mouse-pointer {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 100;
    pointer-events: none; /* Make sure it doesn't interfere with clicking */
    transition:
        left 0.1s ease,
        top 0.1s ease; /* Smooth movement */
}

.remote-mouse-label {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0.9;
}
