.schema-visualizer {
    border-radius: 10px;
    padding-top: 20px;
    padding-bottom: 20px;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background: #ffffff;
  color: #121212;
}



.schema-visualizer h1 {
  font-size: 1.9rem;
  background: linear-gradient(to right, #6A0DAD, #FFD700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.schema-visualizer details {
  margin: 1rem auto 0;
  max-width: 900px;
  padding: 0 1rem;
}

.schema-visualizer summary {
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
}

.schema-visualizer textarea {
  width: 100%;
  padding: 1rem;
  margin-top: 0.5rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #ffffff;
  color: #121212;
}

.schema-visualizer .controls {
  margin: 1rem auto;
  max-width: 900px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 0 1rem;
}

.schema-visualizer .controls button {
  padding: 0.5rem 1rem;
  font-weight: bold;
  background: #6A0DAD;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.schema-visualizer svg {
  width: 100%;
  height: 650px;
  background: #f0f8ff;
  border-radius: 8px;
  margin-bottom: 2rem;
  display: none;
}

.schema-visualizer svg.visible {
  display: block;
}

text.rel,
text.sub-label {
  fill: black !important;
}

@media (max-width: 600px) {
  .schema-visualizer svg {
    height: 400px;
  }
} 