@import "../../../utils/theme/colorVariable.scss";
.reset-result {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: #fff;
  z-index: 111111111;

  .result-body {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: calc(100vh - 200px);
    padding: 10px;
    border: 1px solid #353c7d;
    background: #1b1f48;
    border-radius: 10px;
    .head {
      display: flex;
      justify-content: space-between;
      mat-icon {
        color: #766daa;
        cursor: pointer;
      }
    }
    .body {
      img {
        height: calc(100vh - 228px);
        width: 100%;
        border-radius: 10px;
      }
    }
  }
}
.chatting-page {
  display: flex;

  .main-sidebar {
    background: #fff;
    border-right: 1px solid #000000
  }

  .chatting-sidebar {
    width: 280px;
    height: calc(100vh - 165px);
    box-sizing: border-box;
    overflow-y: auto;
    scrollbar-width: thin;
    // scrollbar-color: #645c95db #00041a;

    input {
      position: absolute;
      opacity: 0;
      z-index: -1;
    }

    .row {
      display: flex;

      .col {
        flex: 1;

        &:last-child {
          margin-left: 1em;
        }
      }
    }

    /* Accordion styles */
    .tabs {
      overflow: hidden;
      width: 100%;
      border-bottom: 1px solid #171e42;
    }

    .tab {
      width: 100%;
      overflow: hidden;

      &-label {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        padding: 18px;
        color: #7e75bc;
        position: relative;

        .member-chat {
          background: #161b36;
          padding: 8px 17px;
          border-radius: 40px;
          margin: 0;
          position: absolute;
          top: 10px;
          right: 50px;
        }

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

          p {
            margin: 0;
            display: flex;
            align-items: center;
            font-weight: 900;
            letter-spacing: 0.5px;
            font-size: 15px;

            span {
              font-weight: 100;
              margin-right: 15px;

              svg {
                width: 21px;
                height: 21px;
                vertical-align: middle;
                fill: #766daa;
              }
            }
          }
        }

        .arrow {
          font-size: 17px;
        }
      }

      &-content {
        max-height: 0;
        transition: all 0.35s;

        ul {
          margin: 0;
          padding: 0;

          li {
            list-style: none;
            margin-bottom: 5px;
            cursor: pointer;
            transition: all 0.2s;
            color: #7e75bc;
            position: relative;
            .spanbox {
              display: flex;
              align-items: center;
              padding-left: 25px;
              .cissp_box {
                font-size: 10px;
                line-height: 9px;
                color: #bababf;
                border-radius: 4px;
                padding: 16px 2px 0 2px;
                border: 1px solid #bababf;
                letter-spacing: -0.9px;
              }
            }

            span {
              display: block;
              padding: 15px 10px 15px 30px;
              letter-spacing: 0.5px;
              font-size: 15px;
              border-radius: 0 5px 5px 0;
              font-weight: 600;
            }

            &:hover {
              color: #d0d1d6;
              background: #161b36;
            }

            .active {
              color: #d0d1d6;
              background: #161b36;

              &::before {
                width: 5px;
                position: absolute;
                top: 0;
                left: -6px;
                bottom: 0;
                content: "";
                border-radius: 0 35px 35px 0;
                border-left: 10px solid #e86779;
                height: 100%;
                margin: auto;
              }
            }
          }
        }
        ul {
          .R_img {
            display: flex;
            align-items: center;
            padding: 0 18px;
            .gr_add {
              width: 35px;
              position: relative;
            }
            .gr_on_circle {
              width: 8px;
              height: 8px;
              content: "";
              background-color: #ff4db1;
              border-radius: 100%;
              position: absolute;
              top: 62%;
              border: 3px solid #191c44;
              left: 14.5%;
              z-index: 1;
            }
            .gr_on_circle1 {
              background-color: #51568a;
            }
          }
        }
      }

      &-close {
        display: flex;
        justify-content: flex-end;
        padding: 1em;
        font-size: 0.75em;
        cursor: pointer;
      }
    }

    input:checked {
      + .tab-label {
        color: #b16486;

        .channels {
          p {
            span {
              svg {
                fill: #b16486;
              }
            }
          }
        }

        .arrow {
          transform: rotate(90deg);
          color: #b16486;
        }
      }

      + .tab-label2 {
        color: #4e4d72;

        .channels {
          p {
            span {
              svg {
                fill: #7e75bc;
              }
            }
          }
        }

        .arrow {
          transform: rotate(90deg);
          color: #4e4d72;
        }

        &::before {
          display: none;
        }
      }

      ~ .tab-content {
        max-height: 100vh;
        z-index: 0;
      }
    }

    .serach-bar {
      input {
        width: 100%;
      }
    }
  }

  .search {
    position: relative;
    padding: 18px;
    border-bottom: 1px solid #989898;

    input {
      border: 1px solid #989898;
      padding: 10px 40px 10px 19px;
      color: #989898;
      background: #fafafa;
      font-size: 16px;
      width: 100%;
      box-sizing: border-box;
      min-height: 21px;

      &::placeholder {
        color: #989898;
      }
    }

    span {
      position: absolute;
      right: 34px;
      top: 29px;

      svg {
        width: 15px;
      }
    }
  }

  .emoji_div {
    z-index: 1;

    emoji-picker {
      display: block;
    }
  }

  .chat-scroll {
    height: calc(100vh - 155px);
    scrollbar-width: thin;
    scrollbar-color: #645c95db #00041a;
    overflow-y: auto;
    overflow-x: hidden;

    .chatting-body {
      width: 100%;
      position: relative;
      padding: 0 10px 0 10px;
      box-sizing: border-box;
      cursor: pointer;
      &.userreply {
        background: #161b36c9;
        padding-top: 50px;
        position: relative;
        padding-bottom: 10px;
      }
      .chatting-screen {
        .recive-msg {
          display: flex;

          .user-profile {
            margin-right: 15px;
            position: relative;
            height: 45px;

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

            span {
              width: 10px;
              height: 10px;
              border-radius: 100%;
              background: #51568a;
              border: 3px solid #070b25;
              display: block;
              position: absolute;
              right: 0;
              bottom: 0;
            }

            .activeUser {
              background: #ff4db1;
            }
          }

          .chat-box {
            max-width: 80%;

            span {
              color: #d07397;
              font-weight: 600;
              letter-spacing: 0.5px;
              font-size: 14px;
              margin-bottom: 5px;
              display: block;
            }

            .box {
              background: #161b41;
              padding: 15px;
              border-radius: 10px;
              box-sizing: border-box;
              border-top-left-radius: 0;
              border: 1px solid #1b2153;
              margin-bottom: 15px;

              span {
                color: #6d67a9;
                font-size: 12px;
                letter-spacing: 0.5px;
                display: flex;

                svg {
                  height: 19px;
                  width: 19px;
                  vertical-align: middle;
                  padding-right: 5px;
                }
              }

              p {
                color: #bfc1cb;
                letter-spacing: 0.4px;
                margin: 0;

                a {
                  color: #b25cff;
                  text-decoration: underline;
                  display: block;
                }
              }
            }
          }
        }

        .send-mgs {
          justify-content: flex-end;

          .user-profile {
            margin-left: 15px;
            margin-right: 0;

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

            span {
              width: 10px;
              height: 10px;
              border-radius: 100%;
              background: #51568a;
              border: 3px solid #070b25;
              display: block;
              position: absolute;
              right: 0;
              bottom: 0;
            }

            .activeUser {
              background: #ff4db1;
            }
          }

          .chat-box {
            span {
              color: #d07397;
              font-weight: 600;
              letter-spacing: 0.5px;
              font-size: 14px;
              margin-bottom: 5px;
              display: block;
              text-align: end;
            }

            .box {
              background: #28184e;
              border-top-right-radius: 0;
              border-top-left-radius: 10px;
              margin-left: auto;
              border-color: #4a2589;

              span {
                color: #6d67a9;
                font-size: 12px;
                letter-spacing: 0.5px;
                text-align: start;
                display: flex;

                svg {
                  height: 19px;
                  width: 19px;
                  vertical-align: middle;
                  padding-right: 5px;
                }
              }

              p {
                color: #bfc1cb;
                letter-spacing: 0.4px;
                margin: 0;

                a {
                  color: #b25cff;
                  text-decoration: underline;
                  display: block;
                }
              }
            }
          }
        }
      }

      img {
        height: 55px;
      }

      .chat-massage {
        margin-top: 5px;
        margin-left: 18px;

        .usr-msg {
          padding: 0px 20px 0px 0;
          .chat-content-image {
            img {
              width: 200px;
              height: auto;
              border-radius: 10px;
              border: 1px solid #181a42;
            }
            .message-file {
              border: 1px solid #272e64;
              padding: 10px;
              box-shadow: -10px -5px 50px -16px #533594;
              width: 100%;
              border-radius: 10px;
              color: #9e98c8;
              display: flex;
              justify-content: space-between;
              font-weight: 600;
              align-items: center;
              box-sizing: border-box;
              span {
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                width: calc(100% - 35px);
              }
              mat-icon {
                border: 1px solid;
                border-radius: 50%;
                line-height: 1.4;
                text-align: center;
                padding: 2px;
                font-size: 18px;
                &:hover {
                  border-color: #b16486;
                  color: #b16486;
                }
              }
            }
          }

          .emoji-count {
            display: flex;

            p {
              background: #1a2144;
              border-radius: 18px;
              padding: 3px 5px;
              margin-right: 5px;
              display: flex;
              justify-content: space-between;
              color: #9e98c8;

              span {
                &:first-child {
                  margin-left: 5px;
                  margin-right: 5px;
                  margin-top: -1px;
                }

                &:last-child {
                  margin-right: 5px;
                }
              }
            }
          }
        }

        .reply {
          padding: 10px 0 0 0;
          align-items: center;
          position: absolute;
          top: 5px;
          display: flex;
          .replyarrow {
            position: absolute;
            top: 24px;
            left: -45px;
            height: 15px;
            width: 25px;
            border: 2px solid;
            border-color: #9e98c8 transparent transparent #9e98c8;
            border-radius: 5px 0 0 0;
            &::after {
              background: #9e98c8;
              position: absolute;
              content: "";
              left: 7px;
              top: -2px;
              height: 2px;
              width: 25px;
            }
            &::before {
              background: #9e98c8;
              position: absolute;
              content: "";
              left: -2px;
              top: 4px;
              width: 2px;
              height: 15px;
            }
          }
          .user-profile {
            margin-right: 5px;
            height: 30px;
            width: 30px;
            img {
              height: 100%;
              width: 100%;
              display: block;
            }
          }
          .reply-chat-title {
            margin-right: 5px;
            p {
              color: $Pink;
              font-weight: 100;
              font-size: 12px;
              margin: 0;
            }
          }

          .reply-chat-content {
            color: rgb(158 152 200);
            font-weight: 600;
            font-size: 12px;
            p {
              margin: 0;
              white-space: nowrap;
              overflow: hidden;
              text-overflow: ellipsis;
              min-width: 150px;
              width: 221px;
            }
          }
        }
      }
      .chats {
        display: flex;
      }

      .chat-title p {
        color: #DF166A;
        font-weight: 100;
        font-size: 16px;
        margin-bottom: 5px;
      }

      .chat-title span {
        color: #323232;
        font-size: 12px;
        font-weight: 100;
        padding-left: 4px;
      }

      .chat-content {
        color: #000000;
        font-size: 14px;
      }
      .chat-content p {
        line-height: 2;
        font-weight: normal;
      }
      .user-profile {
        margin-right: 0;
        position: relative;
        height: 45px;

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

        span {
          width: 9px;
          height: 9px;
          border-radius: 100%;
          background: #51568a;
          border: 3px solid #1c234c;
          display: block;
          position: absolute;
          right: 9%;
          bottom: -20%;
        }

        p {
          font-size: 11px;
          font-weight: 600;
          text-align: center;
          color: #4a477e;
          margin-top: 10px;
        }

        .activeUser {
          background-image: linear-gradient(to right, #d13392, #d15aa7);
        }
      }

      .chat-link a {
        color: rgb(101 71 168);
        font-weight: 600;
      }

      .chat-content span {
        padding: 3px 15px;
        background: rgb(35 29 80);
        border-radius: 50px;
        margin: 0 5px;
      }

      .chat-massage-top {
        display: flex;
        padding: 5px 0 0 0;
      }

      .chat-icon {
        background: #2c314d;
        padding: 20px;
        width: 100px;
        border-radius: 5px;
        position: absolute;
        top: -10px;
        right: 50px;
      }
    }
  }

  .date-body {
    min-height: 0 !important;
    padding: 0px 30px;
  }

  .chatting-footer {
    position: fixed;
    width: calc(100% - 380px);
    margin: 8px;
    box-sizing: border-box;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 53px;
    background: #fafafa;
    border: 1px solid #000000;
    padding: 0 0 0 10px;
    box-shadow: -10px -5px 50px -16px $Pink;
    border-radius: 10px;
    margin: 8px;
    .enter-msg {
      display: flex;
      align-items: center;
      width: 99%;
      height: 100%;

      input {
        height: 100%;
        box-sizing: border-box;
        width: 90%;
        border: none;
        background: none;
        font-size: 14px;
        letter-spacing: 0.5px;
        font-family: "mulish-light";
        font-weight: 600;
        color: $inputText;

        &::placeholder {
          color: $inputText;
        }
      }

      .input-icon {
        display: flex;
        align-items: center;
        justify-content: space-around;
        width: 13%;
        padding-right: 5px;

        span,
        label {
          cursor: pointer;
          transition: all 0.2s;
          color: #979bac;
          padding-top: 5px;
        }

        .gif {
          background: #adb1c1;
          border-radius: 3px;
          color: #0404047d;
          font-weight: bold;
          font-family: "Roboto";
          line-height: 13px;
          padding: 5px 5px 3px 5px;
        }
      }

      .reply-msg {
        position: absolute;
        bottom: 51px;
        background: #20224c;
        width: 95%;
        border-radius: 5px;
        border: 1px solid #272e64;

        .message {
          padding: 0px 5px;
          color: #9e98c8;
          font-weight: 600;
          font-size: 14px;

          img {
            width: 100px;
            padding: 5px;
            height: auto;
          }
        }

        .user {
          display: flex;
          justify-content: space-between;
          padding: 0px 5px;
          align-items: center;

          p {
            color: #b16486;
            font-weight: 800;
            font-size: 16px;
            padding: 5px 5px;
          }

          .close-msg {
            font-size: 14px;
            cursor: pointer;
          }
        }
      }

      .reply-gif {
        position: absolute;
        bottom: 51px;
        background: #20224c;
        width: 95%;
        border-radius: 5px;
        border: 1px solid #272e64;
        width: 50%;
        left: 50%;

        .input-icon {
          display: flex;
          align-items: center;
          width: 100%;
          margin-top: 10px;
          padding-right: 10px;
          justify-content: space-between;

          .search-ico {
            display: flex;
          }

          span,
          label {
            cursor: pointer;
            transition: all 0.2s;
            color: #979bac;
            padding: 0px 6px;
          }

          .gif {
            background: #adb1c1;
            border-radius: 3px;
            color: #0404047d;
            font-weight: bold;
            padding: 1px 7px;
            letter-spacing: 1px;
            font-family: "Roboto";
          }

          .gifSearch {
            width: auto;

            height: 35px;
            border: solid 1px;
            border-radius: 17px;
            padding: 10px;
          }
        }

        .gifpopupopen {
          display: flex;
          flex-wrap: wrap;
          padding: 15px;
          height: 170px;
          overflow: auto;
          border-radius: 10px;
          cursor: pointer;
          scrollbar-width: thin;
          scrollbar-color: #645c95db #00041a;

          img {
            width: 70px;
            padding: 5px;
            height: 70px;
          }
        }
      }

      .hint {
        position: absolute;
        bottom: 51px;
        background: #20224c;
        min-width: 160px;
        border-radius: 5px;
        border: 1px solid #272e64;
        max-height: 230px;
        overflow: auto;
        scrollbar-width: thin;
        scrollbar-color: #645c95db #00041a;

        .hint-user {
          .users {
            display: flex;
            padding: 10px;
            cursor: pointer;

            &:hover {
              background: #161b36;
            }

            img {
              width: 25px;
              height: 25px;
              margin-right: 10px;
            }

            p {
              margin: 0;
              font-weight: 600;
              font-size: 13px;
              color: #b16486;
            }
          }
        }
      }
    }

    .send-msg {
      width: 10%;
      height: 100%;

      button {
        color: #e86779;
        background: none;
        border: none;
        width: 100%;
        cursor: pointer;
        height: 100%;
        box-sizing: border-box;
        transition: all 0.3s;

        svg {
          width: 22px;
          fill: #e86779;
          vertical-align: middle;
          margin-right: 5px;
        }

        &:hover {
          background: #e867791f;
        }
      }
    }
  }

  .chatting-body.chat-active {
    background: #11162e;
    min-height: 114px;
    position: relative;

    .reactmain {
      position: absolute;
      right: 5px;
      top: -10px;
      background: #2c314d;
      border: 1px solid #1a2144;
      border-radius: 5px;
      padding: 5px 10px;
      line-height: 10px;
      display: flex;
      color: #999dad;
      z-index: 0;
      .my-ico {
        padding-right: 7px;
      }
      .icon-img {
        width: 25px;
        height: 25px;
        cursor: pointer;
      }
      .more {
        &:hover {
          background: #3a3f5f;
          border-radius: 50%;
          .more-option {
            display: block;
          }
        }

        .more-option {
          position: absolute;
          border-radius: 5px;
          background: #2c314d;
          min-width: 100px;
          right: 15px;
          z-index: 11111;
          top: -90px;
          display: none;
          padding: 10px 5px 10px 10px;
          &::after {
            content: "";
            position: absolute;
            bottom: -15px;
            right: 0px;
            transform: rotate(0deg);
            width: 0;
            height: 0;
            border-left: 20px solid transparent;
            border-right: 0px solid transparent;
            border-top: 20px solid #2c314d;
          }
          &::before {
            content: "";
            background: transparent;
            width: 120px;
            height: 120px;
            position: absolute;
            top: 0;
            bottom: 0;
            right: 0;
            left: 0;
            z-index: -1;
          }
          .options {
            display: flex;
            align-items: center !important;
            padding: 4px 0;
            border-bottom: 1px solid #333753;
            cursor: pointer;
            &:last-child {
              border-bottom: none;
            }
            .rply_icon {
              margin-right: 5px !important;
              font-size: 20px;
              height: 19px;
              width: 24px;
              color: #7f8597;
            }
            span {
              display: block;
              font-size: 13px;
              color: #7f8597;
            }

            &:hover {
              .rply_icon,
              span {
                color: #d8789e;
              }
            }

            .setting {
              font-size: 21px;
              padding: 0 2px;
            }
          }
        }
      }

      .replied-emoji {
        display: flex;
        position: absolute;
        top: 35px;
        background: #1d214f;
        border: 1px solid #303673;
        flex-wrap: wrap;
        border-radius: 8px;
        min-width: 97px;
        right: 0px;
        padding: 4px 6px;
        align-items: center;
        justify-content: flex-start;
        line-height: 1.5;
        z-index: 9999;

        p {
          margin-right: 5px;
          margin-bottom: 5px;

          &:hover {
            background: #11162e;
            border-radius: 5px;
          }
        }
      }
    }
  }

  .chat-date {
    .chat-date-top {
      text-align: center;
      position: relative;
      margin: 20px 0;
    }
  }

  .chat-date-top {
    span {
      background: #1a2144;
      padding: 5px 20px;
      font-weight: 600;
      border-radius: 50px;
      color: #968bdb;
      font-size: 12px;
    }
    .today_msg {
      background: #fafafa;
      padding: 5px 30px;
      font-weight: 600;
      border-radius: 5px;
      color: #DF166A;
    }
  }

  .chat-date-top:after {
    content: "";
    position: absolute;
    border-bottom: 1px solid #1a2144;
    width: 50%;
    right: 0;
    top: 10px;
    z-index: -1;
  }

  .chat-date-top:before {
    content: "";
    position: absolute;
    border-bottom: 1px solid #1a2144;
    width: 50%;
    left: 0;
    top: 10px;
    z-index: -1;
  }

  .chat-box {
    form.ng-untouched.ng-pristine.ng-valid {
      text-align: center;
    }

    input#fname {
      width: 95%;
      padding: 15px;
      background: #171a42;
      border: 1px solid #212656;
      border-radius: 5px;
      color: #3f4069;
      font-size: 14px;
      font-weight: 400;
      margin: 10px 0;
    }
  }

  .Chat-Opacity-Active {
    opacity: 0;
  }
}

