/* RESET */
*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Segoe UI',sans-serif;
}

/* BODY */
body{
background:#0b141a;
color:#fff;
}

/* MAIN CONTAINER */
.chat-container{
max-width:420px;
margin:auto;
height:100vh;
display:flex;
flex-direction:column;
background:#111b21;
}

/* HEADER */
.chat-header{
background:#202c33;
padding:15px;
font-size:18px;
display:flex;
justify-content:space-between;
align-items:center;
border-bottom:1px solid #2a3942;
}

/* CHAT AREA */
#chat-box{
flex:1;
overflow-y:auto;
padding:10px;
scroll-behavior:smooth;
}

/* MESSAGE BUBBLE (SENT) */
.me{
background:#005c4b;
color:#fff;
padding:10px 12px;
margin:5px 0;
border-radius:10px 10px 0 10px;
max-width:75%;
margin-left:auto;
font-size:14px;
position:relative;
}

/* MESSAGE BUBBLE (RECEIVED) */
.other{
background:#202c33;
padding:10px 12px;
margin:5px 0;
border-radius:10px 10px 10px 0;
max-width:75%;
font-size:14px;
}

/* TIME + TICKS */
small{
display:block;
font-size:10px;
opacity:0.7;
margin-top:5px;
text-align:right;
}

.tick{
margin-left:5px;
font-size:12px;
}

.blue{
color:#53bdeb;
}

/* INPUT AREA */
.chat-input{
display:flex;
padding:10px;
background:#202c33;
align-items:center;
gap:8px;
}

.chat-input input{
flex:1;
padding:12px;
border-radius:25px;
border:none;
outline:none;
background:#2a3942;
color:#fff;
font-size:14px;
}

.chat-input button{
background:#00a884;
border:none;
color:#fff;
padding:10px 15px;
border-radius:50%;
font-size:16px;
cursor:pointer;
}

/* USER LIST */
.user-item{
display:flex;
justify-content:space-between;
align-items:center;
padding:12px;
border-bottom:1px solid #2a3942;
text-decoration:none;
color:#fff;
background:#111b21;
}

.user-item:hover{
background:#202c33;
}

.user-name{
font-weight:500;
}

/* UNREAD BADGE */
.badge{
background:#00a884;
color:#fff;
padding:5px 10px;
border-radius:20px;
font-size:12px;
}

/* FORM (LOGIN / REGISTER) */
form{
max-width:350px;
margin:50px auto;
background:#202c33;
padding:20px;
border-radius:10px;
box-shadow:0 5px 20px rgba(0,0,0,0.5);
}

form h2{
text-align:center;
margin-bottom:15px;
}

form input{
width:100%;
padding:14px;
margin:10px 0;
border-radius:8px;
border:none;
background:#2a3942;
color:#fff;
font-size:16px;
}

form button{
width:100%;
padding:14px;
background:#00a884;
border:none;
border-radius:8px;
color:#fff;
font-size:16px;
cursor:pointer;
margin-top:10px;
}

/* SCROLL BAR */
::-webkit-scrollbar{
width:5px;
}

::-webkit-scrollbar-thumb{
background:#444;
border-radius:10px;
}