﻿/*====chat css start====*/

#center-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}
/*
#chat-circle {
    position: fixed;
    bottom: 50px;
    right: 50px;
    background: #5A5EB9;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    color: white;
    padding: 28px;
    cursor: pointer;
    box-shadow: 0px 3px 16px 0px rgba(0, 0, 0, 0.6), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}*/

.btn#my-btn {
    background: white;
    padding-top: 13px;
    padding-bottom: 12px;
    border-radius: 45px;
    padding-right: 40px;
    padding-left: 40px;
    color: #5865C3;
}

#chat-overlay {
    background: rgba(255,255,255,0.1);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: none;
}

.chat-box {
    display: none;
    background: #ffffff;
    position: fixed;
    right: 10px;
    bottom: 10px;
    width: 350px;
    max-width: 85vw;
    max-height: 100vh;
    border-radius: 5px;
    box-shadow: 0px 5px 16px 9px #cccccc24;
    z-index: 9999;
}

.chat-box-toggle {
    float: right;
    margin-right: 15px;
    cursor: pointer;
}

.chat-box-header {
    background: #f6790b;
    height: 60px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    color: white;
    text-align: center;
    font-size: 18px;
    padding-top: 17px;
}

.chat-box-body {
    position: relative;
    height: 370px;
    height: auto;
    border: 1px solid #ccc;
    overflow: hidden;
}

    .chat-box-body:after {
        content: "";
        background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgdmlld0JveD0iMCAwIDIwMCAyMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTAgOCkiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PGNpcmNsZSBzdHJva2U9IiMwMDAi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IxMy41IiBjeT0iMjMuNSIgcj0iMS41Ii8+PHBhdGggZmlsbD0iIzAwMCIgZD0iTTkzIDcxaDN2M2gtM3ptMzMgODRoM3YzaC0zem0tODUgMThoM3YzaC0zeiIvPjxwYXRoIGQ9Ik0zOS4zODQgNTEuMTIybDUuNzU4LTQuNDU0IDYuNDUzIDQuMjA1LTIuMjk0IDcuMzYzaC03Ljc5bC0yLjEyNy03LjExNHpNMTMwLjE5NSA0LjAzbDEzLjgzIDUuMDYyLTEwLjA5IDcuMDQ4LTMuNzQtMTIuMTF6bS04MyA5NWwxNC44MyA1LjQyOS0xMC44MiA3LjU1Ny00LjAxLTEyLjk4N3pNNS4yMTMgMTYxLjQ5NWwxMS4zMjggMjAuODk3TDIuMjY1IDE4MGwyLjk0OC0xOC41MDV6IiBzdHJva2U9IiMwMDAiIHN0cm9rZS13aWR0aD0iMS4yNSIvPjxwYXRoIGQ9Ik0xNDkuMDUgMTI3LjQ2OHMtLjUxIDIuMTgzLjk5NSAzLjM2NmMxLjU2IDEuMjI2IDguNjQyLTEuODk1IDMuOTY3LTcuNzg1LTIuMzY3LTIuNDc3LTYuNS0zLjIyNi05LjMzIDAtNS4yMDggNS45MzYgMCAxNy41MSAxMS42MSAxMy43MyAxMi40NTgtNi4yNTcgNS42MzMtMjEuNjU2LTUuMDczLTIyLjY1NC02LjYwMi0uNjA2LTE0LjA0MyAxLjc1Ni0xNi4xNTcgMTAuMjY4LTEuNzE4IDYuOTIgMS41ODQgMTcuMzg3IDEyLjQ1IDIwLjQ3NiAxMC44NjYgMy4wOSAxOS4zMzEtNC4zMSAxOS4zMzEtNC4zMSIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjEuMjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPjwvZz48L3N2Zz4=');
        opacity: 0.1;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        height: 100%;
        position: absolute;
        z-index: -1;
    }

#chat-input {
    background: #f4f7f9;
    width: 100%;
    position: relative;
    height: 47px;
    padding-top: 10px;
    padding-right: 50px;
    padding-bottom: 10px;
    padding-left: 15px;
    border: none;
    resize: none;
    outline: none;
    border: 1px solid #ccc;
    color: #888;
    border-top: none;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    overflow: hidden;
}

.chat-input > form {
    margin-bottom: 0;
}

#chat-input::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    color: #ccc;
}

#chat-input::-moz-placeholder { /* Firefox 19+ */
    color: #ccc;
}

#chat-input:-ms-input-placeholder { /* IE 10+ */
    color: #ccc;
}

#chat-input:-moz-placeholder { /* Firefox 18- */
    color: #ccc;
}

.chat-submit {
    position: absolute;
    bottom: 3px;
    right: 10px;
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 50%;
    color: #5A5EB9;
    width: 35px;
    height: 35px;
}

.chat-logs {
    padding: 15px;
    height: 370px;
    overflow-y: scroll;
}

    .chat-logs::-webkit-scrollbar-track {
        -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
        background-color: #F5F5F5;
    }

    .chat-logs::-webkit-scrollbar {
        width: 5px;
        background-color: #F5F5F5;
    }

    .chat-logs::-webkit-scrollbar-thumb {
        background-color: #5A5EB9;
    }

