import styled from "styled-components";
import { FaArrowRight } from "react-icons/fa";
import BannerImg from "../assets/Vector19.png";
import InstructorBanner from "../assets/newLanguage.png";
import UpgradeIcon from "../assets/Feature.png";

export const InstructorContainer = styled.div`
  background: #fff;
  max-width: 232px;
  display: flex;
  /* align-items: center; */
  text-align: center;
  flex-direction: column;
  padding: 10px 0px;
  border-radius: 30px;

  .library_img {
    padding: 10px;
    margin-top: 20px;
  }

  /* GRACE PERIOD AND DEACTIVATED */

  &.grace_period {
    border-radius: 30.913px;
    border: 0.773px solid var(--Neutral-20, #dfe5e5);
    background: var(--Neutral-20, #dfe5e5);

    > div {
      border-radius: 30.913px;
      border: 0.773px solid var(--Neutral-20, #dfe5e5);
      background: var(--Neutral-20, #dfe5e5);

      > button {
        border-radius: 12px;
        background: var(--Neutral-50, #949999);
        box-shadow: 0px 10px 20px 0px rgba(254, 191, 16, 0.25);
      }
    }
  }
`;

export const Container = styled.div`
  background-color: transparent;
  max-width: 242px;
  display: flex;
  align-items: center;
  text-align: center;
  flex-direction: column;
  padding: 10px;
  border-radius: 30px;

  &.user_banner {
    background-color: #fff;
  }
`;

export const BannerWrapper = styled.div`
  position: relative;
  max-width: 232px;
  padding: 15px 16px 21px;
  overflow: hidden;
  border-radius: 30px;
  background: #fff;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  align-items: center;
  text-align: center;
  color: #23ffc8;
  /* background-image: url(${BannerImg}); */
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: contain;
  border: none;
  margin-bottom: 20px;
  width: 100%;

  .head_instructor {
    width: 100%;
    h3 {
      color: var(--Neutral-90, #313333);
      font-family: Nunito;
      font-size: 13.911px;
      font-style: normal;
      font-weight: 700;
      line-height: 15.457px; /* 111.111% */
      letter-spacing: 0.278px;

      &.personal_head {
        text-align: left;
      }
    }
  }

  .head_enterprise {
    text-align: left;
    color: var(--Neutral-90, #313333);
    font-family: Nunito;
    font-size: 13.911px;
    font-style: normal;
    font-weight: 700;
    line-height: 15.457px; /* 111.111% */
    letter-spacing: 0.278px;

    h3 {
      color: var(--Neutral-90, #313333);
      font-family: Nunito;
      font-size: 13.911px;
      font-style: normal;
      font-weight: 700;
      line-height: 15.457px; /* 111.111% */
      letter-spacing: 0.278px;
    }
  }

  .head {
    display: flex;
    align-items: center;
    margin-bottom: 10px;

    h3 {
      color: var(--neutral-70, #636666);
      font-family: Nunito;
      font-size: 16px;
      font-style: normal;
      font-weight: 600;
      line-height: 40px; /* 250% */
      letter-spacing: 0.32px;
      margin-right: 10px;
    }
    p {
      color: var(--neutral-50, #949999);
      font-family: Nunito;
      font-size: 12px;
      font-style: normal;
      font-weight: 400;
      line-height: 40px; /* 333.333% */
      letter-spacing: 0.24px;
    }
  }
`;

export const BannerTitle = styled.h1`
  font-size: 30px;
  margin: 0;
  font-weight: 800;
  line-height: 42px;
  color: #00c2c2;
`;

export const BannerSubtitle = styled.p`
  font-size: 18px;
  margin: 29px 0;
  color: #00c2c2;
  font-weight: 600;
`;

export const BannerImage = styled.img`
  width: 100%;
  max-width: 800px;
  margin-bottom: -15px;
  margin-top: -10px;
  opacity: 2;
  display: block;
  opacity: 1;
`;

export const BannerCTA = styled.button`
  background-color: #ffbf1e;
  color: #fff;
  border: none;
  padding: 10px 25px;
  border-radius: 10px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  transition: all 0.2s ease-in-out;
  margin: auto 0 10px;
  opacity: 1;

  &:hover {
    background-color: #0062cc;
    cursor: pointer;
  }
`;

export const ArrowIcon = styled(FaArrowRight)`
  margin-left: 0.5rem;
`;

export const AbsoluteSVG = styled.svg`
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
`;

