/* Collaborative Cursors Styles */
.remote-cursor {
    position: absolute;
    pointer-events: none;
    z-index: 10000;
    transition: all 0.1s linear;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cursor-pointer-svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.cursor-label {
    background: var(--accent, #ff4757);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    margin-top: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Specific colors for different users (can be randomized) */
.remote-cursor[data-color='blue'] .cursor-label {
    background: #3498db;
}
.remote-cursor[data-color='green'] .cursor-label {
    background: #2ecc71;
}
.remote-cursor[data-color='orange'] .cursor-label {
    background: #e67e22;
}
.remote-cursor[data-color='purple'] .cursor-label {
    background: #9b59b6;
}
.remote-cursor[data-color='pink'] .cursor-label {
    background: #e91e63;
}
.remote-cursor[data-color='teal'] .cursor-label {
    background: #1abc9c;
}

.remote-cursor[data-color='blue'] .cursor-pointer-svg path {
    fill: #3498db;
}
.remote-cursor[data-color='green'] .cursor-pointer-svg path {
    fill: #2ecc71;
}
.remote-cursor[data-color='orange'] .cursor-pointer-svg path {
    fill: #e67e22;
}
.remote-cursor[data-color='purple'] .cursor-pointer-svg path {
    fill: #9b59b6;
}
.remote-cursor[data-color='pink'] .cursor-pointer-svg path {
    fill: #e91e63;
}
.remote-cursor[data-color='teal'] .cursor-pointer-svg path {
    fill: #1abc9c;
}

.collab-presence-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(52, 180, 235, 0.45);
    background: rgba(52, 180, 235, 0.12);
    color: #c6f0ff;
    font-size: 12px;
    font-weight: 600;
}

.collab-presence-chip.is-empty {
    border-color: rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
}

.collab-presence-chip.has-conflict {
    border-color: rgba(255, 107, 129, 0.7);
    background: rgba(255, 107, 129, 0.16);
    color: #ffd7dd;
}
