.tool-container {
  max-width: 700px;
  margin: 40px auto;
  padding: 0 20px;
}

.tool-container h1 {
  font-size: 24px;
  margin-bottom: 8px;
}

.tool-container p {
  color: #666;
  margin-bottom: 16px;
}

#dataInput {
  width: 100%;
  height: 140px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: monospace;
  font-size: 13px;
  resize: vertical;
  margin-bottom: 14px;
}

.options-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.option {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: #555;
}

.option select {
  margin-top: 4px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 13px;
}

.option input[type="color"] {
  margin-top: 4px;
  width: 40px;
  height: 30px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.link-btn {
  background: none;
  border: none;
  color: #185fa5;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

.link-btn:hover {
  text-decoration: underline;
}

.action-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.action-row button {
  padding: 10px 22px;
  background: #185fa5;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}

.action-row button:hover {
  background: #0c447c;
}

.action-row button.secondary {
  background: white;
  color: #185fa5;
  border: 1px solid #185fa5;
}

.action-row button.secondary:hover {
  background: #f0f6fc;
}

.canvas-wrap {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  justify-content: center;
}

#chartCanvas {
  max-width: 100%;
  height: auto;
}

.status-msg {
  margin-top: 10px;
  font-size: 13px;
  color: #a71a1a;
}

@media (max-width: 500px) {
  .options-row {
    flex-direction: column;
    align-items: flex-start;
  }
}