:root {
    --scrollbarBG: #f1f1f1;
    --thumbBG: #888;
}

/* --- Floating Chat Icon with Wave Animation --- */
#chat-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* The Wave/Ripple Effect */
#chat-icon::before,
#chat-icon::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
}

#chat-icon::before {
    animation: wave 2s infinite;
}

#chat-icon::after {
    animation: wave 2s infinite 0.5s;
}

@keyframes wave {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

#chat-icon:hover {
    transform: scale(1.1);
}

#chat-icon:hover {
    transform: scale(1.1);
}

/* --- Chatbot Card --- */
.chatbot-card {
    position: fixed;
    bottom: 100px;
    right: 30px;
    height: 500px;
    width: 350px;
    background: #FFFFFF;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    z-index: 1000;
     border: 2px solid #F3F4F6;
    border-radius: 10px;
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

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

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

#header {
    height: 60px;
    background: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

#header h1 {
    color: #fff;
    font-size: 22px;
    font-family: "Finger Paint", cursive;
    margin: 0;
}

#close-icon {
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    opacity: 0.8;
}

#close-icon:hover {
    opacity: 1;
}


#message-section {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    margin: 5px 0;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
}

#bot {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #777;
    color: #000;
    border-radius: 0px 20px 20px 20px;
}

#user {
    align-self: flex-end;
    background: #000;
    color: #fff;
    border-radius: 20px 0px 20px 20px;
}

#input-section {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-top: 1px solid #eee;
}

#input {
    flex: 1;
    border: none;
    border-bottom: 1.5px solid #000;
    padding: 8px 0;
    outline: none;
    font-size: 14px;
}

.send {
    background: transparent;
    border: none;
    cursor: pointer;
    margin-left: 10px;
}

.send i {
    font-size: 24px;
    color: #000;
    /* transform: rotate(-30deg); */
    transition: scale 0.3s ease;
}

.send i:hover {
    scale: 1.3;
}

#message-section::-webkit-scrollbar {
    width: 6px;
}

#message-section::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}