.chat-msg.user > .msg-avatar img {
    height: 50px;
    border-radius: 50%;
    float: left;
    /*width: 14%;*/
}

.chat-msg.self > .msg-avatar img {
    /*height: 40px;
    border-radius: 50%;
    float: right;
    width: 14%;*/
    width: 100%;
}

.cm-msg-text {
    background: white;
    padding: 5px 10px 5px 10px;
    color: #666;
    max-width: 75%;
    float: left;
    margin-left: 10px;
    position: relative;
    margin-bottom: 20px;
    border-radius: 10px;
    font-size: 13px;
    overflow-wrap: break-word;
    width: 100%;
}

.chat-msg {
    clear: both;
}

    .chat-msg.self > .cm-msg-text {
        float: right;
        margin-right: 10px;
        background: #878ad9;
        color: white;
    }

    .chat-msg.user > .cm-msg-text {
        float: left;
        margin-left: 10px;
        background: #ee8686;
        color: white;
    }

.cm-msg-button > ul > li {
    list-style: none;
    float: left;
    width: 50%;
}

.chat-msg .datetime.self {
    color: #908e8e;
    font-style: italic;
    font-size: 10px;
    position: relative;
    top: -17px;
    float: right;
    right: 68px;
}

.chat-msg .datetime.user {
    color: #908e8e;
    font-style: italic;
    font-size: 10px;
    position: relative;
    left: -66px;
    top: 27px;
}
/**/





/*chat css -18-10-202*/
.chat-padd {
    padding: 26px 0;
}

.create-chat-btn {
    width: auto;
    height: 40px;
    font-size: 12px;
    box-shadow: -1px 3px 4px 1px rgb(0 0 0 / 10%);
    border-radius: 100px;
    color: #fff;
    border: none;
    outline: none;
    background: #d0a549;
    font-size: 14px;
    position: absolute;
    top: 10px;
    right: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0 10px;
}

    .create-chat-btn i {
        font-size: 18px;
        margin-right: 5px;
    }

.chats {
    /* margin-top: 50px; */
    /* margin-left: 60px; */
    padding: 0px 15px 5px 0;
    width: 100%;
    max-height: 700px;
    background: white;
    border-right: 2px solid lightgray;
    overflow-y: auto;
    box-shadow: 11px 0 10px #e5e5e7;
    ;
}

    .chats.scroller-nav {
        border: none !important;
    }

    .chats::-webkit-scrollbar {
        width: 7px;
    }

    .chats .chat-nav {
        position: fixed;
        margin: 25px 0px 0px 0px;
        width: 30%;
        height: auto;
        background: white;
        border-bottom: 2px solid lightgray;
        box-shadow: 0 30px 20px -20px #ededed;
    }

    .chats .header {
        font-family: "Open Sans", helvetica, sans-serif;
        font-size: 30px;
        margin-left: 10px;
        margin-bottom: 20px;
        margin-top: 10px;
        padding-bottom: 1px;
    }

        .chats .header button {
            float: right;
            margin: 5px 10px 0px 0px;
            border: none;
            background: white;
        }

            .chats .header button i {
                background: linear-gradient(orange, orange, darkorange);
                padding: 8px 9px;
                font-size: 18px;
                color: white;
                border-radius: 50%;
                cursor: pointer;
            }

            .chats .header button:focus {
                outline: none;
            }

    .chats .group-list {
        width: 100%;
    }

    .chats .group {
        display: flex;
        height: 80px;
        background: white;
        margin: 5px 5px 22px 0px;
        border-radius: 5px;
        box-shadow: 3px 3px 0px #ededed;
        border: 1px solid #f6f6f6;
    }

    .chats .active {
        border-left: 5px solid orange;
        border-bottom-left-radius: 0px;
        border-top-left-radius: 0px;
    }

        .chats .active .group-name .title {
            color: #ffa500;
            font-size: 15px;
            margin-bottom: 0px;
            margin-top: 15px;
            font-weight: 600;
        }

    .chats .image {
        margin: auto 15px;
    }

.profile {
    border-radius: 50%;
    margin: 10px -5px;
    height: 50px;
    width: 50px;
}

.chats .image i {
    font-size: 50px;
    color: skyblue;
}

.group-name {
    background: white;
    width: 100%;
    padding: 0px 15px 0px 0px;
}

    .group-name p {
        font-size: 15px;
        color: gray;
    }

    .group-name .title {
        font-size: 15px;
        margin-bottom: 0;
        margin-top: 15px;
        font-weight: 600;
    }

    .group-name p .n {
        background: orange;
        color: white;
        padding: 4px 6px;
        float: right;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        display: flex;
        width: 30px;
    }

    .group-name .title .date {
        float: right;
    }

