/* CHAT BUTTON */
.chat-circle{
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 9999;
}

/* CHAT BOX */
.chat-box{
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 330px;
    height: 450px;
    background: white;
    border-radius: 15px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 9999;
}

/* HEADER */
.chat-header{
    background: #0d6efd;
    color: white;
    padding: 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* BODY */
.chat-body{
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #f5f5f5;
}

/* FOOTER */
.chat-footer{
    display: flex;
    border-top: 1px solid #ddd;
}

.chat-footer input{
    flex: 1;
    border: none;
    padding: 12px;
    outline: none;
}

.chat-footer button{
    border: none;
    background: #0d6efd;
    color: white;
    padding: 12px 18px;
}

/* MESSAGES */
.bot-message,
.user-message{
    padding: 10px 14px;
    margin-bottom: 10px;
    border-radius: 12px;
    max-width: 80%;
}

.bot-message{
    background: #e9ecef;
}

.user-message{
    background: #0d6efd;
    color: white;
    margin-left: auto;
}   

/* CHATBOX ANIMATION */
.chat-box{
    animation: popup 0.3s ease;
}

/* POPUP EFFECT */
@keyframes popup {

    from{
        opacity: 0;
        transform: translateY(20px);
    }

    to{
        opacity: 1;
        transform: translateY(0);
    }

}

/* SCROLLBAR */
.chat-body::-webkit-scrollbar{
    width: 6px;
}

.chat-body::-webkit-scrollbar-thumb{
    background: #ccc;
    border-radius: 10px;
}

/* INPUT */
.chat-footer input{
    font-size: 14px;
}

/* BUTTON HOVER */
.chat-footer button:hover{
    background: #0056d2;
}