/* Collaboration Status Styles */
.collaboration-status {
  position: fixed;
  top: 10px;
  right: 10px;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.collaboration-status.connected {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.collaboration-status.disconnected {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.collaboration-status.connecting {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

/* User Presence Indicators */
.user-presence-container {
  position: fixed;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 8px;
  z-index: 1000;
}

.user-presence {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-size: 12px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.user-presence.ai-user {
  background: rgba(74, 144, 226, 0.1);
  border-color: #4a90e2;
}

.user-presence.human-user {
  background: rgba(76, 175, 80, 0.1);
  border-color: #4caf50;
}

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

.user-name {
  font-weight: 500;
  color: #333;
}

.working-indicator {
  color: #666;
  font-size: 11px;
  font-style: italic;
}

/* Notification System */
.notification {
  position: fixed;
  top: 50px;
  right: 10px;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  z-index: 1001;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  max-width: 300px;
}

.notification.show {
  transform: translateX(0);
}

.notification-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.notification-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.notification-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* AI Activity Indicators */
.ai-activity-indicator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 16px;
  background: rgba(74, 144, 226, 0.95);
  color: white;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;
  align-items: center;
  gap: 8px;
}

.ai-activity-indicator.show {
  display: flex;
}

.ai-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Dark theme support */
.dark-theme .collaboration-status.connected {
  background-color: #155724;
  color: #d4edda;
  border-color: #28a745;
}

.dark-theme .collaboration-status.disconnected {
  background-color: #721c24;
  color: #f8d7da;
  border-color: #dc3545;
}

.dark-theme .collaboration-status.connecting {
  background-color: #856404;
  color: #fff3cd;
  border-color: #ffc107;
}

.dark-theme .user-presence {
  background: rgba(33, 37, 41, 0.9);
  color: #f8f9fa;
}

.dark-theme .user-name {
  color: #f8f9fa;
}

.dark-theme .working-indicator {
  color: #adb5bd;
}