.chat-group {
    display: flex;
    height: 60px;
    width: 95%;
    background: lightgray;
    border: 2px solid lightgray;
    margin: 10px auto;
    border-radius: 5px;
    box-shadow: 5px 10px 10px #dedede;
}

    .chat-group .fa-user-circle {
        margin: 10px;
        font-size: 40px;
        border-radius: 18px;
        background-color: white;
    }

.chat-container {
    /* width: 100%;
        height: 85vh; */
    width: 100%;
    position: relative;
}

.chat-room ::-webkit-scrollbar {
    width: 10px;
}

.chat-room {
    margin-bottom: 17px;
    margin-top: 0;
    max-height: 690px;
    overflow-y: auto;
    padding: 24px 30px 30px;
}

.chatroom-nav {
    position: fixed;
    display: flex;
    height: 65px;
    width: 70%;
    background: white;
    padding: 5px 20px;
    margin-top: -103px;
    box-shadow: 0 20px 20px -20px #dedede;
    border-bottom: 2px solid lightgray;
    border-left: 2px solid lightgray;
}

    .chatroom-nav .image {
        border-radius: 50%;
        margin-top: 8px;
    }

    .chatroom-nav div:nth-child(2) p {
        margin-top: 18px;
        padding-left: 12px;
        font-family: "Open sans", helvetica, sans-serif;
        font-size: 20px;
    }

    .chatroom-nav div:nth-child(3) {
        margin-left: 60%;
        margin-top: 5px;
    }

    .chatroom-nav i {
        color: lightgray;
        font-size: 20px;
        cursor: pointer;
        margin-top: 15px;
        padding-right: 10px;
    }

.date {
    text-align: center;
    color: orange;
    font-size: 15px;
    font-weight: 400;
}

.message {
    /*width: 100%;*/
    min-width: 60%;
    height: auto;
    margin: auto;
    margin-bottom: 30px;
}

.blurb {
    padding: 25px;
    background: #fbfbfb;
    max-width: 100%;
    font-size: 13px;
    text-align: left;
    line-height: 24px;
    font-weight: 400;
    color: #656464;
    border-radius: 4px;
    box-shadow: -2px 11px 17px 5px #dededebd;
    border: 1px solid #eeeeee6e;
}

.odd-blurb {
    padding: 25px;
    background: #f3f4f766;
    max-width: 100%;
    font-size: 13px;
    text-align: left;
    line-height: 24px;
    font-weight: 400;
    color: #656464;
    border-radius: 4px;
    box-shadow: -2px 11px 17px 5px #dededebd;
    border: 1px solid #eeeeee6e;
}

.blurb, .old-blurb {
    clear: both;
}

.chat-bar {
    position: absolute;
    bottom: -30px;
    /* margin: 0 10px; */
    /* height: auto; */
    width: 100%;
    border: 2px solid #d3d3d38f;
    padding: 5px;
    border-radius: 50px;
    background: white;
}

    .chat-bar i {
        color: slategray;
        font-size: 25px;
        padding: 5px;
    }

    .chat-bar button .fa-paper-plane {
        font-size: 15px;
        color: #fff;
    }

.text-container {
    padding: 1px 20px;
    position: relative;
    width: 100%;
    display: block;
}

    .text-container textarea {
        width: 94%;
        border: none;
        outline: none;
        position: absolute;
        max-height: 51px;
        overflow-y: auto;
        top: 0;
        left: 10px;
    }

.editable {
    color: gray;
}

[contentEditable="true"]:empty:not(:focus):before {
    content: attr(data-text);
}

.editable:focus {
    outline: none;
}

.chat-bar i {
    float: right;
    margin: 5px;
}

    .chat-bar i:hover {
        cursor: pointer;
    }

.chat-bar button {
    border-radius: 50%;
    position: relative;
    border: none;
    float: right;
    height: 45px;
    width: 45px;
    background: orange;
    text-align: center;
    display: flex;
    align-items: center;
}

    .chat-bar button .fas {
        position: absolute;
        top: 0px;
        left: -2px;
        color: white;
        font-size: 25px;
    }

    .chat-bar button:hover {
        cursor: pointer;
    }

    .chat-bar button:focus {
        outline: none;
    }

    .chat-bar button:active {
        box-shadow: 8px 8px 5px #ededed;
        background-color: darkorange;
    }

.lower-icons {
    padding-top: 50vh;
}

.blurb .name, .odd-blurb .name {
    width: 70%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    font-size: 16px;
    color: #755232;
    font-weight: 500;
}

.blurb .designation, .odd-blurb .designation {
    width: 25%;
    text-align: right;
    color: #ffa500;
    font-size: 16px;
    font-weight: 400;
}

.blurb .name .icon, .odd-blurb .name .icon {
    border-radius: 50%;
    height: 40px;
    width: 40px;
    margin: 0 10px 10px 0;
}

    .blurb .name .icon img, .odd-blurb .name .icon img {
        width: 100%;
        border-radius: 50%;
        height: 100%;
    }

.reply-btn {
    width: 25px;
}

    .reply-btn button {
        border: none;
        background: transparent;
        cursor: pointer;
        color: #74AB00;
        font-size: 20px;
    }

.display-none {
    display: none;
}
