﻿
/************************Chat******************************/



.chat .chat-header {
    padding: 10px 10px 10px 10px;
    border-bottom: 2px solid #f1f1f1;
    margin-bottom: 5px;
}

    /*.chat .chat-header img {
        float: right;
    }*/

    .chat .chat-header .chat-about {
        /*float: right;*/
        /*padding-right: 10px;*/
        /*margin-top: 6px;*/
    }

        .chat .chat-header .chat-about img {
            float: right;
            margin-left: 5px;
        }

    .chat .chat-header .chat-with {
        font-weight: 800;
        font-size: 16px;
        text-align: center;
        margin: 0;
        padding: 0;
        width: 80%;
    }

    .chat .chat-header .chat-num-messages {
        color: #92959E;
    }

    .chat .chat-header .fa-star {
        float: left;
        color: #D8DADF;
        font-size: 20px;
        margin-top: 13px;
    }

.chat .chat-history {
    padding: 10px 10px 10px;
    border-bottom: 2px solid white;
    overflow-y: auto;
    height: 300px;
}

    .chat .chat-history::-webkit-scrollbar-track {
        padding: 2px 0;
        background-color: #bebebe;
    }

    .chat .chat-history::-webkit-scrollbar {
        width: 10px;
    }

    .chat .chat-history::-webkit-scrollbar-thumb {
        border-radius: 10px;
        box-shadow: inset 0 0 6px rgba(0,0,0,.3);
        background-color: #007599;
    }



    .chat .chat-history .message-data {
        margin-bottom: 15px;
        font-size: 12px;
        text-align: left;
        float: left;
        margin-top: 15px;
        position: relative;
        clear: both;
        width: 100%;
        direction: ltr;
    }

    .chat .chat-history li.clearfix .message-data {
        margin-bottom: 15px;
        font-size: 12px;
        float: none;
        text-align: right;
        margin-top: 15px;
        position: relative;
    }

    .chat .chat-history .message-data-time {
        color: #a8aab1;
        padding-left: 6px;
        position: absolute;
        bottom: -13px;
        left: auto;
        right: 10%;
    }

    .chat .chat-history li.clearfix .message-data-time {
        bottom: -13px;
        left: 10%;
        right: auto;
    }


    .chat .chat-history .message {
        color: white;
        padding: 5px 10px;
        line-height: 26px;
        font-size: 14px;
        border-radius: 7px;
        border-radius: 7px;
        margin-bottom: 10px;
        width: 90%;
        position: relative;
    }

        .chat .chat-history .message:after {
            bottom: 100%;
            right: 7%;
            border: solid transparent;
            content: " ";
            height: 0;
            width: 0;
            position: absolute;
            pointer-events: none;
            border-bottom-color: #8D8D8D;
            border-width: 10px;
            margin-left: -10px;
        }

    .chat .chat-history .my-message {
        background: #007599;
    }

    .chat .chat-history .message.my-message {
        float: left;
        text-align: left;
    }

        .chat .chat-history .message.my-message:after {
            border-bottom: 96%;
            right: auto;
            left: 9%;
            border-bottom-color: #007599;
        }

    .chat .chat-history .other-message {
        background: #434343;
    }

        .chat .chat-history .other-message:after {
            border-bottom-color: #434343;
            left: 93%;
        }




.chat .chat-message .fa-file-o,
.chat .chat-message .fa-file-image-o {
    font-size: 16px;
    color: gray;
    cursor: pointer;
}

.chat .chat-message button {
    float: left;
    color: #ffffff;
    font-size: 16px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    /* font-weight: bold; */
    background: #155ba9;
    padding: 8px 15px 5px;
}


.online,
.offline,
.me {
    margin-right: 3px;
    font-size: 10px;
}

.online {
    color: #86BB71;
}

.offline {
    color: #E38968;
}

.me {
    color: #434343;
}






/* The popup chat - hidden by default */
.form-popup {
    /*display: none;*/
    position: fixed;
    bottom: 0;
    right: 350px;
    /*position: fixed;
    bottom: 0;
    right: 15px;*/
    border: 3px solid #f1f1f1;
    z-index: 9;
    border-radius: 10px 10px 0 0;
    border: #ccc 1px solid;
}

