.canvas {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background-color: #fafafa;
}

.transformLayer {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-origin: 0 0;
  transition: transform 0.1s ease;
}

.grid {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-size: 20px 20px;
  background-image:
    linear-gradient(to right, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
}

.edges {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.nodes {
  position: relative;
  z-index: 3;
}

.controls {
  position: absolute;
  right: 15px;
  bottom: 15px;
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 100;
  color: #000000;
}

.controls button {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9d9d9;
  background-color: rgb(0, 153, 255);
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}

.controls button:hover {
  border-color: #1677ff;
  color: #1677ff;
}

.controls span {
  margin: 0 5px;
  min-width: 40px;
  text-align: center;
}

.autoArrangeButton {
  margin-left: 10px;
}

.autoArrangeButton svg {
  color: #ffffff;
}

.autoArrangeButton:hover svg {
  color: #1677ff;
}

.arranging {
  background-color: #e6f7ff !important;
  border-color: #1677ff !important;
  animation: pulse 1.5s infinite;
}

.arranging svg {
  color: #1677ff !important;
}

@keyframes pulse {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

.placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}

.connectionLine {
  pointer-events: none;
  animation: dash 1s linear infinite;
  filter: drop-shadow(0 0 3px rgba(22, 119, 255, 0.4));
}

@keyframes dash {
  from {
    stroke-dashoffset: 10;
  }
  to {
    stroke-dashoffset: 0;
  }
} 