/**
 * Copyright 2024 Undistro Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.editor__output-result {
  list-style: none;
  display: none;
  flex-direction: column;
  gap: 1rem;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  margin: 0;
  padding-left: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  width: 100%;
  height: 100%;
  background-color: #1d1f21;
  overflow-y: auto;
}

.editor__output-result .editor__output-result-accordion {
  width: calc(100% - 4rem);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 1rem;
  background-color: #25282c;
  border-radius: 8px;
  cursor: pointer;
}

.editor__output-result .editor__output-result-accordion[data-open="false"] {
  height: 24px;
}

.editor__output-result .editor__output-result-accordion[data-open="true"] {
  background-color: #33373d;
  border: 1px solid #41464e;
}

.editor__output-result .editor__output-result-accordion:hover {
  background-color: #33373d;
}

.editor__output-result-accordion .result-accordion-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.editor__output-result-accordion .result-arrow {
  transition: transform 300ms;
}

.editor__output-result-accordion .result-accordion-expansible-content {
  transition: max-height 400ms, visibility 50ms;
  overflow-x: auto;
  overflow-y: hidden;
}

.editor__output-result-accordion[data-open="false"]
  .result-accordion-expansible-content {
  max-height: 0;
  visibility: hidden;
}

.editor__output-result-accordion[data-open="true"]
  .result-accordion-expansible-content {
  max-height: 450px;
  visibility: visible;
}

.editor__output-result-accordion[data-open="true"] .result-arrow {
  transform: rotate(90deg);
}
