/* Main layout */
#graph-wrapper {
  display: flex;
  height: 90vh;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Sidebar */
#sidebar {
  width: 280px;
  padding: 15px;
  border-right: 1px solid #eee;
  background-color: #f9f9f9;
  font-size: 14px;
  overflow-y: auto;
}

#search-node {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 12px;
}

#toggle-cluster {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

#node-info {
  margin-top: 15px;
  padding: 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.4;
}

/* Sigma container */
#sigma-container {
  flex: 1;
  height: 100%;
  background-color: #fff;
  position: relative;
}

/* Legend */
#legend-block {
  margin-top: 20px;
}

#legend-block h3 {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: bold;
}

#legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  font-size: 13px;
}

.legend-color {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 8px;
  border: 1px solid #aaa;
}

/* Node highlight style */
.sigma-node.highlighted {
  stroke: #ff0000;
  stroke-width: 2px;
}

.sigma-node {
  transition: transform 0.3s;
}

.sigma-node.highlighted {
  stroke: #222;
  stroke-width: 3;
  transform: scale(1.5);
}

/* Cluster toggle checkbox */
#group-toggle {
  margin: 10px 0;
  display: flex;
  align-items: center;
  font-size: 14px;
  gap: 6px;
}
