#direct-chat {
    position: fixed;
    right: 0px;
    width: 450px;
    height: 500px;
    bottom: 0px;
    z-index: 998;
    display: none;
    box-shadow: 10px 20px 10px 10px rgba(0,0,0,0.2);
}

#direct-chat .card-header {
    background-color: #d8dbe1;
}

#direct-chat .card-body {
    width: 100%;
    height: 385px;
}

.chat-left, .chat-right {
    width: 100%;
    display: flex;
    flex-direction: row;
    position: relative;
}

.chat-left > div, .chat-right > div {
    width: 60%;
    padding: 12px 18px;
    margin-bottom: 5px;
    font-size: 14px;
    box-shadow: 0px 1px 5px -5px rgba(0,0,0,0.6);
}

.chat-right {
    justify-content: right;
}

.chat-left {
    justify-content: left;
}

.chat-right > div {
    border-radius: 45px 0px  38px 45px;
    background-color: #dfdfff;
    text-align: right;
}

.chat-left > div {
    border-radius: 0px 45px  45px 38px;
    background-color: #ffeaea;
}

.chat-right > div.file, .chat-left > div.file {
    width: fit-content;
    background-color: transparent;
    box-shadow: none;
}

.chat-right > div.file img, .chat-left > div.file img {
    border-radius: 10px;
}

#direct-chat .card-footer {
    background-color: #d9d9db;
}

#direct-chat .card-footer textarea#message {
    width: 85%;
    height: 38px;
    margin-right: 5px;
    font-size: 12px;
}

.chat-page .card {
    height: 84vh;
    padding: 0;
}

.chat-page .card-header {
    height: 60px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.chat-page .card-header > button {
    margin-right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    color: #666464;
}

.chat-page .card-header > h5 {
     margin: 0;
 }

.chat-page-body .card-body {
      box-shadow: 5px -5px 3px -2px rgb(230 234 237) inset;
      background-color: #fbfbfb;
}

#chat-page-sidebar-body {
    padding: 0px;
    overflow-y: auto;
    overflow-x: hidden;
}

#chat-page-sidebar-body > div {
    border-bottom: 1px dashed #eed9f8;
    padding: 5px 10px;
}

#chat-page-sidebar-body #selected-user {
    background-color: #f3fff1;
}

#chat-page-sidebar-body .chat-avatar {
    width: 30px;
    height: 30px;
    background-color: #fdf6ff;
    border-radius: 50%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: #818181;
    box-shadow: 0px 0px 2px 1px rgba(0,0,0,0.3);
    padding: 0;
    margin-right: 8px;
    z-index: 1;
}
#chat-page-sidebar-body .chat-avatar.is-online {
    box-shadow: 0px 0px 2px 1px rgba(112,165,167,1);
}

#chat-page-sidebar-body > div > div:nth-child(2) {
    font-size: 10px;
}

#message {
    font-size: 14px;
    border-radius: 30px;
    padding: 6px 20px;
    margin-right: 16px;
}

.uploader {
    font-size: 13px;
}

.chat-page #send {
    background-color: #8049cb;
    color: white;
    margin-left: 5px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
}

.chat-page #uploader-btn {
    background-color: #cbc549;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    padding-left: 13px;
}

.chat-page .user {
    cursor: pointer;
    position: relative;
}

.chat-page-body > .card-body {
    overflow-y: auto;
}

.chat-page-body .msg-time {
    font-size: 10px;
    color: #838383;
    font-weight: 500;
    margin-top: 5px;
}

#chat-body-footer {
    display: none;
    flex-direction: row;
    justify-content: space-between;
}

.chat-page-body .action-panel {
    position: absolute;
    right: -5px;
    top: 0;
    color: #8924f7;
}

.chat-page-body .action-panel .action-panel-body {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 80px;
    background-color: #edf3f3;
    padding: 3px 5px;
    border-radius: 4px;
    box-shadow: 0px 2px 4px -1px;
    text-align: left;
    display: none;
}

.action-panel .open-action-body {
    width: 15px;
    height: 15px;
}

.action-panel .action-panel-body p {
    color: #707070;
    cursor: pointer;
    z-index: 55;
}

.notification{
    width:10px;
    height:10px;
    background:#2033db;
    border-radius:100%;
    position:absolute;
    top: 15px;
    left: 20px;
    z-index: 0;
}
@keyframes breathe{
    0%{transform:scale(1)}
    50%{transform:scale(0.5)}
    100%{transform:scale(1)}
}
@keyframes breathe2{
    0%{transform:scale(1)}
    50%{transform:scale(1.2)}
    100%{transform:scale(1)}
}
.notification:before{
    content:"";
    position:absolute;
    top:-10px;
    left:-10px;
    z-index:2;
    width:30px;
    height:30px;
    background:#2033db;
    opacity:0.3;
    border-radius:100%;
    animation:breathe2 2s infinite;
}
.notification:after{
    content:"";
    position:absolute;
    top:-20px;
    left:-20px;
    z-index:3;
    width:50px;
    height:50px;
    background:#2033db;
    opacity:0.2;
    border-radius:100%;
    animation:breathe 2s infinite;
}
.notification > span{
    color:#fff;
    font-weight:bold;
    font-size:25px;
    position:absolute;
    z-index:4;
    top:6px;
    left:8px;
}

#go-back {
    display: none;
}

@media only screen and (max-width: 767px) {
    #go-back {
        display: block;
    }
}
