import styled from "styled-components";
import { Box, TextField, Typography } from "@mui/material";
import ImagePicker from "../../ImagePicker/ImagePicker";
import { PrimaryButton } from "../../Buttons/PrimaryButton/PrimaryButton";
import { Label } from "../../CheckBox/Label";

export const EditProfileContainer = styled(Box)`
  background-color: #fff;
  position: fixed;
  top: 50px;
  left: calc(50% - 310px);
  z-index: 150;
  padding: 36px 144px;
  width: 623px;
  max-height: 95vh;
  overflow-y: auto;

  @media screen and (max-width: 600px) {
    height: 100vh;
    max-height: 100vh;
    min-height: 90vh;
    width: 100vw;
    top: 0;
    left: 0;
    padding: 38px 18px;
  }
`;

export const ProfileImageContainer = styled(Box)`
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
`;

export const ProfileImagePicker = styled(ImagePicker)`
  background: none;
  background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='100' ry='100' stroke='%235A3984FF' stroke-width='2' stroke-dasharray='7%2c 12' stroke-dashoffset='44' stroke-linecap='square'/%3e%3c/svg%3e");
  border-radius: 100px;
  overflow: hidden;
  position: relative;
  margin-bottom: 5px;
`;

export const ProfileHeader = styled(Typography)`
  font-family: "Open Sans";
  font-size: 24px;
  font-weight: 700;
  margin-top: 9px;

  @media screen and (max-width: 600px) {
    font-size: 18px;
  }
`;

export const BackButton = styled(Box)`
  cursor: pointer;
  position: absolute;
  top: 40px;
  left: 40px;

  @media screen and (max-width: 600px) {
    left: 22px;
    svg {
      width: 20px;
      height: 20px;
    }
  }
`;

export const CloseButton = styled(Box)`
  cursor: pointer;
  position: absolute;
  top: 42px;
  right: 42px;

  @media screen and (max-width: 600px) {
    right: 22px;
    svg {
      width: 20px;
      height: 20px;
    }
  }
`;

export const InputFieldLabel = styled(Label)`
  position: relative;
  bottom: -14px;
  & label {
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    color: #808080;
    cursor: auto;
    letter-spacing: 0.2px;
  }

  @media screen and (max-width: 600px) {
    & label {
      font-size: 9px;
      margin-top: -3px;
    }
  }
`;

export const InputField = styled(TextField)`
  & input {
    padding: 10px 16px;
    font-size: 16px;
  }

  @media screen and (max-width: 600px) {
    & input {
      padding: 12px 18px;
      font-size: 12px;
    }
  }
`;

export const SaveButton = styled(PrimaryButton)`
  font-size: 12px;
  letter-spacing: 1.5px;
`;

export const ButtonsContainer = styled(Box)`
  display: flex;
  margin-top: 28px;

  @media screen and (max-width: 600px) {
    margin-top: 100px;
    justify-content: space-between;
  }
`;

export const ErrorMessage = styled(Typography)`
  color: red;
  font-family: "Open Sans";
  position: relative;
  top: 20px;
  font-size: 14px;
`;

export const BasicInfo = styled(Box)``;

export const DetailsInfo = styled(Box)``;
