* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  min-height: 100vh;
  overflow: hidden;
}

#cursor-area {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

#sidebar {
  position: fixed;
  left: 20px;
  top: 20px;
  width: 220px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 16px;
  z-index: 100;
}

#status-section {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#connection-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

#status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #888;
}

#status-dot.connected {
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

#status-dot.disconnected {
  background: #f87171;
  box-shadow: 0 0 8px #f87171;
}

#status-text {
  font-size: 14px;
  font-weight: 500;
}

#room-info {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

#room-id {
  font-family: monospace;
  color: rgba(255, 255, 255, 0.8);
}

#users-section h3,
#actions-section h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

#user-list {
  list-style: none;
  max-height: 200px;
  overflow-y: auto;
}

#user-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 4px;
  transition: background 0.2s;
}

#user-list li:hover {
  background: rgba(255, 255, 255, 0.1);
}

#user-list li.me {
  background: rgba(255, 255, 255, 0.05);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.user-name {
  flex: 1;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.user-status.active {
  background: #4ade80;
}

.user-status.idle {
  background: #fbbf24;
}

.user-status.away {
  background: #6b7280;
}

#actions-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#action-buttons {
  display: flex;
  gap: 8px;
}

#action-buttons button {
  flex: 1;
  padding: 8px 4px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

#action-buttons button:hover {
  background: rgba(255, 255, 255, 0.25);
}

#action-buttons button:active {
  transform: scale(0.95);
}

.remote-cursor {
  position: absolute;
  pointer-events: none;
  z-index: 50;
  transform: translate(-2px, -2px);
}

.remote-cursor svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.cursor-label {
  position: absolute;
  left: 20px;
  top: 16px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
}

.remote-cursor:hover .cursor-label {
  opacity: 1;
}

#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
}

.toast {
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a2e;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.action-emoji {
  position: fixed;
  font-size: 32px;
  pointer-events: none;
  z-index: 150;
  transform: translate(-50%, -50%);
}

.sparkle {
  position: fixed;
  font-size: 20px;
  pointer-events: none;
  z-index: 150;
}

.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 150;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
