import styled from "styled-components";
import { NavLink } from "react-router-dom";

export const NavWrapper = styled.nav`
  background-color: #ffffff;
  width: 61px;
  position: fixed;
  height: 625px;
  /* top: 10%; */
  left: 0;
  overflow-x: hidden;
  padding: 35px 0;
  border-radius: 0 30px 30px 0;
  z-index: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;

  @media screen and (max-width: 768px) {
    display: none;
  }
`;

export const NavItems = styled.div`
  display: flex;
  flex-direction: column;
  // justify-content: space-between;
`;

export const NavItem = styled.div`
  text-align: center;
`;

export const NavLinkStyled = styled.a`
  color: rgba(95, 95, 95, 0.479);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  text-align: center;
  transition: all 0.3s ease;

  .text {
    font-size: 9px;
    color: #adb3b3;
  }

  &:hover {
    // background-color: rgba(22, 254, 165, 0.266);
    color: rgba(22, 254, 165, 0.956);
    background: rgba(0, 194, 194, 0.1);
  }

  &.active {
    background-color: rgba(0, 194, 194, 0.1);
    color: #00c2c2;
    position: relative;

    &::before {
      content: "";
      height: 110%;
      width: 5px;
      border-radius: 0 10px 10px 0;
      position: absolute;
      top: -5%;
      left: 0;
      display: block;
      background: rgba(58, 194, 194, 1);
    }

    span {
      color: #00c2c2;
    }

    svg {
      path {
        stroke: #00c2c2;
      }
    }
  }
`;

export const Icon = styled.span`
  margin: 0;
  color: #adb3b3;
  margin-bottom: 0px;
  font-size: 16px;

  // &:hover {
  //   // background-color: rgba(22, 254, 165, 0.266);
  //   color: #00C2C2;
  //   background: rgba(0, 194, 194, 0.1);

  // }

  // &.active {
  //   background-color: rgba(0, 194, 194, 0.1);
  //   color: #3AC2C2;
  //   position: relative;

  //   &::before {
  //     content: "";
  //     height: 110%;
  //     width: 5px;
  //     border-radius: 0 10px 10px 0;
  //     position: absolute;
  //     top: -5%;
  //     left: 0;
  //     display: block;
  //     background: rgba(22, 254, 165, 0.956);
  //   }
  // }
`;

export const IconContainer = styled.div`
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  font-size: 20px;
  padding: 10px;
  cursor: pointer;

  svg {
    color: #adb3b3;
    transform: rotate(360deg);
    font-size: 18px;
    margin-bottom: -8px;
  }

  p {
    font-size: 9px;
    color: #adb3b3;
    margin-top: 10px;
  }

  &:hover {
    // background-color: rgba(22, 254, 165, 0.266);
    color: rgba(22, 254, 165, 0.956);
    background: rgba(0, 194, 194, 0.1);
  }

  &.active {
    background-color: rgba(0, 194, 194, 0.1);
    color: #3ac2c2;
    position: relative;

    &::before {
      content: "";
      height: 110%;
      width: 5px;
      border-radius: 0 10px 10px 0;
      position: absolute;
      top: -5%;
      left: 0;
      display: block;
      background: rgba(22, 254, 165, 0.956);
    }
  }
`;
