
.chat-header{
    background:#075E54;
    color:#fff;
    padding:15px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}
.chat-header .title{
    font-weight:bold;
    font-size:18px;
}
.chat-body{
    flex:1;
    padding:15px;
    background-image:url('img/whatsapp-bg.png');
    background-size:cover;
    overflow-y:auto;display:flex;
    flex-direction:column;
}
.message{
    max-width:80%;
    padding:10px 14px;
    border-radius:10px;
    margin-bottom:10px;
    position:relative;
    line-height:1.3;
    font-size:14px;
    word-wrap:break-word;
}
.message.user{
    background:#DCF8C6;
    align-self:flex-end;
    border-top-right-radius:0;
}
.message.bot{
    background:#fff;
    align-self:flex-start;
    border-top-left-radius:0;
    box-shadow:0 1px 2px rgba(0,0,0,0.1);
}
.message .time{
    font-size:8px;
    color:#999;
    position:absolute;
    bottom:2px;
    right:8px;
}
.message.user .check{
    font-size:12px;
    margin-left:4px;
    color:#4fc3f7;
}
.typing{
    font-style:italic;
    color:#555;
    display:flex;
    align-items:center;
}
.typing span{
    width:6px;
    height:6px;
    background:#555;
    border-radius:50%;
    margin:0 2px;
    display:inline-block;
    animation: blink 1.4s infinite both;
}
.typing span:nth-child(2){
    animation-delay:.2s;
} 
.typing span:nth-child(3){
    animation-delay:.4s;
}
@keyframes blink{0%,80%,100%{opacity:0}40%{opacity:1}}
.chat-footer{
    background:#f0f0f0;
    padding:10px;
    display:flex;
    position:relative;
    border-top:1px solid #ccc;
}
.chat-footer input{
    flex:1;
    border:none;
    border-radius:20px;
    padding:10px 15px;
    outline:none;
    background:#fff;
}
.chat-footer button{
    background:#075E54;
    border-radius:50%;
    width:45px;
    height:45px;
    display:flex;
    justify-content:center;
    align-items:center;
    position:absolute;
    right:10px;
    bottom:10px;
}
.chat-footer button i{
    color:#fff;
    font-size:22px;
}
.chat-body::-webkit-scrollbar{
    width:6px;
}
.chat-body::-webkit-scrollbar-thumb{
    background-color:rgba(0,0,0,0.2);
    border-radius:3px;
}
@media(max-width:600px){
    .chat-container{
        height:100vh;
        border-radius:0;
    }
}