/**
 * @license
 * Copyright 2024 The Model Explorer Authors. All Rights Reserved.
 *
 * 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.
 * ==============================================================================
 */

@use 'variables';

$block_width: 30px;
$block_height: 14px;

.container {
  height: fit-content;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 8px;

  &.hide {
    display: none;
  }

  table {
    border-spacing: 0;
    border-collapse: collapse;
    padding: 0;
    font-size: 11px;

    .key {
      margin-right: 4px;
      box-sizing: border-box;
    }

    .op-node-key {
      width: $block_width;
      height: $block_height;
      border-radius: 5px;
      border: 1px solid #666;
      background-color: #fff;
    }

    .group-node-key {
      width: $block_width;
      height: $block_height;
      border: 1px solid #777;
      border-radius: 5px;
      background-color: #eaeaf2;
    }

    .artificial-layer-key {
      border: 1px solid variables.$artificial-layer;
      width: $block_width;
      height: $block_height;
      background-color: #f1f1f1;
    }

    .selected-node-key {
      width: $block_width;
      height: $block_height;
      border: 2px solid variables.$selection-color;
      border-radius: 5px;
      background-color: #c2e7ff;
    }

    .identical-group-key {
      width: $block_width;
      height: $block_height;
      border: 1px solid #777;
      background-color: #e2edff;
    }

    .input-key {
      width: $block_width;
      height: $block_height;
      border-radius: 5px;
      border: 2px solid variables.$incoming-edge-color;
    }

    .output-key {
      width: $block_width;
      height: $block_height;
      border-radius: 5px;
      border: 2px solid variables.$outgoing-edge-color;
    }

    .shortcut {
      color: #777;
      font-size: 10px;
      line-height: 10px;
    }

    .divider {
      height: 1px;
      border-top: 1px solid #ccc;
      margin: 8px 0 4px;
    }
  }
}
