/* Site-specific styles for qr-code-generator. Shared chrome (vars, base reset,
 * .btn, .topbar, .status colors, .footer) lives in /_chrome.css and is loaded
 * ahead of this file. */

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
  height: calc(100vh - 110px);
  min-height: 480px;
}

@media (max-width: 800px) {
  .grid {
    grid-template-columns: 1fr;
    height: auto;
  }
}

.pane {
  display: flex;
  flex-direction: column;
  background: var(--bg-pane);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  min-height: 320px;
}

.pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
  flex-wrap: wrap;
}

.pane-head label {
  font-size: 12px;
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-mute);
}

.opt select {
  font-family: var(--sans);
  font-size: 12px;
  padding: 4px 6px;
  background: var(--bg-elev);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 6px;
}

textarea#input {
  flex: 1;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  resize: none;
  overflow: auto;
  outline: none;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 120px;
}

textarea#input::placeholder {
  color: var(--fg-mute);
}

.output {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: auto;
  background: var(--bg-pane);
}

.output .placeholder {
  margin: 0;
  color: var(--fg-mute);
  font-size: 13px;
  font-family: var(--mono);
}

.output svg,
.output canvas,
.output img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  background: #ffffff;
  border-radius: 4px;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* The shared .status only sets typography + color variants — the pane needs an
 * internal border + padding to fit the layout. */
.status,
.meta {
  padding: 8px 12px;
  border-top: 1px solid var(--border);
}

.meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-mute);
}