/* Add styles to the form container */
.form-container {
    width: 270px;
    max-width: 300px;
    padding: 0px;
    background-color: white;
    border-radius: 10px 10px 0 0;
}

/* Full-width textarea */



.chat .chat-message textarea {
    width: 100%;
    border: none;
    padding: 10px 20px;
    font-family: tajawal;
    border-radius: 5px;
    resize: none;
    min-height: 70px;
    background: #f1f1f1;
    max-height: 56px;
    font-size: 14px;
}

.chat-message-send {
    padding: 10px 10px 0px;
}

/* When the textarea gets focus, do something */
.chat .chat-message textarea:focus {
    background-color: #ddd;
    outline: none;
}

/* Set a style for the submit/login button */
.form-container .btn {
    background-color: #4CAF50;
    color: white;
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
    opacity: 0.8;
}

/* Add a red background color to the cancel button */
.form-container .cancel {
    background-color: red;
}

/* Add some hover effects to buttons */
.form-container .btn:hover, .open-button:hover {
    opacity: 1;
}


li.clearfix {
    clear: both;
}

    li.clearfix .replyBtn {
        background-color: transparent !important;
        float: right !important;
        padding: 0px !important;
        border: 0px !important;
        margin-left: 10px;
        transform: rotate(0deg);
    }

.replyBtn {
    background-color: transparent !important;
    float: left !important;
    padding: 0px !important;
    border: 0px !important;
    margin-right: 10px;
    transform: rotate(180deg);
}

    .replyBtn img {
        border-radius: 0 !important;
        border: 0px !important;
        width: 18px;
    }

.send-reply {
    background-color: #E3E3E3;
    font-size: 12px;
    padding: 5px 5px 5px 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    border-left: 4px solid #16A4E2;
}

    .send-reply p {
        font-size: 12px;
        padding: 0px;
        margin: 0px;
        color: #8D8D8D;
    }

    .send-reply span {
        color: #16A4E2;
    }

    .send-reply i {
        float: right;
    }

.msgAttachment img.icon {
    width: 20px;
    margin-left: 2px;
    border: none;
    border-radius: 0px;
    margin-top: 2px;
}

.msgAttachment.view img {
    float: right;
}

.msgAttachment.view a {
    font-size: 14px;
}

.msgAttachment span {
    font-size: 14px;
    color: #434651;
}

.msgAttachment a {
    line-height: 20px;
}

.msgAttachment {
    background-color: #E3E3E3;
    margin-left: 20px;
    display: inline-block;
    margin-bottom: 7px;
    padding: 7px 5px 5px 10px;
    direction: ltr;
    text-align: right;
    border-radius: 5px;
    width: 100%;
}

    .msgAttachment.view {
        padding: 2px 5px 0px 10px;
        width: auto;
    }

    .msgAttachment i {
        float: right;
        margin-left: 7px;
        margin-top: 2px;
    }

    .msgAttachment.view img.item {
        margin: 10px 0;
    }

#progressbar {
    background-color: #E3E3E3;
    background-repeat: repeat-x;
    border-radius: 9px;
    /* (height of inner div) / 2 + padding */
    padding: 3px;
    width: 100%;
    margin-bottom: 7px;
}

    #progressbar > div {
        background-color: #16A4E2;
        width: 0%;
        /* Adjust with JavaScript */
        height: 6px;
        border-radius: 10px;
        text-indent: 1000px;
    }

.chat-history li {
    clear: both;
}

.link {
    cursor: pointer;
}

#close-chat {
    float: left;
}

.chat.focused .chat-header {
    background-color: #007599;
    color: white;
    border-radius: 10px 10px 0 0;
}

.chat.focused .red {
    color: white
}

.voiceChat.disabled {
    filter: grayscale(100%);
}
.voiceChat.enabled {
    filter: grayscale(0%);
}

.voice-request {
    color: #31708f;
    background-color: #d9edf7;
    border: 1px solid #bce8f1;
    border-radius: 4px;
    clear: both;
    font-size: 13px;
    padding: 5px;
}
    .voice-request a, .voice-request a:hover, .voice-request a:focus, .voice-request a:active {
        color: #428BCA;
        text-decoration: none;
    }

.message a {
    color: #00ff0a;
    font-weight: bold;
}