/*
 * 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.
 */

@perfix-cls: ant-tugraph;
.@{perfix-cls}-text-tabs {
  color: rgba(0, 10, 26, 0.68);
  font-size: 16px;
  display: flex;

  &-inline {
    .@{perfix-cls}-text-tabs-item {
      flex: none;
    }
  }

  &-item {
    cursor: pointer;
    flex: 1 1;
    white-space: nowrap;
    text-align: center;
  }

  &-text {
    .@{perfix-cls}-text-tabs-item {
      &:not(:last-child) {
        margin-right: 32px;
      }

      &-active {
        color: var(--primary-text-color);
        font-weight: 500;
      }
    }
  }

  &-card {
    background-image: linear-gradient(
      180deg,
      rgba(22, 80, 255, 0.02) 0%,
      rgba(22, 80, 255, 0.06) 100%
    );
    width: 100%;
    font-size: 14px;
    height: 36px;
    .@{perfix-cls}-text-tabs-item {
      padding: 12px;
      position: relative;
      color: #6a6b71;

      &-active {
        z-index: 1;
        border-radius: 8px 8px 0 0;
        color: #1650ff;
        font-weight: 500;

        &::after,
        &::before {
          width: 16px;
          height: 16px;
          background-color: #f6f8ff;
          position: absolute;
          bottom: 0;
          content: "";
          display: block;
          border-radius: 8px;
          z-index: 1;
        }

        &::before {
          left: -16px;
        }

        &::after {
          right: -16px;
        }

        .@{perfix-cls}-outer-left,
        .@{perfix-cls}-outer-right {
          position: absolute;
          bottom: 0;
          width: 8px;
          height: 8px;
          background-color: #fff;
        }

        .@{perfix-cls}-outer-right {
          right: -12px;
        }

        .@{perfix-cls}-outer-left {
          left: -8px;
        }
      }
    }
  }
}
