/* copy prefile card */
main .home_section .profile_card,
.AECard {
  border: 1px solid #e9e9e9;
  padding: 4px;
  gap: 8px;
  display: flex;
  position: relative;
}

main .home_section .profile_card .img,
.AECard .img {
  width: 90px;
  height: 90px;
  overflow: hidden;
  border-radius: 50%;
}

main .home_section .profile_card .img img,
.AECard .img img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

main .home_section .profile_card .owner,
.AECard .owner {
  flex: 1;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

main .home_section .profile_card .owner h6,
.AECard .owner h6 {
  /* color: #1d1d1b; */
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

main .home_section .profile_card .owner .title_age,
.AECard .owner .title_age {
  display: flex;
  gap: 2px 12px;
  align-items: center;
  color: #666b88;
  font-size: 12px;
  font-weight: 400;
  flex-wrap: wrap;
}

main .home_section .profile_card .owner .title_age span,
.AECard .owner .title_age span {
  line-height: 1.3;
}

main .home_section .profile_card .owner .label,
.AECard .owner .label {
  height: 32px;
  background: rgba(0, 150, 64, 0.0509803922);
  padding: 4px 8px;
  gap: 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
}

main .home_section .profile_card .owner .label img,
.AECard .owner .label img {
  height: 26px;
}

main .home_section .profile_card .owner .label h6,
.AECard .owner .label h6 {
  color: #009640;
  margin: 0;
  font-size: 12px;
}

main .home_section .profile_card .buttons,
.AECard .buttons {
  position: absolute;
  top: 12px;
  left: 8px;
  display: flex;
  align-items: center;
}

main .home_section .profile_card .buttons button,
main .home_section .profile_card .buttons a,
.AECard .buttons button,
.AECard .buttons a {
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  outline: none;
}

main .home_section .profile_card .buttons button img,
main .home_section .profile_card .buttons a img,
.AECard .profile_card,
.AECard .buttons a img {
  height: 16px;
}

/* start AE style */
.AE_type {
  display: inline-flex;
  gap: 16px;
  margin-block-start: 3dvh;
  width: 100%;

  .AEGroup {
    width: min(100%, 184px);
  }
}

.favorite_btn {
  background-color: var(--inputBg);
  width: 42px;
  height: 42px;
  border-radius: 0;
  display: inline-flex;
  gap: 6px;
  border-radius: 9999px;

  i {
    color: #aaaaaa;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 16px;
    line-height: 28px;
  }

  span {
    color: #666b88;
    display: inline-block;
    font-size: 14px;
    padding-inline-start: 10px;
  }

  &.active {
    width: auto;
    border-radius: 120px;

    i {
      color: #ff0000;
      font-weight: 600;
    }
  }
}

/* .share_btn {
  background-color: #00964033;
  width: 42px;
  height: 42px;
  border-radius: 0;
  border: 0;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 50%;

  i {
    color: #009640;
  }

} */

.AE_print {
  color: #aaaaaa;
  background-color: #f8f8f8;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;

  i {
    line-height: 28px;
    margin-inline: auto;
  }
}

.AE_comments {
  h6 {
    margin-bottom: 3dvh;
  }

  .commentContainer {
    position: relative;

    &::before,
    &::after {
      content: "";
      position: absolute;
    }

    &::before {
      width: 1.8px;
      /* height: calc(100% - 150px); */
      background-color: #aaaaaa;
      inset-inline-start: 35px;
      top: 0;
      height: calc(100% - 70px);
    }

    &.no-reply {

      &::before,
      &::after {
        display: none;
      }
    }

    &.reply:last-child {
      .commentCard {
        position: relative;

        &::before {
          content: "";
          position: absolute;
          background-color: #f8f8f8;
          width: 10px;
          height: calc(100% - 25px);
          inset-inline-start: -18px;
          bottom: 0;
        }
      }
    }

    .commentContainer {
      .commentCard {
        &::after {
          content: "";

          position: absolute;
          width: 40px;
          height: 40px;
          background-color: transparent;
          top: 0;
          inset-inline-start: -15px;
          border: 2px solid transparent;
          border-right-color: #aaaaaa;
          border-bottom-color: #aaaaaa;
          border-bottom-right-radius: 50%;
        }
      }
    }

    &:not(:first-child) {
      margin-inline-start: 50px;
    }

    .commentCard {
      display: flex;
      align-items: flex-start;
      gap: 8px;

      figure {
        /* border-radius: 50%; */
        position: relative;
        z-index: 9;

        img {
          width: 70px !important;
          height: 70px !important;
          border-radius: 50%;
          width: 100%;
          height: 100%;
          object-fit: cover;
          object-position: top;
        }
      }

      .userInfo_comment {
        .Info {
          .name {
            font-weight: 600;
            font-size: 1.05rem;
            color: #1d1d1b;
            line-height: 45px;
          }

          .date {
            line-height: 0;

            span {
              line-height: 0;
              font-size: 0.9rem;
              color: #666b88;
              font-weight: 400;
            }
          }
        }

        .userComment {
          margin-top: 3dvh;
          font-size: 1.05rem;
          font-weight: 400;
          line-height: 1.8;
          /* text-wrap: balance; */
          color: #1d1d1b;
          /* width: min(100% , 95%); */
        }
      }

      .commentActions {
        display: flex;
        align-items: center;
        justify-content: flex-end;

        button {
          outline: 0;
          border: none;
          box-shadow: none;

          &:focus {
            outline: 0;
            border: none;
            box-shadow: none;
          }

          &:nth-child(2) {
            color: #ff0000;
          }

          &:nth-child(1) {
            color: #666b88;
          }
        }

        @media (min-width: 1200px) {
          /* margin-inline-end: -70px; */
        }
      }
    }
  }
}

header.sticky {
  z-index: 999;
  /* background-color: #fff; */
}

.chatBtn {
  i {
    color: #2196f3;
  }
}

.AE_formGroup {
  display: flex;
  align-items: center;
  gap: 2px;

  label {
    position: relative;
    top: auto;
    right: auto;
    cursor: pointer;
    color: #1d1d1b;
    font-size: 0.8rem;

    a {
      color: #009640;
    }
  }

  input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    border: none !important;
    padding: 0 !important;
  }
}

main {
  .home_section {
    .profile_card {
      border-radius: 16px;
      padding: 12px 8px;

      .img {
        width: 60px;
        height: 60px;

        img {
          object-position: top;
        }
      }
    }
  }
}

main:has(.sideReseumes) {
  #resumes {
    @media (min-width: 992px) {
      .col-lg-4 {
        flex: 0 0 auto;
        width: 50%;
      }
    }
  }
}

