

.whatsapp{
    height:100vh;
}

.sidebar{
    background:#202c33;
    border-right:1px solid #2f3b43;
    height:100vh;
    overflow:hidden;
}

.chat-area{
    background:#0b141a;
    height:100vh;
    display:flex;
    flex-direction:column;
}

.topbar{
    background:#202c33;
    height:60px;
    display:flex;
    align-items:center;
    padding:0 15px;
    color:white;
}

.search-box{
    padding:10px;
    background:#111b21;
}

.search-box input{
    background:#202c33;
    border:none;
    color:white;
}

.search-box input:focus{
    background:#202c33;
    color:white;
    box-shadow:none;
}

.chat-list{
    overflow-y:auto;
    height:calc(100vh - 120px);
}

.chat-item{
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px;
    cursor:pointer;
    border-bottom:1px solid #2f3b43;
    color:white;
}

.chat-item:hover{
    background:#2a3942;
}

.avatar{
    width:50px;
    height:50px;
    border-radius:50%;
    background:#25d366;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
    position:relative;
}

.online{
    position:absolute;
    right:0;
    bottom:0;
    width:12px;
    height:12px;
    border-radius:50%;
    background:#25d366;
    border:2px solid #202c33;
}

.chat-body{
    flex:1;
    overflow-y:auto;
    padding:20px;
}

.message{
    background:#202c33;
    color:white;
    padding:10px 15px;
    border-radius:8px;
    width:max-content;
    max-width:80%;
    margin-bottom:10px;
}

.message.me{
    background:#005c4b;
    margin-left:auto;
}

.message-box{
    background:#202c33;
    padding:10px;
}

.message-box .form-control{
    border:none;
}

@media(max-width:768px){

    .sidebar{
        width:100%;
    }

    .chat-area{
        display:none;
    }

    .chat-area.active{
        display:flex;
        position:fixed;
        inset:0;
        z-index:999;
    }

}
