/* JSON Formatter Page Specific CSS */

/* Input Textarea & Viewport layout */
.json-textarea {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  resize: none;
  min-height: 550px;
  padding: 1.25rem !important;
  background: rgba(15, 23, 42, 0.6) !important;
  border-radius: 16px !important;
}

.output-viewport {
  position: relative;
  min-height: 550px;
  height: 550px;
  background: #090d16;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.25rem;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.output-viewport:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.json-code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Syntax Highlighting Colors */
.json-code .key {
  color: #c084fc; /* Light Purple for Keys */
  font-weight: 600;
}

.json-code .string {
  color: #34d399; /* Emerald for Strings */
}

.json-code .number {
  color: #fbbf24; /* Amber for Numbers */
}

.json-code .boolean {
  color: #22d3ee; /* Neon Cyan for Booleans */
  font-weight: 600;
}

.json-code .null {
  color: #94a3b8; /* Muted Slate for Null */
  font-style: italic;
}

/* JSON Tree Viewer */
.json-tree-container {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.tree-node {
  margin: 2px 0;
}

.tree-node-header {
  padding: 2px 6px;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.tree-node-header:hover {
  background: rgba(255, 255, 255, 0.03);
}

.tree-key {
  font-weight: 600;
  color: #7dd3fc; /* Light Blue for Tree Keys */
}

.tree-toggle {
  width: 14px;
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.border-start-glass {
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Invalid JSON Error Panel */
.bg-error-dark {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  backdrop-filter: blur(8px);
  z-index: 5;
}

/* Google AdSense Layout & Placeholders */
.adsense-banner-top, .adsense-banner-bottom {
  width: 100%;
  display: flex;
  justify-content: center;
}

.adsense-placeholder {
  width: 100%;
  max-width: 970px;
  min-height: 90px;
  background: rgba(30, 41, 59, 0.25);
  border: 1px dashed var(--glass-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ads-label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

/* Select inputs custom dark styled */
.select-dark-glassy {
  background-color: rgba(15, 23, 42, 0.7) !important;
  color: var(--text-light) !important;
  border: 1px solid var(--glass-border) !important;
  font-size: 0.8rem;
  padding: 0.35rem 1.75rem 0.35rem 0.75rem;
  cursor: pointer;
}

.select-dark-glassy option {
  background-color: #0f172a;
  color: var(--text-light);
}
