import styled from "styled-components";

/* styles for header component authenticated users */
export const Navbar = styled.nav`
  background-color: transparent;
  /* position: absolute; */
  z-index: 555;
  position: fixed;
  width: 100%;
`;

export const NavHeader = styled.div`
  background-color: rgba(255, 255, 255, 1);
  border-bottom: 1px solid #c6cccc;
  display: flex;
  font-family: "Nunito";
  align-items: center;
  justify-content: space-between;
  padding: 17px 30px;
  margin-left: 280px;
`;

export const NavGroup = styled.div`
  /* width: 24%; */
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 55px;

  .notification__bell {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    background: #e6f9f9;
    width: 44px;
    height: 44px;
  }
`;

export const Nav = styled.ul`
  display: flex;
  list-style: none;
  align-items: center;
  margin: 0 10px;
  padding: 0 5px;
  width: 57%;

  & li {
    display: flex;
    align-items: center;
    margin: 0 10px;
  }

  & li:nth-of-type(1) {
    margin-right: 75px;
    margin-left: 35px;
  }

  & a.active {
    color: rgba(0, 194, 194, 1) !important;
    font-size: 21px;
    font-weight: 600;
    & svg path {
      stroke: rgba(0, 194, 194, 1);
    }
  }

  & a {
    text-decoration: none;
    display: flex;
    align-items: center;
    color: #4a4d4d;
    font-size: 15px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    position: relative;

    &:hover:after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -9px;
      width: 40px;
      height: 4px;
      background-color: rgba(0, 194, 194, 1);
      transition: width 0.3s ease-in-out;
    }

    & svg {
      margin-right: 12px;
    }

    &:hover {
      color: rgba(0, 194, 194, 1);
      // border-bottom: 2px solid rgba(0, 194, 194, 1);
      & svg path {
        stroke: rgba(0, 194, 194, 1);
      }
    }
  }
`;

export const SearchInputGroup = styled.div`
  background-color: transparent;
  /* width: 45%; */
  transition: 0.5s;
  display: flex;
  align-items: center;
  padding: 9px;
  margin: 0 15px;
  position: relative;

  &::placeholder {
    color: rgba(173, 178, 178, 1);
  }

  & .search-result-wrapper {
    position: absolute;
    width: 300px;
    height: 221px;
    background-color: #ffffff;
    box-shadow: 0px 2px 40px rgba(0, 0, 0, 0.08);
    border-radius: 29px;
    top: 56px;
    right: -23px;
    padding: 25px;

    & p {
      font-size: 16px;
      line-height: 22px;
      font-family: "Nunito";
      color: #000000;
      margin-bottom: 16px;

      &:last-child {
        margin-bottom: 0;
      }

      & span {
        font-weight: 700;
      }
    }
  }
`;

export const SearchInput = styled.input`
  background-color: transparent;
  padding: 0 8px;
  font-size: 16px;
  font-weight: 400;
  border: none;
  color: rgba(173, 179, 179, 1);
  transition: 0.5s;
  outline: none;
  box-shadow: none;
  width: 100%;
  &:active {
    border: none;
    outline: none;
    box-shadow: none;
  }
  &::placeholder {
    color: rgba(173, 178, 178, 1);
  }
`;

export const AdminAccount = styled.div`
  display: flex;
  gap: 30px;
  .admin__info {
    .admin_name {
      color: #212b36;
      text-align: right;
      font-family: "Nunito", sans-serif;
      font-size: 14px;
      font-weight: 600;
      line-height: normal;
    }

    .admin_role {
      color: #637381;
      text-align: right;
      font-family: "Nunito", sans-serif;
      font-size: 12px;
      font-weight: 600;
      line-height: normal;
    }
  }

  .profile__box {
    display: flex;
    align-items: center;
    gap: 10px;
    .img_box {
      width: 46px;
      height: 46px;
      background-color: #637381;
      border-radius: 100%;

      img {
        width: 100%;
        height: 100%;
        border-radius: 100%;
      }
    }
  }
`;
