﻿.chat-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #e0dfdf;
    justify-content: space-between;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.chat-messages-title {
    padding: 15px;
    background-color: var(--chat-primary-color);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Nếu có chat-list thì bỏ bo góc trái cho cả title và content */
.chat-list + .chat-content,
.chat-list + .chat-content .chat-messages-title {
    border-top-left-radius: 0;
}




.message-input {
    padding: 12px 16px;
    border-top: 1px solid var(--chat-border-color);
    background: #fff;
    position: relative;
}

    .message-input #chatForm {
        display: flex;
        align-items: center;
        position: relative;
        background-color: #f5f5f5;
        border-radius: 25px;
        overflow: hidden;
        padding: 5px;
        border: 1px solid #e0e0e0;
    }

    .message-input .message-send {
        flex: 1;
        padding: 10px 15px;
        border: none;
        resize: none;
        font-size: 14px;
        background-color: transparent;
        outline: none;
        min-height: 24px;
        max-height: 100px;
        font-family: inherit;
        color: var(--chat-text-dark);
    }

    .message-input .button-send {
        background: var(--chat-primary-color);
        color: var(--chat-text-light);
        padding: 0;
        border: none;
        cursor: pointer;
        border-radius: 50%;
        font-size: 14px;
        transition: all 0.2s ease;
        font-weight: 500;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 8px;
    }

        .message-input .button-send:hover {
            filter: brightness(1.1);
        }

        .message-input .button-send:disabled {
            background-color: #ccc;
            cursor: not-allowed;
        }

.toggle-badge {
    position: absolute;
    top: 0;
    left: 100%;
    transform: translate(-50%, -50%);
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    padding: 0;
}



.move-up {
    animation: moveUp 1s forwards;
}

.move-down {
    animation: moveDown 1s forwards;
}

@keyframes moveUp {
    from { transform: translateY(0); }

    to {
        transform: translateY(var(--move-distance));
    }
}

@keyframes moveDown {
    from { transform: translateY(0); }

    to { transform: translateY(100%); }
}

#chat_container {
    position: absolute;
    right: 45px;
    z-index: 999;
    display: none;
    width: 870px;
    border-radius: 3px;
    box-shadow: 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12), 0px 3px 5px 0 rgb(0 0 0 / 20%);
}
    #chat_container .chat_object {
        display: flex;
        background-color: lightblue;
        width: 100%;
        border-radius: 9px;
        padding: 8px 10px 10px;
    }

    #chat_container .chat_box {
        width: 80%;
        border-radius: 9px;
        padding: 8px 10px 0px 10px;
    }

        #chat_container .chat_box .chat_message {
            font-size: 14px;
            line-height: 20px;
        }

        #chat_container .chat_box .chat_createUTC {
            float: right;
            font-size: 10px;
            line-height: 16px;
        }

#toggleChatButton {
    position: relative;
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0866ff;
    color: #ffffff;
    text-decoration: none;
    --shadow-intensity: 1.25;
}

    /*#toggleChatButton:hover {
        background-color: #39a1c9;*/ /* Thay đổi màu khi di chuột qua */
    /*}*/
/* @@import "normalize.css"; */
.bg-lightblue {
    background-color: lightblue !important;
}

.bg-lightgrey {
    background-color: lightgrey !important;
}


.button_id_submit {
    border-radius: 50%;
    height: 38px;
    width: 38px;
    color: grey;
}

    .button_id_submit .fa-paper-plane {
        color: grey;
        transition: color ease 0.2s;
    }

    .button_id_submit:hover .fa-paper-plane {
        color: white;
    }


/* Icons from Fotnt Awesome */

.search__icon .fa-search {
    color: grey;
    font-size: 18px;
}

.search__icon .fa-pencil-square-o {
    color: grey;
    font-size: 18px;
}


.modal_group {
    flex: 0 0 268px;
    background-color: #eff0f5;
}

