@import "https://fonts.googleapis.com/css?family=Noto+Sans";

* {
    box-sizing: border-box;
}

body {
    background: skyblue;
    font: 12px/16px 'Noto Sans', sans-serif;
}

.floating-chat {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: fixed;
    bottom: 21px;
    right: 26px;
    width: 28px;
    height: 28px;;
    transform: translateY(70px);
    transition: all 250ms ease-out;
    border-radius: 50%;
    opacity: 0;
    background: -moz-linear-gradient(-45deg, #31B393 0, #31B393 25%, #454E6F 50%, #454E6F 75%, #454E6F 100%);
    background: -webkit-linear-gradient(-45deg, #31B393 0, #31B393 25%, #454E6F 50%, #454E6F 75%, #454E6F 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@media only screen and (max-device-width: 1023px) {
    .floating-chat {
        bottom: 76px;
        right: 10px;
    }
}

.floating-chat.enter:hover {
    /**box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);*/
    opacity: 1;
}

.floating-chat.enter {
    transform: translateY(0);
    opacity: 0.6;
    /**box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 1px 2px rgba(0, 0, 0, 0.14);*/
}

.floating-chat.expand {
    width: 250px;
    max-height: 400px;
    height: 400px;
    border-radius: 5px;
    cursor: auto;
    opacity: 1;
}

.floating-chat :focus {
    outline: 0;
    box-shadow: 0 0 3pt 2pt rgba(14, 200, 121, 0.3);
}

.floating-chat button {
    background: transparent;
    border: 0;
    color: white;
    text-transform: uppercase;
    border-radius: 3px;
    cursor: pointer;
}

.floating-chat .chat {
    display: flex;
    flex-direction: column;
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    border-radius: 50%;
    transition: all 250ms ease-out;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.floating-chat .chat.enter {
    opacity: 1;
    border-radius: 0;
    margin: 10px;
    width: auto;
    height: auto;
}

.floating-chat .chat .header {
    flex-shrink: 0;
    padding-bottom: 10px;
    display: flex;
    background: transparent;
}

.floating-chat .chat .header .title {
    flex-grow: 1;
    flex-shrink: 1;
    padding: 0 5px;
}

.floating-chat .chat .header button {
    flex-shrink: 0;
}

.floating-chat .chat .messages {
    padding: 10px;
    margin: 0;
    list-style: none;
    overflow-y: scroll;
    overflow-x: hidden;
    flex-grow: 1;
    border-radius: 4px;
    background: transparent;
    white-space: pre-line;
}

.floating-chat .chat .messages::-webkit-scrollbar {
    width: 5px;
}

.floating-chat .chat .messages::-webkit-scrollbar-track {
    border-radius: 5px;
    background-color: rgba(25, 147, 147, 0.1);
}

.floating-chat .chat .messages::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: rgba(25, 147, 147, 0.2);
}

.floating-chat .chat .messages li {
    position: relative;
    clear: both;
    display: inline-block;
    padding: 14px;
    margin: 0 0 20px 0;
    font: 12px/16px 'Noto Sans', sans-serif;
    border-radius: 10px;
    background-color: rgba(25, 147, 147, 0.2);
    word-wrap: break-word;
    max-width: 81%;
}

.floating-chat .chat .messages li .avatar {
    position: absolute;
    top: 0;
    width: 25px;
    height: 25px;
    border-radius: 25px;
    background-size: cover;
}

.floating-chat .chat .messages li:after {
    position: absolute;
    top: 10px;
    content: '';
    width: 0;
    height: 0;
    border-top: 10px solid rgba(25, 147, 147, 0.2);
}

.floating-chat .chat .messages li.other {
    animation: show-chat-odd 0.15s 1 ease-in;
    -moz-animation: show-chat-odd 0.15s 1 ease-in;
    -webkit-animation: show-chat-odd 0.15s 1 ease-in;
    float: right;
    margin-right: 45px;
    color: #0AD5C1;
}

.floating-chat .chat .messages li.other .avatar {
    right: -45px;
}

.floating-chat .chat .messages li.other:after {
    border-right: 10px solid transparent;
    right: -10px;
}

.floating-chat .chat .messages li.self {
    animation: show-chat-even 0.15s 1 ease-in;
    -moz-animation: show-chat-even 0.15s 1 ease-in;
    -webkit-animation: show-chat-even 0.15s 1 ease-in;
    float: left;
    margin-left: 45px;
    color: #fff;
}

.floating-chat .chat .messages li.self .avatar {
    left: -45px;
}

.floating-chat .chat .messages li.self:after {
    border-left: 10px solid transparent;
    left: -10px;
}

.floating-chat .chat .footer {
    flex-shrink: 0;
    display: flex;
    padding-top: 10px;
    /*max-height: 90px;*/
    background: transparent;
    margin-bottom: 0px;
}

.floating-chat .chat .footer .text-box {
    border-radius: 3px;
    background: rgba(25, 147, 147, 0.2);
    min-height: 100%;
    width: 100%;
    margin-right: 5px;
    color: #fff;
    overflow-y: auto;
    padding: 2px 5px;
    height: 26px;
    border: 1px solid transparent;
}

.floating-chat .chat .footer .text-box::-webkit-scrollbar {
    width: 5px;
}

.floating-chat .chat .footer .text-box::-webkit-scrollbar-track {
    border-radius: 5px;
    background-color: rgba(25, 147, 147, 0.1);
}

.floating-chat .chat .footer .text-box::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: rgba(25, 147, 147, 0.2);
}

@keyframes show-chat-even {
    0% {
        margin-left: -480px;
    }
    100% {
        margin-left: 0;
    }
}

@-moz-keyframes show-chat-even {
    0% {
        margin-left: -480px;
    }
    100% {
        margin-left: 0;
    }
}

@-webkit-keyframes show-chat-even {
    0% {
        margin-left: -480px;
    }
    100% {
        margin-left: 0;
    }
}

@keyframes show-chat-odd {
    0% {
        margin-right: -480px;
    }
    100% {
        margin-right: 0;
    }
}

@-moz-keyframes show-chat-odd {
    0% {
        margin-right: -480px;
    }
    100% {
        margin-right: 0;
    }
}

@-webkit-keyframes show-chat-odd {
    0% {
        margin-right: -480px;
    }
    100% {
        margin-right: 0;
    }
}

[dir=ltr] .message.my_message .message__aside {
    order: 1;
    margin-right: 0;
    margin-left: 1rem;
}

[dir=ltr] .message.my_message .message__body {
    margin-left: auto;
}

.d-inline-flex.hidden {
    display: none !important;
}

[dir=ltr] .message.my_message .message__body .status {
    position: absolute;
    height: 12px;
    width: 12px;
    right: -19px;
    bottom: 0;
    border-radius: 50%;
}

[dir=ltr] .message.my_message .message__body .status.pending {
    background-color: #fff;
    border: 1px solid #ccc;
}

[dir=ltr] .message.my_message .message__body .status.success {
    background-color: #0ecc2e;
    border: 1px solid #0ecc2e;
}

[dir=ltr] .message.my_message .message__body .status.error {
    background-color: #ff2c2c;
    border: 1px solid #ff2c2c;
}

[dir=ltr] .message.my_message .message__body .error_text {
    position: absolute;
    left: 0px;
    bottom: -18px;
    font-size: 11px;
    color: #ff2c2c;
}

.list-chat-target .unread-count {
    height: 30px;
    width: 30px;
    border-radius: 30px;
    border: 1px solid #ccc;
    text-align: center;
    line-height: 28px;
}

.list-chat-target .unread-count.has-msg {
    border-color: #ff2c2c;
}

.all_msg_text {
    text-align: center;
    padding-bottom: 20px;
    color: #999;
}

.floating-chat .have-msg {
    height: 14px;
    width: 14px;
    background-color: #f00;
    border-radius: 30px;
    position: absolute;
    top: -3px;
    right: -3px;
}

.list-chat-target .chat-user {
    max-width: 145px;
}

.list-chat-target .chat-user .text-body {
    text-overflow: ellipsis;
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}

.chat_msg {
    white-space: pre-line;
}

.input-group.input-group-merge .form-control.admin_chat_input {
    height: 45px;
    line-height: 27.5px;
}

#popup-chat {

}

.chat_popup_modal_bg {
    /*display: none;*/
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: #000;
    opacity: 0.3;
    z-index: 998;
}

.chat_popup_container {
    /*display: none;*/
    z-index: 999;
    position: fixed;
    width: 400px;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-shadow: 1px 1px 28px 0px #999;
}

.chat_popup_container .avatar {

}

.chat_popup_container .teacher_name {
    margin-bottom: 0px;
    font-size: 27px;

}

.chat_popup_container .popup_close {
    position: absolute;
    top: -10px;
    right: -10px;
    cursor: pointer;

}

.chat_popup_container .chat_popup_input_container {
    margin-top: 20px;
    margin-bottom: 10px;

}

.chat_popup_container .popup-text-input {
    width: 100%;
    height: 133px;
    resize: none;

}