/* ==========================
   FLOATING CHAT BUTTON
========================== */

#chat-toggle{
    position:fixed;
    right:25px;
    bottom:25px;
    width:65px;
    height:65px;
    border-radius:50%;
    background:linear-gradient(135deg,#C9973A,#E3B45D);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
    cursor:pointer;
    box-shadow:0 10px 30px rgba(0,0,0,.25);
    z-index:999999;
    transition:.3s;
    animation:pulse 2s infinite;
}

#chat-toggle:hover{
    transform:scale(1.08);
}

@keyframes pulse{

0%{
box-shadow:0 0 0 0 rgba(201,151,58,.5);
}

70%{
box-shadow:0 0 0 15px rgba(201,151,58,0);
}

100%{
box-shadow:0 0 0 0 rgba(201,151,58,0);
}

}

/* ==========================
   CHAT WINDOW
========================== */

#chat-container{

position:fixed;

right:25px;

bottom:100px;

width:380px;

height:650px;

background:#fff;

border-radius:22px;

overflow:hidden;

display:none;

flex-direction:column;

box-shadow:0 25px 70px rgba(0,0,0,.25);

z-index:999999;

}

/* ==========================
   HEADER
========================== */

#chat-header{

padding:18px;

background:linear-gradient(135deg,#C9973A,#B8892E);

color:#fff;

display:flex;

justify-content:space-between;

align-items:center;

}

.hotel-name{

font-size:20px;

font-weight:700;

}

.hotel-status{

font-size:13px;

margin-top:5px;

display:flex;

align-items:center;

gap:8px;

opacity:.95;

}

.online-dot{

width:10px;

height:10px;

background:#1cff6b;

border-radius:50%;

display:inline-block;

animation:blink 1.5s infinite;

}

@keyframes blink{

50%{
opacity:.3;
}

}

#chat-close{

background:none;

border:none;

font-size:30px;

color:#fff;

cursor:pointer;

transition:.3s;

}

#chat-close:hover{

transform:rotate(90deg);

}

/* ==========================
   CHAT BODY
========================== */

#chat-body{

flex:1;

overflow-y:auto;

padding:18px;

background:#F8F8F8;

display:flex;

flex-direction:column;

gap:15px;

}

/* ==========================
   MESSAGE
========================== */

.message{

display:flex;

gap:10px;

align-items:flex-end;

}

.message.user{

flex-direction:row-reverse;

}

.avatar{

width:40px;

height:40px;

border-radius:50%;

background:#C9973A;

display:flex;

align-items:center;

justify-content:center;

font-size:20px;

color:#fff;

flex-shrink:0;

}

.message.user .avatar{

background:#444;

}

/* ==========================
   CHAT BUBBLE
========================== */

.bubble{

background:#fff;

padding:14px 16px;

border-radius:18px;

max-width:75%;

line-height:1.6;

font-size:15px;

box-shadow:0 4px 15px rgba(0,0,0,.08);

word-break:break-word;

}

.message.user .bubble{

background:#C9973A;

color:#fff;

}

/* ==========================
   MESSAGE TIME
========================== */

.time{

margin-top:8px;

font-size:11px;

opacity:.6;

text-align:right;

}

/* ==========================
   QUICK ACTIONS
========================== */

.quick-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    padding:12px;
    background:#fff;
    border-top:1px solid #eee;
}

.quick-btn{
    border:none;
    background:#f5f5f5;
    padding:8px 14px;
    border-radius:25px;
    cursor:pointer;
    font-size:13px;
    transition:.25s;
}

.quick-btn:hover{
    background:#C9973A;
    color:#fff;
}

/* ==========================
   CHAT FOOTER
========================== */

#chat-footer{
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px;
    background:#fff;
    border-top:1px solid #eee;
}

#chat-input{
    flex:1;
    border:1px solid #ddd;
    border-radius:30px;
    padding:12px 16px;
    font-size:15px;
    outline:none;
    transition:.3s;
}

#chat-input:focus{
    border-color:#C9973A;
    box-shadow:0 0 0 3px rgba(201,151,58,.15);
}

#chat-send{
    width:48px;
    height:48px;
    border:none;
    border-radius:50%;
    background:linear-gradient(135deg,#C9973A,#E3B45D);
    color:#fff;
    font-size:20px;
    cursor:pointer;
    transition:.3s;
}

#chat-send:hover{
    transform:scale(1.08);
}

/* ==========================
   TYPING INDICATOR
========================== */

.typing{
    display:inline-flex;
    gap:5px;
    padding:10px 14px;
}

.typing span{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#999;
    animation:typingBounce 1.2s infinite;
}

.typing span:nth-child(2){
    animation-delay:.2s;
}

.typing span:nth-child(3){
    animation-delay:.4s;
}

@keyframes typingBounce{

0%,80%,100%{
transform:translateY(0);
opacity:.5;
}

40%{
transform:translateY(-6px);
opacity:1;
}

}

/* ==========================
   SCROLLBAR
========================== */

#chat-body::-webkit-scrollbar{
    width:6px;
}

#chat-body::-webkit-scrollbar-thumb{
    background:#C9973A;
    border-radius:10px;
}

#chat-body::-webkit-scrollbar-track{
    background:#eee;
}

/* ==========================
   OPEN ANIMATION
========================== */

#chat-container{
    animation:chatOpen .25s ease;
}

@keyframes chatOpen{

from{
opacity:0;
transform:translateY(20px) scale(.96);
}

to{
opacity:1;
transform:translateY(0) scale(1);
}

}

/* ==========================
   MOBILE
========================== */

@media(max-width:768px){

#chat-container{

width:95%;

height:80%;

right:2.5%;

bottom:90px;

}

#chat-toggle{

right:20px;

bottom:20px;

}

.hotel-name{

font-size:18px;

}

.bubble{

max-width:85%;

font-size:14px;

}

.quick-actions{

overflow-x:auto;
flex-wrap:nowrap;

}

.quick-btn{

white-space:nowrap;

}

}