.recruitmentOffice {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  background-color: #0096400d;
  padding: 2px 8px;
  border-radius: 8px;
  flex-wrap: wrap;

  @media (min-width: 768px) {
    flex-wrap: nowrap;

    .officeName {
      text-wrap: nowrap;
    }
  }

  /* justify-content: space-between; */
  figure {
    width: 30px;
    margin: 0;

    img {
      width: 100%;
      height: auto;
    }
  }

  .officeName {
    color: #009640;
    font-size: 0.9rem;

    @media (max-width: 400px) {
      line-height: 20px;
      /* padding-bottom: 1.5dvh; */
    }
  }
}

.AE_btn {
  background: #009640 !important;
  color: #fff !important;
  display: flex;
  align-items: center;
  margin: 3dvh auto;
  transition: 250ms ease-in-out;

  &:hover {
    border: 1px solid #009640 !important;
    color: #009640 !important;
    background-color: transparent !important;
  }
}

.AE_model {
  .modal-title {
    color: #1d1d1b;
    font-size: 1.1rem;
    font-weight: 500;

    span {
      color: #009640;
    }
  }

  .modal-content {
    background-color: #f0f0f0;
    border: none;
  }

  .formGroup {
    width: 100%;

    label {
      display: inline-block;
      padding-inline-start: 10px;
    }

    textarea {
      width: 100%;
      height: 200px;
      border-radius: 16px;
      border-color: #e9e9e9;
      padding-inline-start: 10px;
      padding-block-start: 10px;
      background-color: #ffffff;

      &:focus {
        outline: none;
        border-color: #009640;
      }
    }
  }

  .modal-footer {
    button {
      display: flex;
      align-items: center;
      justify-content: center;
      /* background-color: none ; */
    }
  }
}