@media only screen and (max-width: 768px) {
  .chatting-page {
    flex-direction: column;
    position: relative;
    .chatting-footer {
      width: 100% !important;
      border-radius: 0px !important;
      margin: 1px 0px !important;
      .enter-msg {
        .input-icon {
          width: auto !important;
        }
      }
    }
    .chatting-sidebar {
      width: 99% !important;
      box-sizing: border-box;
      overflow-y: auto;
      display: block;
      height: auto !important;
      position: absolute;
      left: 0;
      right: 0;
      z-index: 2;
      background: #080c25;
      top: 0px;
    }
    .chat-scroll {
      .chatting-body {
        .chat-massage {
          margin-left: 40px;
        }
      }
    }
  }

  span,
  label {
    margin-right: 5px;
  }
  .chat-page {
    display: block;
    top: 1;
    bottom: 0;
    .chat-scroll {
      height: calc(100vh - 140px) !important;
    }
  }

  .tab-content {
    z-index: 9999;
    position: relative;
  }
  .chatting-body:last-child {
    margin-bottom: 0px;
  }
  .chat-scroll:last-child {
    margin-bottom: 50px;
  }
  .search {
    display: none;
  }

  .date-body {
    min-height: 0 !important;
    padding: 0px 0px !important;
  }
  .reply {
    .replyarrow {
      border-color: #3d3c5f transparent transparent #3d3c5f !important;
      &::after {
        background: #3d3c5f !important;
      }
      &::before {
        background: #3d3c5f !important;
      }
    }
  }
  .reply-chat-content {
    p {
      width: 130px !important;
    }
  }
  .user-profile {
    height: 30px !important;
    width: 30px !important;
    p {
      margin-top: 0px !important;
    }
    span {
      bottom: -85% !important;
    }
  }
  .reactmain {
    .more {
      &:hover {
        background: #3a3f5f;
        border-radius: 50%;
        .more-option {
          display: block;
        }
        &::after {
          bottom: 40px !important;
          right: 15px !important;
        }
      }
    }
  }
  .reset-result {
    .result-body {
      width: 300px;
      height: 300px;
      .body {
        img {
          height: 260px;
          width: 100%;
        }
      }
    }
  }
  .chatting-page {
    .chatting-footer {
      .enter-msg {
        .reply-gif {
          width: 100%;
          left: 50%;
          transform: translate(-50%, 0px);
          .input-icon {
            overflow-x: scroll;
            padding: 0px 0 5px;
            &::-webkit-scrollbar {
              height: 0px;
            }
          }
        }
        .input-icon {
          label {
            margin-right: 10px;
          }
          span {
            margin-right: 10px;
          }
          .gif {
            font-size: 12px;
          }
        }
      }
    }
  }
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .chatting-page {
    .chatting-sidebar {
      width: 250px;
      .tab-label {
        .channels {
          p {
            font-size: 14px;
          }
        }
        .member-chat {
          padding: 8px 11px;
          font-size: 13px;
          right: 43px;
        }
      }
    }
    .chatting-footer {
      width: calc(100% - 350px);
      .enter-msg {
        input {
          width: 80%;
        }
        .input-icon {
          width: 20%;
        }
      }
    }
  }
}
