/* static/styles.css */

body {
  margin: 0;
  background: radial-gradient(circle at center, #0b0b1a, #010109);
  color: white;
  font-family: monospace;
  overflow: hidden;
}

#constellation {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -1; /* Move canvas behind UI */
}

#ui {
  position: absolute;
  top: 2rem; left: 2rem;
  background: rgba(10, 10, 20, 0.65); /* Slightly more opaque */
  padding: 1.5rem;
  border-radius: 0.5rem;
  backdrop-filter: blur(5px);
  max-width: 40rem; /* Wider for text */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
  margin-top: 0;
  color: gold;
}

input {
  width: calc(75% - 1rem); /* Adjust for padding */
  padding: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-family: monospace;
  font-size: 1rem;
}

button {
  background: gold;
  border: none;
  color: black;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-family: monospace;
  font-weight: bold;
  font-size: 1rem;
}

#status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

pre#output {
  white-space: pre-wrap;
  overflow-y: auto;
  max-height: 60vh;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1rem;
  line-height: 1.6;
}

/* --- New classes for structured output --- */
.layer-title {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: gold;
}

.layer-title.texture {
  color: cyan;
}

.list-item {
  display: block;
  margin-left: 1rem;
  color: rgba(255,255,255,0.9);
}

.text-preview {
  display: block;
  margin-left: 2rem;
  color: rgba(255,255,255,0.7);
  font-style: italic;
  margin-bottom: 0.5rem;
}