:root {
    --body-bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --msger-bg: #fff;
    --border: 2px solid #05000e;
    --left-msg-bg: #df314d;
    --right-msg-bg: #6610f2;
}

.msger {
    display: flex;
    flex-flow: column wrap;
    justify-content: space-between;
    width: 100%;
    /* max-width: 867px; */
    /* margin: 25px 10px; */
    height: calc(100% - 50px);
    border: var(--border);
    border-radius: 5px;
    background: var(--msger-bg);
    box-shadow: 0 15px 15px -5px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    height: 90vh;
}

.msger-header {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: var(--border);
    background: #210053;
    ;
    color: #fff;
    font-family: "Jost", sans-serif;
}

.msger-chat {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

    .msger-chat::-webkit-scrollbar {
        width: 6px;
    }

    .msger-chat::-webkit-scrollbar-track {
        background: #ddd;
    }

    .msger-chat::-webkit-scrollbar-thumb {
        background: #bdbdbd;
    }


.msg {
    display: flex;
    align-items: flex-end;
    margin-bottom: 10px;
}

    .msg:last-of-type {
        margin: 0;
    }

.msg-img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    background: #ddd;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 50%;
}

.msg-bubble {
    max-width: 450px;
    padding: 15px;
    border-radius: 15px;
    background: var(--left-msg-bg);
}

.msg-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.msg-info-name {
    margin-right: 10px;
    font-weight: bold;
}

.msg-info-time {
    font-size: 0.85em;
}

.left-msg .msg-bubble {
    border-bottom-left-radius: 0;
}

.right-msg {
    flex-direction: row-reverse;
}

    .right-msg .msg-bubble {
        background: var(--right-msg-bg);
        color: #fff;
        border-bottom-right-radius: 0;
    }

    .right-msg .msg-img {
        margin: 0 0 0 10px;
    }

.msger-inputarea {
    display: flex;
    padding: 10px;
    border-top: var(--border);
    background: #210053;
    ;
}

    .msger-inputarea * {
        padding: 10px;
        border: none;
        border-radius: 3px;
        font-size: 1em;
    }

.msger-input {
    flex: 1;
    background: #6610f2;
}

.msger-send-btn {
    margin-left: 10px;
    background: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.23s;
    color: #df314d;
    border-radius: 5px;
}

    .msger-send-btn:hover {
        background: #6610f2;
        color: #fff;
    }

.msger-chat {
    background-color: #210053;
    background-image:url(/assets/images/chat/chatbg.png);
    
}


.list-img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    background: #ddd;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 50%;
    float: left;
}


.list-info {
    float: left;
}


.list-group-item {
    background-color: var(--right-msg-bg);
}

    .list-group-item:hover {
        background-color: var(--left-msg-bg);
    }

    .list-group-item.active {
        background-color: var(--left-msg-bg);
    }