export const Upgrade = styled.div`
  padding: 10px;
  margin-top: 20px;

  &.more-slot {
    height: 216px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
  }

  &.pending-delete_upgrade {
    opacity: 0.5;
  }
  .container {
    /* background-color: #fff; */
    border-radius: 23.185px;
    background: var(--Neutral-10, #f5f7f7);
    width: 100%;
    max-width: 232px;
    padding: 60px 0px 10px;
    /* border-radius: 30px; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    position: relative;
    &.red {
      background-color: #fff2f2;
      .upgrade_text {
        background: #f9545419;
        p {
          color: #f95454;
        }
      }
    }
    .star {
      position: absolute;
      &.star-1 {
        top: 10px;
        right: 40px;
      }
      &.star-3 {
        top: 15px;
        left: 55px;
        svg {
          width: 14px;
          height: 14px;
        }
      }
      &.star-2 {
        top: -50px;
        right: 70px;
        svg {
          width: 8px;
          height: 8px;
        }
      }
      &.star-4 {
        top: -20px;
        left: 60px;
        opacity: 0.5;
        svg {
          width: 6px;
          height: 6px;
        }
      }
    }
    button {
      font-size: 12px !important;
    }
    img {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      top: -45px;
      /* margin-top: -50%; */
    }

    .upgrade_text {
      background: rgba(0, 194, 194, 0.1);
      border-radius: 5px;
      padding: 5px 0;
      height: 32px;
      width: 100%;
      margin-bottom: 10px;
      margin-top: -10px;
      display: flex;
      justify-content: center;
      align-items: center;

      p {
        color: var(--Neutral-90, #313333);
        text-align: center;
        font-family: Nunito;
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        width: 100%;
      }
    }

    .reminder {
      color: var(--Neutral-70, #636666);
      text-align: center;
      font-family: Nunito;
      font-size: 14px;
      font-style: normal;
      font-weight: 400;
      width: 100%;
      max-width: 175px;
      margin: 0 auto;
    }

    p {
      color: var(--neutral-80, #4a4d4d);
      text-align: center;
      font-family: Nunito;
      font-size: 11.592px;
      font-style: normal;
      font-weight: 700;
      line-height: normal;
      letter-spacing: 0.773px;
      width: 70%;
      text-align: center;
      margin-top: 0px;

      span {
        color: var(--primary-color-main, #febf10);
        font-family: Nunito;
        font-size: 11.592px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        letter-spacing: 0.773px;
      }
    }
  }

  &.deactivated {
    .container {
      border-radius: 23.185px;
      background: var(--Neutral-30, #c6cccc);

      .upgrade_text {
        border-radius: 23.185px;
        background: var(--Neutral-30, #c6cccc);
      }

      > button {
        border-radius: 12px;
        background: var(--Neutral-50, #949999);
        box-shadow: 0px 10px 20px 0px rgba(254, 191, 16, 0.25);
      }
    }
  }
`;

export const Users = styled.div`
  border-radius: 20px;
  background: #f5f7f7;
  padding: 20px;
  width: 100%;

  .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;

    h4 {
      color: var(--neutral-70, #636666);
      font-size: 14px;
      font-style: normal;
      font-weight: 600;
      line-height: 40px; /* 285.714% */
      letter-spacing: 0.28px;
    }
    p {
      color: var(--secondary-color-main, #00c2c2);
      font-family: Nunito;
      font-size: 14px;
      font-style: normal;
      font-weight: 400;
      line-height: normal;
    }
  }

  .table {
    display: flex;
    flex-direction: column;

    .user {
      display: flex;
      /* align-items: center; */
      margin-top: 10px;
      justify-content: space-between;
      img {
        margin-right: 10px;
      }

      .text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: start;
        margin-right: 10px;

        h3 {
          color: var(--neutral-90, #313333);
          font-size: 13px;
          font-style: normal;
          font-weight: 600;
          line-height: normal;
          letter-spacing: 0.28px;
        }

        P {
          color: var(--neutral-90, #313333);
          font-size: 12px;
          font-style: normal;
          font-weight: 500;
          line-height: normal;
          letter-spacing: 0.24px;
        }
      }
    }
  }
`;

