/* Node Edit Input - Floating input for renaming nodes */

.node-edit-input {
  position: fixed;
  z-index: 1002;
  transform: translateX(-50%);
  transition: opacity 0.2s ease;
}

.node-edit-input.hidden {
  display: none;
  opacity: 0;
}

.node-edit-input input {
  width: 400px;
  padding: 12px 16px;
  font-size: 14px;
  border: 2px solid #4a5fc1;
  border-radius: 8px;
  background: white;
  color: #222;
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.node-edit-input input::placeholder {
  color: #999;
}

.node-edit-input input:focus {
  border-color: #3d4fa3;
  box-shadow: 0 4px 16px rgba(74, 95, 193, 0.3);
}

/* Node Info Popup - Shows ID with copy button */

.node-info-popup {
  position: fixed;
  z-index: 1002;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: white;
  border: 2px solid #4a5fc1;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: opacity 0.2s ease;
}

.node-info-popup.hidden {
  display: none;
  opacity: 0;
}

.node-info-id {
  font-size: 14px;
  font-weight: 500;
  color: #222;
  user-select: all;
}

.node-info-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.node-info-copy:hover {
  background: #f5f5f5;
  border-color: #4a5fc1;
  color: #4a5fc1;
}

.node-info-copy:active {
  transform: scale(0.95);
}

/* ── Mobile Responsive ── */
@media (max-width: 480px) {
  .node-edit-input input {
    width: min(90vw, 400px);
  }
  .node-info-popup {
    max-width: min(90vw, 400px);
  }
}
