﻿body {
    margin: 0;
    padding: 0;
}

.chat-container {
    width: 100%;
    height: 712px;
    background: #eff3f7;
    margin: 0 auto;
    font-size: 0;
    border-radius: 0;
    overflow: hidden;
    direction: rtl;
    font-family: 'WebmehrazFont';
}

    .chat-container aside {
        width: 20%;
        height: 800px;
        background: linear-gradient(#00009e, #36c );
        display: inline-block;
        font-size: 15px;
        vertical-align: top;
    }

    .chat-container .chat-main {
        width: 80%;
        height: 100vh;
        display: inline-block;
        font-size: 15px;
        vertical-align: top;
        background: #777 url(/images/bgchat.png);
        border-radius: 6px 0 0 6px;
        position: relative;
        background-size: 125px;
    }

.chatlistbyroom {
    overflow-y: auto;
    height: calc(100vh - 200px);
}

.chat-container aside .chat-header {
    padding: 15px;
}

.chat-container aside input {
    width: 100%;
    height: 50px;
    line-height: 50px;
    padding: 0 20px 0 50px;
    background-color: #fbfbfb;
    border: none;
    border-radius: 5px;
    color: #000;
    background: #fff url(/icons/searchnew.png) no-repeat center left 15px;
    background-size: 20px;
    font-family: 'WebmehrazFont';
}

    .chat-container aside input:focus {
        background-color: #5e616a;
    }

    .chat-container aside input::placeholder {
        color: #555;
    }

.chat-container aside ul {
    padding-left: 0;
    margin: 0;
    list-style-type: none;
    height: 690px;
    padding-right: 15px;
}

.chat-container aside li {
    position: relative;
    padding: 10px 70px 10px 0;
    margin-bottom: 4px;
    border-radius: 0 6px 6px 0;
    height: 70px;
}

    .chat-container aside li:hover {
        opacity: 0.8;
        cursor: pointer;
    }

    .chat-container aside li.active {
        background: #ffffee;
        border-radius: 0 10px 10px 0;
        cursor: pointer;
    }

    .chat-container aside li.active {
        background: #fffbd4;
        border-radius: 0 10px 10px 0;
        cursor: pointer;
    }

        .chat-container aside li.active h2 {
            color: #000;
            line-height: 1.6;
        }

.chat-container h2, .chat-container h3 {
    margin: 0;
}

.chat-container aside li img {
    border-radius: 50%;
    margin-left: 20px;
    margin-right: 8px;
    width: 50px;
    height: 50px;
    position: absolute;
    right: 0;
    top: 10px;
    background: url(/images/avatar.png) no-repeat center;
    background-size: 50px;
}


.chat-container aside li h2 {
    font-size: 14px;
    color: #000;
    font-weight: normal;
    margin-bottom: 5px;
    color: #fff;
    line-height: 50px;
}

.chat-container aside li h3 {
    font-size: 10px;
    color: #7e818a;
    font-weight: normal;
    padding-right: 16px;
    display: none;
}

.chat-container aside li.active h3 {
    display: block;
}

.chat-container .status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    font-weight: 200;
    margin: 0 0 5px;
    position: absolute;
    right: 69px;
}

.chat-container .green {
    background-color: #58b666;
}

.chat-container .orange {
    background-color: #ccc;
}

.chat-container .blue {
}

.chat-container .chat-main .chat-header {
    height: 50px;
    padding: 0;
    line-height: 35px;
    background: #fff;
    border-radius: 0 0 0 0;
    line-height: 50px;
    color: #fff;
}

    .chat-container .chat-main .chat-header > * {
        display: inline-block;
        vertical-align: top;
    }

    .chat-container .chat-main .chat-header img:first-child {
        border-radius: 9px;
        height: 40px;
        margin: 4px 7px 0 7px;
        background: #fff;
    }

    .chat-container .chat-main .chat-header img:last-child {
        width: 24px;
        margin-top: 8px;
    }

    .chat-container .chat-main .chat-header div {
        margin-right: 12px;
    }

    .chat-container .chat-main .chat-header h2 {
        font-size: 16px;
        margin-right: 2px;
        color: #000;
    }

    .chat-container .chat-main .chat-header h3 {
        font-size: 14px;
        font-weight: normal;
        color: #7e818a;
    }