export const UploadProgressContainer = styled.div`
  border-radius: 30px;
  background: var(--white, #fff);
  padding: 10px;
  width: 100%;
  margin-bottom: 20px;
  .upload_icon {
    margin-bottom: 10px;
    p {
      color: var(--neutral-70, #636666);
      font-size: 16px;
      font-style: normal;
      font-weight: 700;
      line-height: 40px; /* 250% */
      letter-spacing: 0.32px;
    }

    img {
      width: 69px;
      height: 53px;
    }
  }

  .progress {
    .text {
      display: flex;
      justify-content: space-between;

      h5 {
        color: var(--neutral-70, #636666);
        font-family: Nunito;
        font-size: 12px;
        font-style: normal;
        font-weight: 600;
        line-height: 40px; /* 333.333% */
        letter-spacing: 0.24px;
      }
      p {
        color: var(--neutral-70, #636666);
        font-family: Nunito;
        font-size: 12px;
        font-style: normal;
        font-weight: 600;
        line-height: 40px; /* 333.333% */
        letter-spacing: 0.24px;
      }
    }
  }
`;

export const NewLanguage = styled.div`
  background-image: url(${InstructorBanner});
  background-size: cover;
  background-repeat: no-repeat;
  margin-top: 10px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: start;
  gap: 60px;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 18.548px;

  .top_section {
    display: flex;
    justify-content: space-between;
    align-items: center;

    .lession_cont {
      display: flex;
      align-items: center;
      border-radius: 6.183px;
      background: rgba(12, 13, 13, 0.1);
      padding: 3px;

      p {
        color: var(--white, #fff);
        font-family: Nunito;
        font-size: 10.82px;
        font-style: normal;
        font-weight: 700;
        line-height: 17.002px; /* 157.143% */
        letter-spacing: 0.216px;
      }

      svg {
        margin-right: 4px;
      }
    }

    .flag_cont {
      border-radius: 6.183px;
      background: rgba(12, 13, 13, 0.1);
      padding: 3px;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }

  .buttom_section {
    display: flex;
    justify-content: start;

    p {
      color: var(--white, #fff);
      font-family: Nunito;
      font-size: 14.911px;
      font-style: normal;
      font-weight: 700;
      line-height: 10.82px; /* 77.778% */
      letter-spacing: 0.278px;
    }
  }

  &.courses_personal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 20px;
    /* height: 140px; */
    /* width: 90%; */

    h3 {
      color: var(--white, #fff);
      font-family: Nunito;
      font-size: 20.313px;
      font-style: normal;
      font-weight: 700;
      line-height: 16.313px; /* 100% */
      letter-spacing: 0.326px;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }
    .line {
      display: flex;
      align-items: center;
      width: 90%;

      span {
        color: var(--neutral-80, #fff);
        text-align: center;
        font-family: Nunito;
        font-size: 13px;
        font-style: normal;
        font-weight: 700;
        line-height: 24px; /* 150% */
        letter-spacing: 0.32px;
        margin-left: 10px;
      }
    }
  }
`;

export const RecentAdded = styled.div`
  display: flex;
  flex-direction: column;
  padding: 10px 20px;
  margin-top: -30px;

  &.personal_added {
    margin-bottom: 30px;
  }
  &.courses {
    margin-top: 30px;
  }
  &.personal_courses {
    margin-top: 5px;
    margin-bottom: 20px;
  }
  .top_area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;

    h5 {
      color: var(--Neutral-90, #313333);
      font-family: Nunito;
      font-size: 13.911px;
      font-style: normal;
      font-weight: 700;
      line-height: 15.457px; /* 111.111% */
      letter-spacing: 0.278px;
      /* cursor: pointer; */
    }

    p {
      color: var(--Primary-color-main, #febf10);
      font-family: Nunito;
      font-size: 12px;
      font-style: normal;
      font-weight: 700;
      line-height: 15.457px; /* 128.804% */
      letter-spacing: 0.24px;
      cursor: pointer;
    }
  }
  .users_list {
    display: flex;
    gap: 12px;
  }

  .course_list {
    display: grid;
    justify-content: center;
    align-items: center;

    .course {
    }
  }

  .user {
    position: relative; /* Make the parent container relative */
    width: 40px;
    height: 40px;
  }

  .user::before {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #30d468;
    border-radius: 50%;
    bottom: 0;
    right: 0;
  }

  .user:nth-child(2)::before {
    background-color: #f39b33;
  }

  .user:nth-child(3)::before {
    background-color: #30d468;
  }

  .user:nth-child(4)::before {
    background-color: #c6cccc;
  }
`;
