body{
font-family:'Segoe UI',Tahoma;
margin:0;
background:#f5f6fa;
color:#2f3640;
}

.header{
background:#0097e6;
color:white;
text-align:center;
padding:2rem;
}

.login-section{
text-align:center;
margin:4rem 0;
}

.btn-primary{
background:#44bd32;
color:white;
border:none;
padding:10px 18px;
border-radius:6px;
cursor:pointer;
}

.queue-section{
display:flex;
justify-content:center;
margin-top:3rem;
}

.queue-box{
background:white;
padding:2rem;
border-radius:12px;
box-shadow:0 4px 15px rgba(0,0,0,0.1);
width:420px;
margin:0 auto;
}

.chat-section{
display:flex;
justify-content:center;
margin-top:3rem;
}

.chat-container{
display:flex;
flex-direction:column;
height:600px;
}

.room-info-header{
text-align:center;
color:#0097e6;
margin-bottom:10px;
}

.messages-display{
flex-grow:1;
border:1px solid #ddd;
border-radius:8px;
padding:10px;
overflow-y:auto;
background:#fcfcfc;
margin-bottom:10px;
}

.chat-message{
padding:6px 0;
border-bottom:1px solid #eee;
word-wrap:break-word;
}

.message-input-area{
display:flex;
gap:10px;
}

.message-input-area input{
flex:1;
padding:8px;
border-radius:6px;
border:1px solid #ccc;
}

.typing-indicator{
height:20px;
font-size:0.9rem;
color:#888;
margin-bottom:5px;
}

.footer{
text-align:center;
margin-top:3rem;
padding:1rem;
color:#888;
}

.typing-dots{
display:inline-flex;
gap:4px;
margin-left:6px;
}

.typing-dots span{
width:6px;
height:6px;
background:#888;
border-radius:50%;
display:inline-block;
animation:typingBounce 1.3s infinite;
}

.typing-dots span:nth-child(2){
animation-delay:0.2s;
}

.typing-dots span:nth-child(3){
animation-delay:0.4s;
}

@keyframes typingBounce{
0%,80%,100%{
transform:scale(0.6);
opacity:0.5;
}

40%{
transform:scale(1);
opacity:1;
}
}


#typing-indicator{
font-size:0.9rem;
color:#888;
height:20px;
margin-bottom:4px;
}

.chat-message{
max-width:70%;
padding:10px 14px;
margin:6px 0;
border-radius:12px;
word-wrap:break-word;
font-size:14px;
}

.chat-message.me{
margin-left:auto;
background:#4a90e2;
color:white;
}

.chat-message.partner{
margin-right:auto;
background:#e5e5ea;
color:#000;
}

#typing-indicator{
font-size:13px;
color:#777;
height:18px;
margin-top:4px;
}

.typing-dots{
display:inline-flex;
gap:4px;
margin-left:4px;
}

.typing-dots span{
width:6px;
height:6px;
background:#777;
border-radius:50%;
display:inline-block;
animation:typingBounce 1.3s infinite;
}

.typing-dots span:nth-child(2){
animation-delay:0.2s;
}

.typing-dots span:nth-child(3){
animation-delay:0.4s;
}

@keyframes typingBounce{
0%,80%,100%{
transform:scale(0.6);
opacity:0.4;
}

40%{
transform:scale(1);
opacity:1;
}
}

.messages-display{
height:300px;
overflow-y:auto;
padding:10px;
display:flex;
flex-direction:column;
}

.message-group{
display:flex;
flex-direction:column;
margin:8px 0;
}

.message-group.me{
align-items:flex-end;
}

.message-group.partner{
align-items:flex-start;
}

.chat-message{
max-width:70%;
padding:10px 14px;
margin:2px 0;
border-radius:12px;
font-size:14px;
word-wrap:break-word;
}

.message-group.me .chat-message{
background:#4a90e2;
color:white;
}

.message-group.partner .chat-message{
background:#e5e5ea;
color:black;
}

.typing-indicator{
font-size:13px;
color:#777;
height:18px;
margin:4px 0;
}

.typing-dots{
display:inline-flex;
gap:4px;
margin-left:4px;
}

.typing-dots span{
width:6px;
height:6px;
background:#777;
border-radius:50%;
animation:typingBounce 1.3s infinite;
}

.typing-dots span:nth-child(2){
animation-delay:0.2s;
}

.typing-dots span:nth-child(3){
animation-delay:0.4s;
}

@keyframes typingBounce{
0%,80%,100%{
transform:scale(0.6);
opacity:0.4;
}

40%{
transform:scale(1);
opacity:1;
}
}
.prompt-box{
background:#f4f4f4;
border-radius:8px;
padding:10px;
margin-bottom:10px;
display:flex;
justify-content:space-between;
align-items:center;
font-size:14px;
}

#prompt-text{
font-weight:500;
color:#444;
max-width:80%;
}

.btn-secondary{
background:#ddd;
border:none;
padding:6px 10px;
border-radius:6px;
cursor:pointer;
}

.btn-secondary:hover{
background:#ccc;
}