.json-content {
  flex: 1;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid;
  position: relative;
}

.json-content :is(textarea) {
  width: 100%;
  height: 100%;
  outline: none;
  resize: none;
  font-size: 0.875rem;
  border: 0px;
}

#input {
  overflow: auto;
  scrollbar-width: none;
}

#input::-webkit-scrollbar {
  display: none;
}

.controls {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: inline-flex;
  gap: 0.4rem;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background-color: transparent;
  border: 1px solid #22c55e;
  color: #374151;
  cursor: pointer;
  padding: 0.25rem;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;

  &:hover {
    border-color: #16a34a;
    color: #1f2937;
  }

  &:focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
  }

  & > * {
    display: block;
  }
}

.icon-button img {
  width: 1.25rem;
  height: 1.25rem;
}
