textarea {
  width: 200px;
  height: 150px;
  padding: 10px;
  margin: 10px;
  font-size: 16px;
  background-color: #222;
  color: #fff;
  border: 1px solid #ccc;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  resize: vertical;
  outline: none;
}

textarea:focus {
  border-color: #429dff; /* Change border color on focus */
  box-shadow: 0 0 5px rgba(56, 152, 255, 0.5); /* Add focus glow */
}

.gen-graph {
  color: #fff;
  background-color: #222;
  padding: 10px;
  border: 1px solid #fff;
}
.gen-graph:hover {
  border: 1px solid #ccc;
}
.gen-graph:active {
  background-color: #111;
}

svg {
  width: 100%;
  height: 100%;
}
.node {
  fill: #2298ff;
  stroke: #fff;
  stroke-width: 1px;
  cursor: pointer;
}
.label {
  font-size: 15px;
  font-family: Arial, sans-serif;
  fill: #fff;
  pointer-events: none; /* Prevent interaction with the text */
  user-select: text; /* Allow the text to be selected */
}
.edge-label {
  font-size: 20px;
  font-family: Arial, sans-serif;
  fill: #ff4a4a;
}
.node.visited {
  fill: #f39c12; /* Change color for visited nodes */
  stroke: #c0392b;
  stroke-width: 2;
}

.edge {
  stroke: #3498db; /* Default color for edges */
  stroke-width: 1;
}

.edge.highlighted {
  stroke: #ff5733; /* Highlighted edges during processing */
  stroke-width: 2;
}

.distance-label {
  font-size: 15px;
  font-family: Arial, sans-serif;
  fill: rgb(255, 255, 255);
  pointer-events: none;
  user-select: text;
}

input {
  width: 80px;
  padding: 5px;
  margin: 10px;
  font-size: 16px;
  background-color: #222;
  color: #fff;
}