.text-decration {
    white-space: nowrap; /* Ngăn dòng xuống dòng */
    overflow: hidden; /* Ẩn phần văn bản vượt quá */
    text-overflow: ellipsis;
}

.text-decration-name {
    overflow: hidden; /* Ẩn phần văn bản vượt quá */
    text-overflow: ellipsis;
}

/* Search block */

.search {
    display: block;
    position: relative;
}


/* Users block */

.users__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 7px;
    border-radius: 3px;
}

    .users__item:hover {
        background-color: #e3e5eb;
    }

.users__avatar {
    flex: 0 0 35px;
}

.users__note {
    font-weight: bold;
}

.unseen {
    padding: 6px;
    border-radius: 9px;
    background-color: #4cceea;
    line-height: 11px;
    color: white;
    font-size: 13px;
    font-weight: 700;
    display: block;
    transition: all 0.5s ease;
}

.fade-out {
    opacity: 0;
}

.users__item_group .users__avatar {
    background-color: #4cceea;
}

.users__item_group .users__note {
    color: #4cceea;
}

/* Chatbox */

.chatbox {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.chatbox__row_fullheight {
    flex: 1;
    overflow-y: auto;
}

.head {
    display: inline-flex;
    position: relative;
    width: 100%;
    align-items: center;
    padding: 11px 0 13px 0;
}

    .head:after {
        background-color: #edeef1;
        height: 2px;
        width: 100%;
        content: '';
        position: absolute;
        left: 0;
        top: 100%;
    }

.head__avatar.avatar {
    position: relative;
    background-color: #4cceea;
}

.head__title {
    color: #5b6171;
    font-size: 18px;
    font-weight: 400;
    margin-left: 21px;
    padding-top: 3px;
}

/* message block */


.message__textbox {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    margin-left: 15px;
    width: 100%;
    min-height: 43px;
    background-color: #f5f6fa;
    border-radius: 9px;
    padding: 11px 25px 12px 25px;
    color: #6a6d77;
}

.message__smiley {
    margin-right: 3px;
}

    .message__smiley:last-child {
        margin-right: 0;
    }

.message__text + .message__smiley {
    margin-left: 4px;
}

.avatar {
    border-radius: 50%;
    position: relative;
    border: none;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    background-color: #b8bbc8;
}

.avatar_larger {
    width: 43px;
    height: 43px;
}

.avatar_online:before {
    position: absolute;
    content: '';
    top: 0;
    right: 0;
    width: 6px;
    height: 6px;
    background-color: #4cceea;
    border: 2px solid #eff0f5;
    border-radius: 50%;
}

.avatar__wrap {
    border-radius: 50%;
    text-decoration: none;
    display: inherit;
    color: #fff;
}

.avatar__img {
    border-radius: 50%;
}

.counter {
    line-height: 11px;
    color: white;
    font-size: 13px;
    font-weight: 700;
    display: block;
}


/* enter block */

.enter {
    position: relative;
    padding-top: 12px;
    padding-bottom: 14px;
}

    .enter:before {
        background-color: #edeef1;
        height: 2px;
        width: 100%;
        content: '';
        position: absolute;
        bottom: 100%;
        left: 0;
    }

.enter__submit {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 2px solid #e2e3e7;
    border-radius: 50%;
    background-color: #fff;
    text-align: center;
}

.enter__textarea {
    padding-right: 50px;
}

    .enter__textarea textarea {
        width: 100%;
        border: none;
        resize: none;
    }

.enter__icons {
    padding-right: 50px;
}

.modal {
    width: 100%;
    display: none; /* Ẩn modal theo mặc định */
    position: fixed;
    /* top: 65%;
            left: 65%;
            transform: translate(-50%, -50%); */
    z-index: 1001;
    padding: 20px;
    /*  border-radius: 10px; */
    /*  box-shadow: 0 5px 15px rgba(0,0,0,0.3); */
    height: 100% !important;
}

    .modal.show {
        display: flex;
        justify-content: end;
        align-items: flex-end;
    }