/*  */
.chat-section {
  padding: 24px 0;
  height: 80vh;
  min-height: 628px;
  display: flex;
  gap: 16px;

  @media (max-width: 768px) {
    flex-direction: column;
  }

  .side-menu {
    padding: 12px;
    background: #eee;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 350px;

    @media (max-width: 768px) {
      display: block;
      position: fixed;
      z-index: 999;
      border-radius: 0;
      top: 80px;
      overflow-y: scroll;
      width: 100%;
      background: #ffffff;
      right: -100%;
      transition: 0.2s ease-in-out;
      height: calc(100vh - 80px);
      padding: 24px 16px;

      &.active {
        right: 0;
      }

      .colse {
        display: flex !important;
      }
    }

    .colse {
      display: none;
      margin-bottom: 32px;
      justify-content: center;
      align-items: center;
      cursor: pointer;

      img {
        width: 20px;
        height: 20px;
        object-fit: contain;
      }
    }

    .nav-link {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 4px 8px;
      border-radius: 16px;
      flex-wrap: wrap;
      text-align: start;
      border: 1px solid #ffffff;
      background-color: #ffffff;

      .userImg {
        width: 64px;
        min-width: 64px;
        aspect-ratio: 1;
        border-radius: 50%;
        object-fit: cover;
      }

      .text-wrap {
        display: flex;
        flex-direction: column;
        gap: 2px;
        flex: 1;
        align-items: flex-start;
        padding: 8px;

        .name {
          font-weight: bold;
          text-transform: capitalize;
        }

        .lastMessage {
          display: flex;
          justify-content: space-between;
          align-items: center;
          gap: 8px;
          width: 100%;

          .unreadNumber {
            background-color: #00a650;
            color: #ffffff;
            border-radius: 50%;
            min-width: 20px;
            height: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 12px;
            font-weight: bold;
            padding: 4px;
          }

          &.unread {
            color: #00a650;
          }
        }

        .time {
          color: #777;
          font-size: 12px;
        }
      }

      .adsItem {
        width: 100%;
        display: flex;
        align-items: center;
        background-color: #e4e4e466;
        justify-content: space-between;
        padding: 8px;
        border-radius: 100px;
        padding-inline-start: 16px;
        margin-bottom: 4px;

        .userImg {
          min-width: 32px;
          width: 32px;
          height: 32px;
          border-radius: 100px;
          object-fit: cover;
        }
      }

      &.active {
        background-color: #00a6501a !important;
        color: #1d1d1b;

        .adsItem {
          background-color: #00a6501a;
        }
      }
    }
  }

  .tab-content {
    flex: 3;
    height: 100%;

    .tab-pane {
      height: 100%;
    }

    .chat-container {
      width: 100%;
      height: 100%;

      @media screen and (max-width: 768px) {
        max-height: calc(80vh - 100px);
        min-height: 500px;
      }

      display: flex;
      flex-direction: column;
      background: linear-gradient(#f3f3f3e8, #f3f3f3e8),
      url(https://www.shutterstock.com/image-vector/social-media-sketch-vector-seamless-600nw-1660950727.jpg);
      border-radius: 16px;

      .chat-head {
        border-radius: 14px 14px 0 0;
        display: flex;
        padding: 14px;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        background: #fafafa;


        .dropdown-toggle {
          border: none !important;
          width: 32px;
          height: 32px;
          border-radius: 50%;
          outline: none !important;

          &::after {
            display: none !important;
          }
        }

        .user {
          display: flex;
          align-items: center;
          gap: 8px;

          img {
            width: 40px;
            height: 40px;
            object-fit: cover;
            border-radius: 50%;
          }

          .name {
            color: #1f1f1f;
            font-weight: bold;
          }
        }

        .setting {
          button {
            height: 32px;
            width: 32px;
            border-radius: 100px;
            background-color: #ffffff;
            padding: 4px;
            display: flex;
            align-items: center;
            justify-content: center;

            img {
              width: 16px;
              height: 16px;
              object-fit: contain;
            }

            &::after {
              display: none;
            }
          }

          .dropdown-menu {
            inset: unset !important;
            transform: unset !important;
            right: 0 !important;
            top: calc(100% + 4px) !important;
            border: none;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 16px 32px 0 #071c1f1a;
            --bs-dropdown-min-width: 7rem;

            .dropdown-item {
              padding: 6px 12px;
              text-transform: capitalize;
              display: flex;
              align-items: center;
              gap: 8px;

              img {
                width: 16px;
                height: 16px;
                object-fit: contain;
              }
            }
          }
        }
      }

      .adItem {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px;
        background: #e5f6ed;

        p {
          color: #00a650;
        }

        img {
          width: 40px;
          height: 40px;
          object-fit: cover;
          border-radius: 8px;
        }
      }

      .inner-container {
        display: flex;
        flex-direction: column;
        padding: 20px 0;
        overflow-y: scroll;
        /* justify-content: flex-end; */
        flex: 1;

        &::-webkit-scrollbar {
          display: none;
        }

        .message {
          width: 100%;
          display: flex;
          padding: 0 16px;

          .time {
            color: #777;
            font-size: 12px;
          }

          video,
          img {
            height: 150px;
            width: 200px;
            object-fit: cover;
            border-radius: 8px;
          }

          &.sent-message {
            justify-content: flex-end;

            .message-content {
              background: #ffffff;
              padding: 10px 16px;
              border-radius: 12px;
              border-bottom-right-radius: 0;
              color: #1f1f1f;
              position: relative;
              gap: 8px;
              display: flex;
              flex-wrap: wrap;
            }
          }

          &.recieved-message {
            justify-content: flex-start;

            .message-content {
              background: #00a650;
              padding: 10px 16px;
              border-radius: 12px;
              border-bottom-left-radius: 0;
              position: relative;
              gap: 8px;
              display: flex;
              flex-wrap: wrap;

              p {
                color: #fff;
              }
            }
          }
        }

        .image {
          background: #3277531a;
        }

        .record {
          background-color: #00a650;
          padding: 1px 3px;
        }
      }

      .chat-send {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 8px;
        position: relative;

        .file-preview {
          position: absolute;
          left: 83px;
          bottom: 100%;
          background: #fff;
          width: 100px;
          aspect-ratio: 1;
          padding: 4px;
          border-radius: 8px;
          display: none;

          img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 8px;
          }

          video {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 8px;
          }

          .deleteBtn {
            position: absolute;
            top: 4px;
            right: 4px;
            background: #ffffff;
            border-radius: 50%;
            padding: 4px;
            min-width: 20px;
            aspect-ratio: 1;
            display: flex;
            align-items: center;
            justify-content: center;

            i {
              width: 16px;
              height: 16px;
            }
          }
        }

        .moreActions {
          display: flex;
          background-color: #ffffff;
          border-radius: 12px;
          padding: 8px;
          text-align: center;
          position: relative;
          gap: 8px;

          .line {
            display: block;
            width: 1px;
            height: 100%;
            background-color: #e1e1e1;
          }

          button {
            font-size: 14px;
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            border: none !important;
            border-radius: none;

            img {
              width: 20px;
              height: 20px;
              object-fit: contain;
            }
          }

          .upSlide {
            position: absolute;

            bottom: 0;
            left: 0;
            width: 100%;
            background-color: #ffffff;
            border: 1px solid #e1e1e1;
            border-radius: 12px;
            padding: 12px;
            z-index: 2;
            display: flex;
            flex-direction: column;
            gap: 8px;

            .question {
              padding: 8px;
              background-color: #00a6501a;
              border-radius: 8px;
              text-wrap: balance;
            }

            .slideHead {
              display: flex;
              align-items: center;
              gap: 8px;
              justify-content: space-between;
              padding: 8px;

              img {
                width: 12px;
                height: 12px;
                object-fit: contain;
              }

              .close {
                margin: unset;
                padding: 8px;
                flex: unset;
                border: 1px solid !important;
                border-radius: 100px;
              }

              .title {
                color: #00a650;
                font-weight: bold;
              }
            }

            .makeOfferForm {
              display: flex;
              align-items: center;

              .form-control {
                flex: 1;
              }

              button {
                height: 48px;
                width: 48px;
                flex: unset;

                img {
                  min-width: 16px;
                  height: 16px;
                  object-fit: contain;
                }
              }
            }
          }
        }

        form {
          display: flex;
          gap: 8px;

          .input-field {
            width: 100%;
            border-radius: 16px;
            background: #ffffff;
            padding: 0 16px 0 8px;
            display: flex;
            gap: 8px;
            align-items: center;
            justify-content: space-between;

            input {
              height: 100%;
              border: none;
              background: none;
              outline: none;
              flex: 1;
              color: #777;
            }

            .files-input {
              display: flex;
              justify-content: center;
              align-items: center;
              cursor: pointer;

              img {
                width: 18px;
                height: 18px;
                object-fit: contain;
              }

              input {
                display: none;
              }
            }
          }

          button {
            border: none;
            background: none;
            outline: none;
            border-radius: 16px;
            min-width: 70px;
            height: 56px;
            background: #00a650;
            display: flex;
            justify-content: center;
            align-items: center;

            img {
              width: 20px;
              height: 20px;
              object-fit: contain;
            }
          }

          .microphone-btn {
            min-width: 24px;
          }
        }
      }
    }
  }

  .openTaps {
    width: 96%;
    padding: 12px;
    border: none;
    background: none;
    outline: none;
    background: #00a650;
    color: #fff;
    border-radius: 8px;
    display: none;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 auto;

    @media (max-width: 768px) {
      display: flex;
    }

    img {
      width: 20px;
      height: 20px;
      object-fit: contain;
    }
  }
}

.AECard {
  border-radius: 16px;
  padding: 12px 8px;

  .img {
    width: 60px;
    height: 60px;

    img {
      object-position: top;
    }
  }
}

.user_info_modal {
  .user_info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;

    img {
      height: 120px;
    }

    .info_card {
      width: 100%;
      border-radius: 12px;
      padding: 8px 12px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      background: #fafafa;

      h6 {
        color: #009640;
        font-size: 16px;
      }

      p {
        margin-bottom: 0;
        line-height: normal;
      }
    }
  }
}