.chat-container .chat {
    margin: 0;
    list-style-type: none;
    border-top: 2px solid #fff;
    padding: 40px 120px 20px;
}

    .chat-container .chat li {
        padding: 5px 10px;
        position: relative;
        margin-bottom: 34px;
    }

    .chat-container .chat h2, .chat h3 {
        display: inline-block;
        font-size: 13px;
        font-weight: normal;
    }

    .chat-container .chat h3 {
        color: #646464;
        font-weight: 200;
    }

    .chat-container .chat .messagetime {
        margin-bottom: 5px;
        position: absolute;
        bottom: -34px;
        background: #eee;
        padding: 0 10px;
        border-radius: 5px;
        font-size: 12px;
        direction: rtl;
        opacity: 0.5;
    }

    .chat-container .chat .message {
        padding: 10px;
        color: #fff;
        line-height: 25px;
        max-width: 90%;
        display: inline-block;
        text-align: left;
        border-radius: 10px;
        text-shadow: 0 0 2px #000;
    }

    .chat-container .chat .you {
        text-align: left;
        direction: ltr;
    }

        .chat-container .chat .you::before {
            content: '';
            position: absolute;
            bottom: -6px;
            left: 36px;
            width: 0;
            height: 0;
            border-left: 4px solid transparent;
            border-right: 7px solid transparent;
            border-top: 11px solid #2a1001;
        }

    .chat-container .chat .me .message {
        background: linear-gradient(-90deg, #011e9f, #1b37b8);
    }

    .chat-container .chat .you .message {
        background: linear-gradient(-90deg, #602900, #200b01);
    }

    .chat-container .chat .me:before {
        content: '';
        position: absolute;
        bottom: -6px;
        right: 29px;
        width: 0;
        height: 0;
        border-left: 7px solid transparent;
        border-right: 4px solid transparent;
        border-top: 11px solid #0522a3;
    }

    .chat-container .chat .triangle {
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 0 6px 8px 6px;
        right: 37px;
        position: absolute;
        top: 12px;
    }

.chat-container .chat-main .chat-footer {
    height: 155px;
    padding: 20px 30px 10px 20px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #eee;
}

    .chat-container .chat-main .chat-footer .chat-textarea {
        resize: none;
        border: none;
        display: block;
        width: 100%;
        height: 80px;
        border-radius: 8px;
        padding: 12px;
        font-size: 13px;
        margin-bottom: 13px;
        font-family: 'WebmehrazFont';
        background: #fff;
        line-height: 30px;
        border: 2px solid #fff;
    }

        .chat-container .chat-main .chat-footer .chat-textarea:focus {
            border: 2px solid #0068ee;
        }


        .chat-container .chat-main .chat-footer .chat-textarea::placeholder {
            color: #000;
            font-family: 'WebmehrazFont';
        }

    .chat-container .chat-main .chat-footer img {
        height: 45px;
        cursor: pointer;
        display: inline-block;
        vertical-align: top;
        line-height: 50px;
        padding: 7px 0px;
        width: 25px;
    }

    .chat-container .chat-main .chat-footer .btn-chat-send,
    .chat-container .chat-main .chat-footer .btn-attach {
        text-decoration: none;
        text-transform: uppercase;
        font-weight: 500;
        background: #011e9f;
        color: #fff;
        padding: 0 10px;
        height: 30px;
        line-height: 30px;
        border-radius: 5px;
        display: inline-block;
        vertical-align: top;
        cursor: pointer;
    }

    .chat-container .chat-main .chat-footer .btn-attach {
        font-size: 0;
        background: #ddd url(/icons/054-clip.png) no-repeat center;
        background-size: 15px;
        width: 30px;
    }

.chat-container .chat-btn-box {
    display: block;
}

.chat-container aside .edu-info-box {
    padding: 20px;
    border-radius: 0 0 0 0;
    color: #333;
    font-size: 11px;
    text-align: center;
}

    .chat-container aside .edu-info-box img {
        max-height: 100px;
        margin: auto;
        max-width: 200px;
    }

    .chat-container aside .edu-info-box h2 {
        color: #fff;
    }

.chat-popup {
    display: none;
    font-size: 0;
    height: 100vh;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    padding: 0;
    background: #0005;
}

    .chat-popup .btnclosechatpanel {
        background: #d2d2d2 url(/images/close.png) center center no-repeat;
        cursor: pointer;
        font-size: 0;
        height: 50px;
        left: 0;
        opacity: 1;
        position: absolute;
        top: 0;
        width: 50px;
        z-index: 1;
        border-radius:;
        filter: grayscale(1);
    }

        .chat-popup .btnclosechatpanel:hover {
            cursor: pointer;
            filter: grayscale(0);
        }

    .chat-popup > div {
        background: #fff;
        bottom: 0;
        box-shadow: 0 37px 89px #484848;
        box-sizing: unset;
        height: 100vh;
        left: auto;
        margin: auto;
        min-width: 200px;
        padding: 15px;
        padding: 0 40px;
        position: fixed;
        right: 0;
        top: 0;
        width: 17%;
        z-index: 11;
    }

@media (max-width: 900px) {
    .chat-container aside {
        width: 100%;
        height: 289px;
        display: block;
        position: relative;
    }
        .chat-container aside .edu-info-box {
            padding: 20px 20px 0 20px;
            color: #333;
        }
            .chat-container aside .edu-info-box img {
                max-height: 65px;
                max-width: 200px;
            }
        .chat-container aside .chat-header {
            padding: 5px 15px 15px 15px;
        }
        .chat-container aside input {
            padding: 0 20px 0 50px;
        }
        .chat-container aside ul {
            height: auto;
        }
        .chat-container aside li {
            padding: 10px 70px 10px 0;
            height: 47px;
        }
            .chat-container aside li img {
                width: 30px;
                height: 30px;
            }
    .chat-container .chat-main {
        width: 100%;
        height: auto;
        display: block;

    }
    .chatlistbyroom {
        overflow-y: auto;
        height: calc(100vh - 339px);
    }
}