/* General Styles */
.width245{
    width: 245px;
    background:rgb(0, 108, 9);
    border-radius: 5px 5px 0 0;
    border: 5px solid rgb(0, 108, 9);
}

.width100{
    width: 100px;
    background: rgba(0, 108, 9, 0.479);;
    border-radius: 0;
    border: none;
}
.chat-container {
    -webkit-user-select: none; /* For Safari, Chrome, and other WebKit browsers */
    -moz-user-select: none;    /* For Firefox */
    -ms-user-select: none;     /* For Internet Explorer/Edge */
    user-select: none;         /* Standard property */
    font-family: arial, sans-serif;
    position: fixed;           /* Fixes the container position */
    bottom: 0;
    right: 0;
    
    
    /*border-left: 1px solid rgb(79, 79, 79);
    border-right: 1px solid rgb(79, 79, 79); */
    /* -moz-border-radius: 5px 5px 0 0;
    -webkit-border-radius: 5px 5px 0 0;
    border-radius: 5px 5px 0 0; */
    /* box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);  */
    z-index: 9999;             /* Ensure on top of other elements */
}

/* Top Header */
.top-header {
    color: white;
    padding: .5rem .5rem .5rem 1rem;
    position: relative;
    overflow: hidden;
    display: block;
    cursor: pointer;
    height: 28px;
    /* -moz-border-radius: 10px 0 0 0;
    -webkit-border-radius: 10px 0 0 0;
    border-radius: 10px 0 0 0; */
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); 
    z-index: 10; /* Ensure it stays above chat box */
}

.top-header:hover {
    background: rgb(0, 108, 9);
}

.top-header-tit {
    display: inline;
    font-size: 14px;
}
/* 
.top-header .icon {
    font-size: 15px;
    cursor: pointer;
}

.top-header .left {
    float: left;
}

.top-header .right {
    float: right;
    padding-top: 5px;
}

.top-header > * {
    position: relative;
}

.top-header::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    bottom: -100%;
    opacity: .25;
} */

/* Chat Box */
.chat-box {
    list-style: none;
    background: #e5e5e5;
    margin: 0;
    padding: 0 0 5px;
    height: 370px;
    overflow-y: auto;
    position: relative;
    z-index: 1; /* Ensure it's below the header but above input */
    border-bottom: 1px solid #40404039; 
}

.chat-box li {
    padding: .5rem;
    overflow: hidden;
    display: flex;
}

.messages-chat{background:#fff;padding:10px;border-radius:2px;box-shadow:0 1px 2px rgba(0,0,0,0.2);}
.messages-outbox{background:rgb(206, 252, 237);padding:5px;border-radius:2px;box-shadow:0 1px 2px rgba(0,0,0,0.2);border: 1px solid green;}
.messages-chat p, .messages-outbox p{font: size 1px;margin:0 0 .2rem}
.messages-chat time, .messages-outbox time{font-size:.7rem;color:#ccc}

/* Input Area */
.inputmsgbar {
    background-color: #e5e5e5;
    height: 80px;
    /* padding-top: 2px; */
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    display: block;
    padding: 6px;
}

.inputmsgbar .left {
    float: left;
}

.inputmsgbar .right {
    float: right;
}

/* .input-chat {
    border: 1px solid;
    margin: 6px;
    width: 220px;
    height: 60px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    resize: none;  /* Disable resizing */
    /* padding: 5px;  */
/* }  */

.input-chat {
    border: 1px solid;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    resize: none;
    font-size: 14px;
    padding: 2px 10px 2px 10px;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    height: 14px;
    width: 10px;
    background: #eee;
    border-left: 1px solid #ddd;
}

::-webkit-scrollbar-thumb {
    background: #ddd;
    border: 1px solid #cfcfcf;
}

::-webkit-scrollbar-thumb:hover {
    background: #b2b2b2;
    border: 1px solid #b2b2b2;
}

::-webkit-scrollbar-thumb:active {
    background: #b2b2b2;
    border: 1px solid #b2b2b2;
}

/* Hide Class */
.hide {
    display: none;
}

/* Avatar Styles */
.chat-box .avatar-icon {
    width: 40px;
    position: relative;
}

.chat-box .avatar-icon img {
    display: block;
    width: 100%;
    background-color: #1469A6;
}

/* User-specific Styles */
.another .avatar-icon:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border: 5px solid #fff;
    border-left-color: transparent;
    border-bottom-color: transparent;
}

.me {
    justify-content: flex-end;
    align-items: flex-end;
}

.me .messages-chat {
    order: 1;
    border-bottom-right-radius: 0;
    background-color: #F7F7F7;
}

.me .avatar-icon {
    order: 2;
}

.me .avatar-icon:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border: 5px solid #F5FFD1;
    border-right-color: transparent;
    border-top-color: transparent;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
