#chatbot-toggle{
position:fixed;
bottom:20px;
left:20px;
width:60px;
height:60px;
background:#0073aa;
color:white;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:28px;
cursor:pointer;
z-index:9999;
box-shadow:0 4px 12px rgba(0,0,0,0.2);
}

#chatbot-container{

position:fixed;
bottom:-500px;
left:20px;
width:340px;
height:450px;
background:white;
border-radius:10px;
box-shadow:0 6px 20px rgba(0,0,0,0.25);
transition:0.4s;
display:flex;
flex-direction:column;
overflow:hidden;
z-index:9999;

}

#chatbot-container.active{
bottom:90px;
}

#chatbot-header{

background:#0073aa;
color:white;
padding:12px;
display:flex;
justify-content:space-between;
align-items:center;
font-weight:bold;

}

#close-chat{
cursor:pointer;
}

#chat-box{

flex:1;
overflow-y:auto;
padding:10px;
background:#fafafa;

}

.user-msg{

text-align:right;
margin:6px;
padding:8px;
background:#dbe9ff;
display:inline-block;
border-radius:8px;

}

.bot-msg{

text-align:left;
margin:6px;
padding:8px;
background:#e9ffe5;
display:inline-block;
border-radius:8px;

}

#chat-form{

display:flex;
border-top:1px solid #eee;

}

#user-input{

flex:1;
padding:10px;
border:none;
outline:none;

}

button{

background:#0073aa;
color:white;
border:none;
padding:10px 14px;
cursor:pointer;

}


/* Loading dots */

.loading-dots{

display:flex;
gap:6px;
padding:10px;

}

.loading-dots span{

width:8px;
height:8px;
background:#333;
border-radius:50%;
animation:bounce .6s infinite alternate;

}

.loading-dots span:nth-child(2){animation-delay:.2s}
.loading-dots span:nth-child(3){animation-delay:.4s}

@keyframes bounce{

from{
transform:translateY(0);
opacity:.3;
}

to{
transform:translateY(-8px);
opacity:1;
}

}