
﻿/**
 * ChatJS 1.0
 * www.chatjs.net
 * 
 * Copyright (c) 2013, André Pena
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms,
 * with or without modification, are permitted provided
 * that the following conditions are met:
 * 
 *     - Redistributions of source code must retain the above copyright notice,
 *       this list of conditions and the following disclaimer.
 * 
 *     - The software containing ChatJS must not directly or indirectly charge the
 *       end user at any plan. Otherwise a commercial license is required.
 **/

.chat-window-tray {
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    background-color: white;
    background-image: url("../images/users.png");
    background-position: 8px center;
    background-repeat: no-repeat;
    border-color: #000000;
    border-color: rgba(0, 0, 0, 0.3);
    border-image: none;
    border-style: solid;
    border-width: 0 1px;
    bottom: 0;
   
    font-size: 12px;
    height: 32px;
    line-height: 14.4px;
    position: fixed;
    width: 40px;
    z-index: 10001;
}

    .chat-window-tray.minimized {
        background-color: #EEEEEE;
        border-width: 1px 1px 0;
        height: 29px;
    }

.chat-window {
    background-color: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-width: 1px 1px 0px 1px;
    bottom: 0;
  padding-bottom:7px;
    font-size: 12px;
    line-height: 14.4px;
    position: fixed;
    width: 284px;
    z-index: 10000;
   
}

    .chat-window.expansible {
        border-width: 1px;
        margin-bottom: 31px;
    }

    .chat-window .temp-message {
        color: rgb(176, 176, 176);
    }

.chat-window-title {
    /*background: none repeat scroll 0 0 #EEEEEE;*/
font-weight: 600;
cursor: pointer;
overflow: hidden;
padding: 6px 6px 6px 5px;
border-bottom: 1px solid #ddd;
background: #2877a0;
color: #fff;
position: relative;
}
    /*.chat-window-title:before {
font-family: FontAwesome;
content: '\f068';
position: absolute;
top: 7px;
left: 4px;
color: rgba(255,255,255,.5);
    }*/
    .chat-window-title:hover {
    background:#3f96c3;
box-shadow:none;
    }
.minimized .chat-window-title {
    background:#fff;
box-shadow:0 3px 0 #2877a0 inset;
color: #000;
}
   /*.minimized .chat-window-title:before {
font-family: FontAwesome;
content: '\f067';
position: absolute;
top: 7px;
left: 4px;
color: rgba(0,0,0,.3);
    }*/
.minimized .chat-window-title:hover {
background:#e9e9e9;
}
    .chat-window-title .text {
        margin-top: 1px;
    }
.chat-window-title .subtext {
    margin-top: 5px;
}
.minimized .chat-window-title .close {
background-color:#fff;
}
     .close {
background-image: url("../images/clear.png");
float: left;
height: 20px;
opacity: 0.7;
width: 20px;
background-position: center;
background-size: 80%;
border-radius: 50%;
margin-top: 5px;
box-sizing:border-box;
background-color: rgba(0,0,0,.3);
    }

        .chat-window-title .close:hover {
            opacity: 0.5;
        }

    .chat-window-title.unread {
        background: none repeat scroll 0 0 white;
    }

    .chat-window-title.online {
        background-image: url("../images/chat-online.png");
        background-position: 8px 10px;
        background-repeat: no-repeat;
        padding-left: 22px;
    }

    .chat-window-title.offline {
        background-image: url("../images/chat-offline.png");
        background-position: 8px 10px;
        background-repeat: no-repeat;
        padding-left: 22px;
    }

.chat-window-inner-content {
    max-height: 300px;
    overflow-y: auto;
}

    .chat-window-inner-content .loading-box {
        background-position: center center;
        background-repeat: no-repeat;
        padding: 30px;
    }

textarea.chat-window-text-box {
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;

   
    resize: none;
 

    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    /*border-radius: 4px;*/
    border-bottom-left-radius:0px;
    border-bottom-right-radius:0px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;

}
    textarea.chat-window-text-box:focus {
    box-shadow:none;
    }
.user-list {
    -moz-box-sizing: border-box; /* Firefox, other Gecko */
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    box-sizing: border-box; /* Opera/IE 8+ */
    overflow-x: hidden;
    overflow-y: auto;
}

    .user-list .user-list-item {
        background-position: 2px center;
        background-repeat: no-repeat;
        cursor: pointer;
        margin: 5px;
        margin-bottom:15px;
        overflow: hidden;
    }

        .user-list .user-list-item .profile-picture {
            display: block;
            float: left;
            height: 40px;
            width: 40px;
            border-radius:50%;
        }

        .user-list .user-list-item .profile-status {
            display: block;
            float: right;
            height: 7px;
            margin: 8px 4px 0;
            width: 7px;
        }

            .user-list .user-list-item .profile-status.online {
                background-image: url("../images/chat-online.png");
                background-repeat: no-repeat;
            }

            .user-list .user-list-item .profile-status.offline {
                background-image: url("../images/chat-offline.png");
                background-repeat: no-repeat;
            }

        .user-list .user-list-item .content {
            margin: 10px 22px 10px 30px;
           
        }

        .user-list .user-list-item.offline {
            background-image: url("../images/chat-offline.png");
        }

        .user-list .user-list-item.online {
            background-image: url("../images/chat-online.png");
        }

    .user-list .user-list-empty {
        background-position: 2px center;
        background-repeat: no-repeat;
        padding: 10px;
    }

