/* Background and body */
body {
  font-family: Arial, sans-serif;
  background: linear-gradient(to right, #89f7fe, #66a6ff);
  display: flex;
  justify-content: center;
  padding: 30px;
  min-height: 100vh;
}

/* Container */
.container {
  width: 100%;
  max-width: 1000px;
  text-align: center;
  background: rgba(255,255,255,0.95);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Header */
h1 {
  color: #333;
  margin-bottom: 20px;
}

/* Controls */
.controls {
  margin-bottom: 20px;
}

input[type="number"] {
  padding: 8px 12px;
  width: 120px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

button {
  padding: 8px 15px;
  margin-left: 5px;
  font-size: 16px;
  cursor: pointer;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 5px;
  transition: 0.2s;
}

button:hover {
  background-color: #357ab7;
}

/* Tree container */
#treeContainer {
  width: 100%;
  height: 600px;
  overflow: auto;
  border-radius: 10px;
  background: #e0f7fa;
  border: 1px solid #ccc;
}

/* SVG node and lines */
.node-circle {
  fill: #ffd37a;
  stroke: #ffa500;
  stroke-width: 2px;
}

.node-text {
  font-weight: bold;
  text-anchor: middle;
  dominant-baseline: middle;
  font-size: 14px;
}

line {
  stroke: #555;
  stroke-width: 2px;
}
