.node {
  width: 200px;
  background-color: white;
  border: 2px solid;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-size: 12px;
  overflow: hidden;
  user-select: none;
  transition: box-shadow 0.2s, transform 0.1s;
  z-index: 1;
}

.node:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

.node.selected {
  box-shadow: 0 0 0 2px #1677ff;
  z-index: 3;
}

.nodeHeader {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  color: white;
  font-weight: 500;
  cursor: move;
}

.nodeIcon {
  margin-right: 8px;
  display: flex;
  align-items: center;
}

.nodeTitle {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nodeDeleteButton {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  color: white;
  margin-left: 4px;
  opacity: 0.7;
  transition: all 0.2s;
}

.nodeDeleteButton:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.nodeBody {
  padding: 8px 0;
  background-color: white;
}

.nodeInputs, .nodeOutputs {
  margin: 0;
  padding: 4px 0;
}

.nodePort {
  display: flex;
  align-items: center;
  padding: 4px 12px;
  margin: 2px 0;
}

.nodePortLabel {
  margin: 0 8px;
  font-size: 12px;
  color: #666;
}

.nodeHandle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #1677ff;
  cursor: crosshair;
  z-index: 10;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.nodeHandle:hover {
  transform: scale(1.3);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.3);
}

.nodeHandle::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background-color: transparent;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.nodeHandleHovered {
  transform: scale(1.3);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.3);
}

.nodeInputs .nodePort {
  justify-content: flex-start;
}

.nodeOutputs .nodePort {
  justify-content: flex-end;
}

.nodeModelInfo {
  padding: 6px 8px;
  font-size: 13px;
  color: #555;
  font-weight: 500;
  border-bottom: 1px dashed #e0e0e0;
  margin-bottom: 8px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-color: rgba(211, 173, 247, 0.1);
  border-radius: 4px;
  margin: 4px 8px 8px 8px;
} 