/* JS Formatter — tool-specific styles */

#outputPanel { overflow-y: auto; }

/* Empty / error states */
.js-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 13px;
  padding: 32px;
  text-align: center;
}

/* Output pre */
#jsOutput {
  flex: 1;
  margin: 0;
  padding: 14px 16px;
  font-family: 'Fira Code','Cascadia Code','JetBrains Mono',monospace;
  font-size: 12.5px;
  line-height: 1.75;
  color: #1e293b;
  white-space: pre;
  overflow: auto;
  background: transparent;
  word-break: normal;
}

/* Indent toggle */
.indent-toggle {
  display: flex;
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  height: 28px;
  align-self: center;
}

.indent-btn {
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  background: #f8fafc;
  border: none;
  cursor: pointer;
  line-height: 28px;
  transition: background 0.12s, color 0.12s;
}
.indent-btn + .indent-btn { border-left: 1px solid #e2e8f0; }
.indent-btn.active { background: #2563eb; color: #fff; }
.indent-btn:hover:not(.active) { background: #eff6ff; color: #2563eb; }

.indent-label {
  font-size: 11px;
  color: #94a3b8;
  align-self: center;
  white-space: nowrap;
}

@media (max-width: 600px) {
  #jsOutput { font-size: 11px; padding: 10px 12px; }
}
