.graph-view-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px;
}
.graph-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.graph-view-header h2 {
  color: #fff;
  margin: 0;
  font-size: 1.5rem;
}
.graph-view-header-actions {
  display: flex;
  gap: 10px;
}
.graph-view-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.graph-view-canvas {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.graph-view-sidebar {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 15px;
}
.graph-view-sidebar h3 {
  color: #fff;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.1rem;
}
.graph-view-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}
.graph-view-controls button {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.graph-view-controls button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}
.graph-view-controls button.active {
  background: rgba(100, 150, 255, 0.3);
  border-color: rgba(100, 150, 255, 0.5);
}

.graph-left-column {
  padding: 20px;
  height: 100%;
  overflow-y: auto;
  background-color: #ffffff;
  color: #000000;
}
.graph-left-column .section-container {
  margin-bottom: 30px;
}
.graph-left-column .section-container .section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 8px;
}
.graph-left-column .node-list .loading-state {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(0, 0, 0, 0.6);
}
.graph-left-column .node-list .loading-state .spinner-small {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: #4FC3F7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.graph-left-column .node-list .node-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s;
  color: rgba(0, 0, 0, 0.9);
}
.graph-left-column .node-list .node-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.graph-left-column .node-list .node-item .node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s;
}
.graph-left-column .node-list .node-item .node-dot:hover {
  transform: scale(1.2);
}
.graph-left-column .node-list .node-item .node-dot.trigger {
  background-color: #4CAF50;
}
.graph-left-column .node-list .node-item .node-dot.intent {
  background-color: #2196F3;
}
.graph-left-column .node-list .node-item .node-dot.regex {
  background-color: #FF9800;
}
.graph-left-column .node-list .node-item .node-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  background-color: #f5f5f5;
  border-radius: 2px;
  padding: 5px 12px;
}
.graph-left-column .node-list .node-item .trigger-count {
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.5);
  margin-left: 5px;
}
.graph-left-column .node-list .intent-group {
  margin-bottom: 8px;
}
.graph-left-column .node-list .intent-group .intent-item {
  font-weight: 500;
}
.graph-left-column .node-list .intent-group .trigger-children {
  margin-left: 20px;
}
.graph-left-column .node-list .intent-group .trigger-children .child-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.6);
  transition: all 0.2s;
}
.graph-left-column .node-list .intent-group .trigger-children .child-item:hover {
  color: rgba(0, 0, 0, 0.9);
  background-color: rgba(0, 0, 0, 0.03);
}
.graph-left-column .node-list .intent-group .trigger-children .child-item .connector {
  color: rgba(0, 0, 0, 0.3);
  font-family: monospace;
}
.graph-left-column .controls-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.graph-left-column .controls-group .control-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  cursor: pointer;
  color: #000;
  transition: all 0.2s;
}
.graph-left-column .controls-group .control-btn:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: #2196F3;
}
.graph-left-column .controls-group .control-btn .material-symbols-outlined {
  font-size: 18px;
}

#graph-json-container,
#graph-d3-container,
#graph-adjacency-container {
  height: 100%;
  padding: 10px;
}
#graph-json-container #graph-matrix-codemirror-wrapper,
#graph-json-container #graph-d3-codemirror-wrapper,
#graph-json-container #graph-adjacency-codemirror-wrapper,
#graph-d3-container #graph-matrix-codemirror-wrapper,
#graph-d3-container #graph-d3-codemirror-wrapper,
#graph-d3-container #graph-adjacency-codemirror-wrapper,
#graph-adjacency-container #graph-matrix-codemirror-wrapper,
#graph-adjacency-container #graph-d3-codemirror-wrapper,
#graph-adjacency-container #graph-adjacency-codemirror-wrapper {
  height: 100%;
}
#graph-json-container #graph-matrix-codemirror-wrapper .cm-editor,
#graph-json-container #graph-d3-codemirror-wrapper .cm-editor,
#graph-json-container #graph-adjacency-codemirror-wrapper .cm-editor,
#graph-d3-container #graph-matrix-codemirror-wrapper .cm-editor,
#graph-d3-container #graph-d3-codemirror-wrapper .cm-editor,
#graph-d3-container #graph-adjacency-codemirror-wrapper .cm-editor,
#graph-adjacency-container #graph-matrix-codemirror-wrapper .cm-editor,
#graph-adjacency-container #graph-d3-codemirror-wrapper .cm-editor,
#graph-adjacency-container #graph-adjacency-codemirror-wrapper .cm-editor {
  height: 100%;
  font-size: 13px;
  font-family: "Courier New", monospace;
}
#graph-json-container #graph-matrix-codemirror-wrapper .cm-editor .cm-scroller,
#graph-json-container #graph-d3-codemirror-wrapper .cm-editor .cm-scroller,
#graph-json-container #graph-adjacency-codemirror-wrapper .cm-editor .cm-scroller,
#graph-d3-container #graph-matrix-codemirror-wrapper .cm-editor .cm-scroller,
#graph-d3-container #graph-d3-codemirror-wrapper .cm-editor .cm-scroller,
#graph-d3-container #graph-adjacency-codemirror-wrapper .cm-editor .cm-scroller,
#graph-adjacency-container #graph-matrix-codemirror-wrapper .cm-editor .cm-scroller,
#graph-adjacency-container #graph-d3-codemirror-wrapper .cm-editor .cm-scroller,
#graph-adjacency-container #graph-adjacency-codemirror-wrapper .cm-editor .cm-scroller {
  overflow: auto;
  height: 100%;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
