/* web/src/pages/Workflow/TeamGraphEditor/TeamGraphEditor.css */

/* Page layout */
.team-graph-editor {
  display: flex;
  height: 100vh;
  flex-direction: column;
}

.team-graph-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--bg-container);
  border-bottom: 1px solid var(--border-color);
}

.team-graph-editor-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.team-graph-editor-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.team-graph-editor-canvas {
  flex: 1;
  position: relative;
}

.team-graph-editor-panel {
  width: 320px;
  background: var(--bg-container);
  border-left: 1px solid var(--border-color);
  overflow-y: auto;
}

/* Agent Node styles */
.agent-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-container);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  min-width: 80px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.agent-node.selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-bg);
}

.agent-node:hover {
  border-color: var(--color-primary);
}

.agent-node-icon {
  margin-bottom: 8px;
}

.agent-node-name {
  font-size: 12px;
  color: var(--text-primary);
  text-align: center;
  max-width: 80px;
}

.agent-node-badge {
  font-size: 10px;
  color: var(--color-warning);
  margin-top: 4px;
}

.agent-node-handle {
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  border: 2px solid var(--bg-container);
}

/* Edge styles */
.react-flow__edge-path {
  stroke: var(--color-primary);
  stroke-width: 2;
}

.react-flow__edge.selected .react-flow__edge-path {
  stroke: var(--color-primary);
  stroke-width: 3;
}

.react-flow__edge-textbg {
  fill: var(--bg-container);
}

.react-flow__edge-text {
  fill: var(--text-secondary);
  font-size: 11px;
}

/* Toolbar styles */
.team-graph-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Panel styles */
.panel-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.panel-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.panel-content {
  padding: 16px;
}

.panel-section {
  margin-bottom: 16px;
}

.panel-section-title {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* Empty state */
.graph-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary);
}

/* React Flow background */
.react-flow__background {
  background: var(--bg-base);
}

/* Loading overlay */
.graph-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  z-index: 10;
}