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

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

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

.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.editor-col {
  display: flex;
  flex-direction: column;
}

.col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
}

.col-actions {
  display: flex;
  gap: 12px;
}

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

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

#jsonInput {
  width: 100%;
  height: 320px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: monospace;
  font-size: 13px;
  resize: vertical;
}

.json-output {
  width: 100%;
  height: 320px;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: white;
  font-family: monospace;
  font-size: 13px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.error-box {
  background: #fdeaea;
  color: #a71a1a;
  border: 1px solid #f3c6c6;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  font-family: monospace;
}

.action-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

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

.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;
}

.indent-label {
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.indent-label select {
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 13px;
}

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

@media (max-width: 700px) {
  .editor-grid {
    grid-template-columns: 1fr;
  }
}