.message-board .chat-window-text-box-wrapper {
    -moz-box-sizing: border-box; /* Firefox, other Gecko */
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    box-sizing: border-box; /* Opera/IE 8+ */
    padding: 0px;
    position:relative;
}
    /*.message-board .chat-window-text-box-wrapper:before {
        font-family: "Font Awesome 5 Solid";
        content: "\f040";
        position: absolute;
        top: 10px;
        left: 4px;
        color: #ccc;
    }*/
    .message-board .chat-window-text-box-wrapper .chat-window-text-box {
        -moz-box-sizing: border-box; /* Firefox, other Gecko */
        -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
        box-sizing: border-box; /* Opera/IE 8+ */
        height: 16px;
        outline: 0;
    }

.chat-message {
    margin: 0 5px;
    overflow: auto;
    padding: 2px 0;
    height: -webkit-fill-available;
}

    .chat-message:last-child {
        border-bottom: none;
    }

    .chat-message .chat-gravatar-wrapper {
        float: left;
    }

    .chat-message .chat-text-wrapper {
        line-height: 1.2em;
        margin-left: 30px;
    }

    .chat-message p {
        margin: 0;
    }

    .chat-message .sender {
        border-radius:4px;
        border:1px solid rgba(203,235,255,1);
background: rgb(240,249,255); /* Old browsers */
background: -moz-linear-gradient(top,  rgba(240,249,255,1) 0%, rgba(203,235,255,1) 47%, rgba(161,219,255,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(240,249,255,1)), color-stop(47%,rgba(203,235,255,1)), color-stop(100%,rgba(161,219,255,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top,  rgba(240,249,255,1) 0%,rgba(203,235,255,1) 47%,rgba(161,219,255,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top,  rgba(240,249,255,1) 0%,rgba(203,235,255,1) 47%,rgba(161,219,255,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top,  rgba(240,249,255,1) 0%,rgba(203,235,255,1) 47%,rgba(161,219,255,1) 100%); /* IE10+ */
background: linear-gradient(to bottom,  rgba(240,249,255,1) 0%,rgba(203,235,255,1) 47%,rgba(161,219,255,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f0f9ff', endColorstr='#a1dbff',GradientType=0 ); /* IE6-9 */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f0f9ff', endColorstr='#a1dbff',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
width:85%;
float:left;
position:relative;
margin:3px 0 3px 10px;
padding:6px 4px;
    }
    .chat-message img {
    width:22px;
    height:22px;
    border-radius:50%;
    }
   .chat-message .sender:after {
        font-family:FontAwesome;
        content:'\f04b';
        position:absolute;
        color:rgba(203,235,255,1);
        float: left;
left: -8px;
bottom: 0px;
font-size: 9px;
-webkit-transform:rotate(180deg);
        }     
.chat-message .recipient {
        border-radius:4px;
        border:1px solid #eee;
        background: rgb(255,255,255); /* Old browsers */
background: -moz-linear-gradient(top,  rgba(255,255,255,1) 0%, rgba(229,229,229,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(100%,rgba(229,229,229,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(229,229,229,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(229,229,229,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(229,229,229,1) 100%); /* IE10+ */
background: linear-gradient(to bottom,  rgba(255,255,255,1) 0%,rgba(229,229,229,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e5e5e5',GradientType=0 ); /* IE6-9 */
width:85%;
float:right;
position:relative;
margin:3px 10px 3px 0;
padding:6px 4px;
         }
 .chat-message .recipient:after {
        font-family:FontAwesome;
        content:'\f04b';
        position:absolute;
        color:#eee;
        float: right;
right: -8px;
bottom: 0px;
font-size: 9px;
        }
    .chat-message label {
    display:none;
    }
.chat-window-content { 
    text-align:right;
}


    .chat-window-content .message-warning {
        margin: 0;
    }

    .chat-window-content .typing-signal {
        color: gray;
        margin: 3px 8px;
        font-size:small;
        font-style:italic;
    }

    .chat-window-content input[type=text] {
        -moz-box-sizing: border-box; /* Firefox, other Gecko */
        -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
        border-radius: 0;
        box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
        box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
        box-sizing: border-box; /* Opera/IE 8+ */
        height: auto;
        margin: 0;
        margin: 0;
        transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;
        transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;
    }

.happy {
    background-image: url("../images/Emoticons/smile-2.png");
    display: inline-block;
    height: 16px;
    vertical-align: top;
    width: 16px;
}

.very-happy {
    background-image: url("../images/Emoticons/smile-1.png");
    display: inline-block;
    height: 16px;
    vertical-align: top;
    width: 16px;
}

.sad {
    background-image: url("../images/Emoticons/smile-3.png");
    display: inline-block;
    height: 16px;
    vertical-align: top;
    width: 16px;
}

.wary {
    background-image: url("../images/Emoticons/smile-4.png");
    display: inline-block;
    height: 16px;
    vertical-align: top;
    width: 16px;
}

.astonished {
    background-image: url("../images/Emoticons/smile-5.png");
    display: inline-block;
    height: 16px;
    vertical-align: top;
    width: 16px;
}

.tongue {
    background-image: url("../images/Emoticons/smile-6.png");
    display: inline-block;
    height: 16px;
    vertical-align: top;
    width: 16px;
}

/*ul.horizontal-tab {
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    list-style: none outside none;
    margin-bottom: 4px;
    margin-top: 2px;
    padding: 0 8px;
}*/

    /*ul.horizontal-tab li .text {
    }

    ul.horizontal-tab li .close {
        background-image: url("../images/clear.png");
        display: none;
        float: right;
        height: 16px;
        margin-left: 2px;
        margin-right: -4px;
        margin-top: -1px;
        opacity: 0.7;
        width: 16px;
    }

    ul.horizontal-tab li.selected .close {
        display: inline;
    }*/

    /*ul.horizontal-tab .event-mark {
        background-color: #C63636;
        border-radius: 3px;
        color: #FFFFFF;
        font-size: 0.8em;
        margin-left: 4px;
        padding: 2px 4px;
        position: relative;
        top: -1px;
    }

    ul.horizontal-tab li {
        cursor: pointer;
        display: inline-block;
        margin: 0 6px;
        position: relative;
        top: 1*/px;
    }

.tab-content .rooms-list {
    overflow-y: auto;
}

.rooms-list > .user-list-empty {
    margin: 5px 10px;
}


ul.horizontal-tab li.selected {
    background-color: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.3);
    border-style: solid;
    border-width: 1px 1px 0;
    margin: 0 2px;
    padding: 4px 6px;
}

.rooms-list-item {
    cursor: pointer;
    overflow: hidden;
    padding: 5px 0;
}

    .rooms-list-item.hover {
        background-color: #F0F3F5;
    }

    .rooms-list-item .room-name {
        margin: 0 10px;
    }

    .rooms-list-item .users-online {
        float: right;
        font-weight: bold;
        margin: 0 10px;
    }

/*.tab-content {
    display: none;
    overflow: hidden;
}*/

    ./*tab-content.selected-tab {
        display: block;
    }

    .tab-content .content-wrapper {
        border-top: 1px solid #E8E8E8;
    }

    .tab-content .left-panel {
        border-right: 1px solid #E8E8E8;
        margin-right: 162px;
    }*/

.message-board .messages-wrapper {
    -moz-box-sizing: border-box; /* Firefox, other Gecko */
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    box-sizing: border-box; /* Opera/IE 8+ */
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2px 0;
}

    .message-board .messages-wrapper .profile-picture {
        height: 22px;
        width: 22px;
    }

/*.tab-content .right-panel {
    float: right;
    width: 160px;
}*/

.message-board {
    -moz-box-sizing: border-box; /* Firefox, other Gecko */
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    box-sizing: border-box; /* Opera/IE 8+ */
    position: relative;
    overflow: hidden;
}

    .message-board.pm-window {
        margin-bottom: 3px;
    }

/* this is for the autocomplete to appear within */
.flyout-box {
    -moz-box-sizing: border-box; /* Firefox, other Gecko */
    -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
    box-sizing: border-box; /* Opera/IE 8+ */
    background-color: #EEEEEE;
    float: left;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.flyout-text-box {
    overflow: hidden;
}

.flyout-box .text-wrapper {
    margin: 3px 25px 4px 3px;
}

.flyout-box .text-wrapper .flyout-text-box {
    border: 1px solid #BBBBBB;
    border-radius: 0;
    box-sizing: border-box;
    font-size: 12px;
    line-height: 1.2em;
    margin: 0;
    overflow: hidden;
    padding: 3px;
    resize: none;
    width: 100%;
}

.flyout-box .button-wrapper {
    background-image: url("../images/add.png");
    background-position: center center;
    cursor: pointer;
    float: right;
    height: 20px;
    margin: 4px 3px 2px 0;
    width: 20px;
}
.chat-message label {
    display: block;
    float: right;
    margin: 0 5px 0 5px;
    color: blue;
    font-weight: bold;
    direction: rtl;
}
    .chat-message label::after {
        content:":";
    }