import styled from "styled-components";

export const CardContainer = styled.div`
  background-color: rgba(255, 255, 255, 1);
  font-family: "Nunito";
  width: 100%;
  border-radius: 30px;
  display: flex;
`;

export const CardLeftSection = styled.div`
  width: 26%;
  background-color: rgba(0, 194, 194, 0.1);
  padding: 41px 14px 30px 10px;
  border-radius: 30px 0 0 30px;
  transition: all 0.9s;

  h1 {
    font-size: 22px;
    font-weight: 700;
    color: #313333;
    margin-bottom: 16px;
    text-align: center;
  }

  p {
    color: #313333;
    padding: 3px 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    cursor: pointer;

    &.active {
      background-color: rgba(0, 153, 153, 0.1);
      font-weight: 600;
    }
  }

  .folder__structure {
    .folder__group {
      margin-bottom: 8px;
      transition: all 0.3s;

      p,
      span {
        display: flex;
        align-items: center;
        margin-bottom: 0;
      }

      p {
        font-weight: 500;
        font-size: 14px;
        color: #313333;
      }

      span {
        margin-right: 6px;
      }

      svg {
        margin-right: 12px;
      }

      .api__info {
        margin-left: 18px;
        .api__type {
          color: #e6ad0e;
          margin-right: 5px;
        }
      }
    }

    .folder__open_group {
      margin-left: 18px;

      svg:first-child {
        transform: rotate(90deg);
      }
    }
  }
`;

export const CardRightSection = styled.div`
  width: 74%;
  padding: 21px 25px;
  border-radius: 0 30px 30px 0;

  .top__header {
    display: flex;
    column-gap: 15px;
    margin-bottom: 17px;

    h3 {
      margin-bottom: 8px;
    }

    .dropdown-content div {
      height: 44px;
    }
  }

  .details__section {
    .new__section {
      padding-top: 15px;
      border-top: 1px solid #d9d9d9;

      p {
        margin-bottom: 0;
      }
    }
    img {
      width: 100%;
      margin-bottom: 17px;
    }
    h2 {
      color: #313333;
      font-weight: 600;
      font-size: 24px;
      margin-bottom: 14px;
    }

    h4 {
      font-weight: 600;
      font-size: 18px;
      color: #000000;
      margin-bottom: 15px;
    }

    p {
      color: #000000;
      margin-bottom: 20px;
      font-size: 13px;
    }
  }
`;
