/* Floating Button */

#taib-chat-toggle{
position:fixed;
right:25px;
bottom:25px;
width:65px;
height:65px;
background:#0d6efd;
color:#fff;
display:flex;
justify-content:center;
align-items:center;
border-radius:50%;
font-size:30px;
cursor:pointer;
box-shadow:0 10px 30px rgba(0,0,0,.25);
z-index:99999;
}

/* Chat Window */

#taib-chat-window{
position:fixed;
right:25px;
bottom:100px;
width:380px;
height:650px;
background:#fff;
border-radius:18px;
overflow:hidden;
display:none;
box-shadow:0 15px 40px rgba(0,0,0,.25);
z-index:99999;
display:flex;
flex-direction:column;
}

/* Hide initially */
#taib-chat-window.hidden{
display:none;
}

/* Header */

.taib-header{
background:#0d6efd;
color:#fff;
padding:15px;
display:flex;
justify-content:space-between;
align-items:center;
}

.taib-header-info{
display:flex;
align-items:center;
gap:10px;
}

.taib-avatar{
font-size:28px;
}

.taib-header h3{
margin:0;
font-size:18px;
}

.taib-header span{
font-size:12px;
opacity:.8;
}

#taib-close{
background:none;
border:none;
color:#fff;
font-size:24px;
cursor:pointer;
}

/* Messages */

#taib-messages{
flex:1;
padding:20px;
overflow-y:auto;
background:#f4f7fb;
}

.taib-message{
display:flex;
margin-bottom:15px;
}

.taib-message.user{
justify-content:flex-end;
}

.bubble{
max-width:75%;
padding:12px 16px;
border-radius:16px;
line-height:1.5;
}

.taib-message.bot .bubble{
background:#ffffff;
}

.taib-message.user .bubble{
background:#0d6efd;
color:#fff;
}

/* Footer */

.taib-footer{
display:flex;
gap:10px;
padding:15px;
border-top:1px solid #ddd;
background:#fff;
}

#taib-input{
flex:1;
padding:12px;
border:1px solid #ccc;
border-radius:10px;
outline:none;
}

#taib-send{
width:55px;
border:none;
background:#0d6efd;
color:#fff;
border-radius:10px;
cursor:pointer;
font-size:18px;
}