@charset "utf-8";

h1
{
    position: fixed;
    top: 100px;
    left: 230px;
    color: #414e38;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 2.8em
}
body
{
    display: relative;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #e9e4d5;
    overflow: hidden;
}
.container
{
    position: absolute;
    width: 700px;
    height: 450px;
    top: 260px;
    left: 340px;
    background: #f6f4ef;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 15);
    overflow: hidden;
}
header
{
    position: relative;
    background: #4c6042;
    padding: 20px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header .logo
{
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2em;
}
.tabs input
{
    visibility: hidden;
    display: none;
}
.buttons
{
    position: relative;
    display: flex;
    background: #4c6042;
    border-bottom: 2px solid rgba(0, 0, 0, 0.25);
}
.buttons label
{
    width: 50%;
    color: #f6f4ef;
    opacity: 1;
    text-align: center;
    text-transform: uppercase;
    padding: 5px 0;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
}
.buttons label:hover 
{
    color: #e9e4d5; 
}
.tabs input:nth-child(1):checked ~ .content .chats
{
    opacity: 1;
    z-index: 1;
}

.underline
{
    position: absolute;
    left: 0;
    bottom: 0;
    width: 33.333%;
    height: 1.5px;
    background-color: #f6f4ef;
    transition: 0.5s;
}
.tabs input:nth-child(1):checked ~ .buttons .underline 
{
    left: 0;  
}
  
.content
{
    position: relative;
    width: 700px;
    height: 1000px;
    display: flex;
    transition: 0.5s;
    overflow: hidden;
}
.content .box
{
    position: relative;
    width: 700px;
}
.content .data
{
    position: relative;
    width: 100%;
    height: 380px;
}
.chatlist
{
    position: relative;
    height: 100%;
    overflow-y: auto;
}
.chatlist .block
{
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    padding: 15px 10px;
    display: flex;
    cursor: pointer;
}
.chatlist .block:hover
{
    background-color: #f3f6ed;
}
.chatlist .block .imgbx
{
    position: relative;
    min-width: 45px;
    height: 45px;
    overflow: hidden;
    border-radius: 50%;
}
.chatlist .block .imgbx img
{
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.chatlist .block .details
{
    position: relative;
    width: 87%;
}
.chatlist .block .details .listhead
{
    display: flex;
    justify-content: space-between;
}
.chatlist .block .details .listhead h4
{
    font-size: 1em;
    font-weight: 600;
    width: 100%;
    color: #3b3b3b;
}
.chatlist .block .details .listhead .time
{
    font-size: 0.55em;
    width: 13%;
    color: #969696;
    position: absolute;
    display: block;
    width: 100px;
    text-align: end;
    bottom: 10px; 
    right: 10px;
}
.message
{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chatlist .block .details p
{
    color: #3b3b3b;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    font-size: 0.9em;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
}
::-webkit-scrollbar
{
    width: 5px;
}
::-webkit-scrollbar-track
{
    background: transparent;
}
::-webkit-scrollbar-thumb
{
    background: #a6ab9b;
}
.tabs input:nth-child(1):checked ~ .content
{
    left: calc(700px);
}

.back-btn 
{
    font-size: 16px; 
    padding: 16px 16px; 
    background-color:#415831; 
    color: #fff; 
    border: none; 
    cursor: pointer; 
    position: relative;
    top: 90px;
    left: 30px;
}
  
.back-btn::before 
{
    content: "\f3d2\f3d2\f3d2"; 
    font-family: 'Ionicons'; 
    font-size: 20px;
    position: center; 
    left: 10px; 
    top: 30%; 
    transform: translateY(-50%);
}
.back-btn:hover 
{
    background-color:#6f886d;
}
