/* Collaborative Canvas Styles */

.canvas-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: #0a0a0a;
  border-radius: 8px;
  overflow: hidden;
}

#collab-canvas {
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

.canvas-cursors {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.cursor {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.7;
  transition: left 0.05s linear, top 0.05s linear;
  box-shadow: 0 0 8px currentColor;
}

/* Toolbar */
.canvas-toolbar {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.toolbar-colors,
.toolbar-widths {
  display: flex;
  gap: 4px;
}

.color-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}

.color-btn:hover {
  transform: scale(1.15);
}

.color-btn.active {
  border-color: rgba(255, 255, 255, 0.8);
}

.width-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.width-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.width-btn.active {
  background: rgba(255, 255, 255, 0.2);
}

.width-btn span {
  display: block;
  background: #fff;
  border-radius: 50%;
}

.toolbar-actions {
  display: flex;
  gap: 4px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.toolbar-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}

.toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.toolbar-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.status-users {
  white-space: nowrap;
}

.status-connection {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4444;
  transition: background 0.3s;
}

.status-connection.connected {
  background: #44ff88;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .canvas-toolbar {
    bottom: 8px;
    padding: 6px 10px;
    gap: 8px;
  }
  
  .color-btn {
    width: 18px;
    height: 18px;
  }
  
  .width-btn,
  .toolbar-btn {
    width: 24px;
    height: 24px;
  }
}
