import styled from "styled-components";

export const ModalCardContainer = styled.div`
  /* padding: 25px; */
  font-family: "Nunito";
  width: 100%;
  max-width: 720px;
`;

export const CloseModalButton = styled.div`
  background-color: rgba(255, 255, 255, 1);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  font-family: "Nunito";
  border-radius: 50%;
  margin-bottom: 8px;
  margin-left: auto;
`;

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

export const CardHeader = styled.div`
  width: 100%;
  text-align: center;

  .search-header {
    display: flex;
    align-items: center;
    position: relative;

    .more-options {
      width: 100%;
      border: 1px solid #adb2b2;
      padding: 15px 10px;
      right: 2px;
      bottom: -50px;
      border-radius: 15px;
      background-color: #f5f7f7;
      width: 114px;
      height: 70px;
      position: absolute;
      z-index: 10;

      ul {
        list-style: none;

        li {
          cursor: pointer;
          color: #7c8080;
          margin-bottom: 8px;
          font-weight: 600;
          font-size: 12px;
        }
      }
    }

    span {
      margin-left: 8px;
      cursor: pointer;
    }

    .search-box {
      border: 1px solid #dfe5e5;
      border-radius: 17px;
      display: flex;
      align-items: center;
      padding: 12px 12px 12px 40px;
      position: relative;
      width: 100%;
      svg {
        width: 24px;
        position: absolute;
        left: 12px;
      }

      input {
        border: none;
        background: transparent;
        font-size: 14px;
      }
    }
  }

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

    p {
      font-size: 20px;
      font-weight: 700;
      color: #313333;
    }

    button {
      width: 73px;
    }
  }

  h1 {
    font-size: 22px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 10px;
  }

  h6 {
    color: #313333;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
  }

  .report-title {
    font-size: 22px;
    font-weight: 700;
    color: #d29b00;
    margin-bottom: 25px;
    padding: 16px;
    text-align: center;
    border-radius: 22px;
    background: rgba(254, 241, 203, 0.5);
  }

  .report-subtitle {
    color: #636666;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    max-width: 350px;
    margin: 0 auto 25px;
  }
`;

export const CardBody = styled.div`
  width: 100%;
  /* display: flex; */
  margin: 10px auto 10px;
  justify-content: center;

  .del-chat-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.48px;
    color: #f95454;
    margin-bottom: 16px;
  }

  .del-chat-subtitle {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: #636666;
  }

  .account-type-details {
    background-color: #f5f7f7;
    border-radius: 15px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    margin: 10px 0;

    .avatar__box {
      max-width: 50px;
      width: 100%;
      height: 50px;
      border-radius: 50%;
      position: relative;

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

    .account-details {
      margin-left: 16px;
      cursor: pointer;
      h4 {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 5px;
        color: #4a4d4d;
      }
      h5 {
        font-size: 12px;
        font-weight: 600;
        margin-bottom: 0;
        color: #949999;
      }
    }

    .msg__box {
      display: flex;
      font-size: 16px;
      font-weight: 700;
      color: #febf10;
      padding: 11px 30px;
      border-radius: 12px;
      margin-left: auto;
      justify-content: center;
      align-items: center;
      background-color: rgba(254, 191, 16, 0.1);

      & svg {
        margin-right: 12px;
      }
    }
  }

  ul {
    list-style: none;
    width: 100%;
    padding: 0;
  }

  li:nth-last-of-type(1) {
    border-bottom: none;
  }

  li {
    padding: 16px;
    border-bottom: 1px solid #d9d9d9;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    letter-spacing: 0.32px;
    color: #313333;
  }

  .footer-wrapper {
    width: 100%;
    border-radius: 15px;
    display: flex;
    align-items: center;
    background-color: #b0dcdc;
    padding: 13px 23px;
    margin: 20px 0;
    p {
      font-size: 14px;
      font-weight: 500;
      color: #000000;
      margin-left: 17px;
    }
  }

  .btn__footer {
    display: flex;
    margin-top: 30px;
    justify-content: center;

    button {
      width: 171px;
      margin: 0 20px;
    }
  }

  .crop-container {
    /* position: relative; */
    text-align: center;
    .reactEasyCrop_Container {
      position: initial;
    }

    .reactEasyCrop_Contain {
      position: initial;
    }

    .reactEasyCrop_CropArea {
      box-shadow: none;

      left: 46%;
      top: 56%;
    }
  }

  .controls {
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;

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

    .range_input {
      width: 100%;
      appearance: none;
      border: none;
      padding: 0;
      width: 250px;
      margin: 15px 0;
      display: flex;
    }
    .range_input::-webkit-slider-thumb {
      width: 24px;
      height: 24px;
      -webkit-appearance: none;
      appearance: none;
      background: #00c2c2;
      border-radius: 50%;
      margin-top: -10px;
    }
    .range_input::-moz-range-thumb {
      width: 24px;
      height: 24px;
      -webkit-appearance: none;
      appearance: none;
      background: #00c2c2;
      border-radius: 50%;
    }
    .range_input::-webkit-slider-runnable-track {
      -webkit-appearance: none;
      background-color: #b0dcdc;
      height: 6px;
      border-radius: 12px;
    }
  }
`;

export const PreviewCardContainer = styled.div`
  background-color: rgb(255, 255, 255);
  padding: 25px;
  font-family: "Nunito";
  width: 100%;
  max-width: 700px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
`;

export const Radio = styled.div.attrs((props) => ({
  className: props.className,
}))`
  width: 24px;
  height: 24px;
  margin-right: 16px;
  background-color: transparent;
  border: 1px solid #c6cccc;
  border-radius: 8px;
  transition: all 0.3s;

  &.active {
    background-color: #febf10;
  }
`;
