/*
 *  Document   : _chat.scss
 *  Author     : RedStar Template
 *  Description: This scss file for style related to chat app
 */
@use "../common/mixins" as mix;
%font_extend {
  font-size: 16px;
  color: gray;
  cursor: pointer;
}

.chat-app {
  height: 690px;
  .people-list {
    width: 280px;
    position: absolute;
    left: 0;
    top: 0;
    padding: 20px;
  }
  .chat {
    // margin-left: 280px;
    border-left: 1px solid #e8e8e8;
  }
  .list_btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    padding: 0;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    display: none;
    @include mix.box-shadow(0 10px 25px 0 rgba(0, 0, 0, 0.3));
    @include mix.border-radius(3px);
  }
}
.people-list {
  transition: 0.5s;
  .chat-list {
    li {
      padding: 10px 15px;
      list-style: none;
      @include mix.border-radius(3px);
      &:hover {
        background: #efefef;
        cursor: pointer;
      }
      &.active {
        background: #efefef;
      }
      .name {
        font-size: 15px;
      }
    }
    img {
      width: 45px;
      @include mix.border-radius(50%);
    }
  }
  img {
    float: left;
    border: 1px solid #fff;
    @include mix.box-shadow(0px 5px 25px 0px rgba(0, 0, 0, 0.2));
    @include mix.border-radius(50%);
  }
  .about {
    float: left;
    padding-left: 8px;
  }
  .status {
    color: #999;
    font-size: 13px;
  }
}
.chat {
  .chat-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    border-radius: 0 0.55rem 0 0;
    img {
      float: left;
      @include mix.border-radius(50%);
      width: 45px;
    }
    .chat-about {
      float: left;
      padding-left: 10px;
    }
    .chat-with {
      font-weight: bold;
      font-size: 16px;
    }
    .chat-num-messages {
      color: 434651;
    }
  }
  .chat-history {
    padding: 20px;
    border-bottom: 2px solid #fff;
    height: 450px;
    ul {
      padding: 0;
      li {
        list-style: none;
      }
    }
    .message-data {
      margin-bottom: 15px;
      .message-data-name {
        font-size: 13px;
        font-weight: 700;
      }
    }
    .message-data-time {
      color: #434651;
      padding-left: 6px;
    }
    .message {
      color: #444;
      padding: 18px 20px;
      line-height: 26px;
      font-size: 13px;
      @include mix.border-radius(7px);
      margin-bottom: 30px;
      width: 90%;
      position: relative;
      &:after {
        bottom: 100%;
        left: 7%;
        border: solid transparent;
        content: " ";
        height: 0;
        width: 0;
        position: absolute;
        pointer-events: none;
        border-bottom-color: #fff;
        border-width: 10px;
        margin-left: -10px;
      }
    }
    .my-message {
      background: #e8e8e8;
      &:after {
        bottom: 100%;
        left: 7%;
        border: solid transparent;
        content: " ";
        height: 0;
        width: 0;
        position: absolute;
        pointer-events: none;
        border-bottom-color: #e8e8e8;
        border-width: 10px;
        margin-left: -10px;
      }
    }
    .other-message {
      background: #d9e7ea;
      &:after {
        border-bottom-color: #d9e7ea;
        left: 93%;
      }
    }
  }
  .chat-message {
    padding: 20px;
    textarea {
      width: 100%;
      border: none;
      padding: 10px 20px;
      font: 14px/22px Lato, Arial, sans-serif;
      margin-bottom: 10px;
      @include mix.border-radius(5px);
      resize: none;
    }
    .fa-file-o {
      @extend %font_extend;
    }
    .fa-file-image-o {
      @extend %font_extend;
    }
  }
}
.online {
  margin-right: 3px;
  font-size: 10px;
  color: #86bb71;
}
.offline {
  margin-right: 3px;
  font-size: 10px;
  color: #e38968;
}
.me {
  margin-right: 3px;
  font-size: 10px;
  color: #0498bd;
}
.float-end {
  float: right;
}
.clearfix:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0;
}
.slimScrollBar {
  z-index: 0 !important;
}
.chat-upload {
  float: right;
}
