/* Chat styles - matching old Chat.aspx design */

.discussion-list {
    background: #d9d9d9;
    overflow-y: auto;
    padding: 10px;
}

.discussion-message {
    background: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 8px 10px;
}

/* Message bubbles */
.message-chat {
    margin-bottom: 8px;
    clear: both;
    overflow: hidden;
}

.message-chat .message-chat-text {
    background: #e8e8e8;
    border-radius: 8px;
    padding: 8px 14px;
    display: inline-block;
    max-width: 75%;
    word-wrap: break-word;
    font-size: 14px;
}

.message-chat .message-chat-meta {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
    clear: both;
}

.message-chat .message-chat-meta .fa-check {
    color: #4CAF50;
    margin-left: 4px;
}

/* Operator (right-aligned) */
.message-chat-right {
    text-align: right;
}

.message-chat-right .message-chat-text {
    background: #e0e0e0;
    float: right;
}

.message-chat-right .message-chat-meta {
    text-align: right;
}

/* Client (left-aligned) */
.message-chat-left {
    text-align: left;
}

.message-chat-left .message-chat-text {
    background: #fff;
    border: 1px solid #e0e0e0;
    float: left;
}

.message-chat-left .message-chat-meta {
    text-align: left;
}

/* Bottom message input bar */
.d-message {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    width: 100%;
}

.d-message .message-block {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0;
    margin: 0;
}

.d-message .message-block i {
    cursor: pointer;
    font-size: 16px;
    color: #666;
    padding: 0 6px;
}

.d-message .message-block i:hover {
    color: #333;
}

.d-message .message-block input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 8px 12px;
    background: transparent;
}

.d-message .send-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 22px;
    color: #666;
    list-style: none;
}

.d-message .send-msg:hover {
    color: #10CFBD;
}

.d-message > a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.d-message > a:first-child {
    flex: 1;
    min-width: 0;
}

.d-message > a:last-child {
    flex-shrink: 0;
}

/* Emoji picker inline */
.emoji-picker-inline {
    position: absolute;
    line-height: 40px;
    bottom: 50px;
    border: 1px solid gray;
    background-color: #fff;
    display: none;
    z-index: 100;
    padding: 4px;
}

.emoji-picker-inline span {
    cursor: pointer;
    font-size: 20px;
    padding: 2px;
}

/* Font size classes */
.f20 {
    font-size: 20px;
}
