/**
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you 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.
 */

.preview-box {
  position: relative;
  margin-top: 5px;

  &.collapsed {
    overflow-y: hidden;
  }
}

.view-more-btn {
  margin-top: 6px;
  color: #0c7ec8;
}

.md-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.md-split {
  display: flex;
  margin-top: 10px;
  gap: 16px;
  margin-bottom: 10px;
  max-height: 50vh;
}

.md-left {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.md-toolbar {
  gap: 2px;
  padding: 4px 8px;
  background: #fafafa;
  border: 1px solid #d9d9d9;
  border-radius: 4px 4px 0 0;
}

.md-textarea {
  flex: 1;
  min-height: 300px;
  border-radius: 0 0 4px 4px;
}

.md-right {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
}

.md-rendered {
  ::ng-deep {
    table {
      margin: 12px 0;
      th,
      td {
        border: 1px solid #d9d9d9;
        padding: 8px 12px;
      }
      th {
        background: #fafafa;
      }
    }

    blockquote {
      border-left: 4px solid #1890ff;
      padding-left: 12px;
      color: #595959;
    }

    code {
      background: #f5f5f5;
      padding: 2px 4px;
      border-radius: 3px;
    }
  }
}
