/* Chatbot Button */
.chatBot-btn-right {
    right: 20px;
}

.chatBot-btn-left {
    left: 20px;
}

/* From Uiverse.io by elijahgummer */
#chatBot-btn {
    position: fixed;
    bottom: 2.5rem;
    cursor: pointer;
     z-index: 9999;
}

#chatBot-btn li {
    position: relative;
    list-style: none;
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 60px;
    border:2px solid #ee3e21;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    
    transition: 0.5s;
}

#chatBot-btn li:hover {
    width: 180px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0);
}

#chatBot-btn li::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 60px;
    background: linear-gradient(45deg, #ee3e21, #ee3e21);
    opacity: 0;
    transition: 0.5s;
}

#chatBot-btn li:hover::before {
    opacity: 1;
}

#chatBot-btn li::after {
    content: "";
    position: absolute;
    top: 10px;
    width: 100%;
    height: 100%;
    border-radius: 60px;
    background: linear-gradient(45deg, #ee3e21, #ee3e21);
    transition: 0.5s;
    filter: blur(15px);
    z-index: -1;
    opacity: 0;
}

#chatBot-btn li:hover::after {
    opacity: 0.5;
}

#chatBot-btn li .chatBot-icon {
    color: #777;
    font-size: 1.5rem;
    transition: 0.5s;
    transition-delay: 0.25s;
}

#chatBot-btn li:hover .chatBot-icon {
    transform: scale(0);
    color: #fff;
    transition-delay: 0s;
}

#chatBot-btn li span {
    position: absolute;
}

#chatBot-btn li .chatBot-title {
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.1em;
    transform: scale(0);
    transition: 0.5s;
    transition-delay: 0s;
}

#chatBot-btn li:hover .chatBot-title {
    transform: scale(1);
    transition-delay: 0.25s;
}

/* Chatbot Box */
.chatBot-box {
    position: fixed;
    bottom: 20px;
    width: 420px;
    height: 520px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
    z-index: 9999;
    transition: right .3s ease-in-out, left .3s ease-in-out;
    overflow: hidden;
}

.chatBot-box.right {
    right: -460px;
}

.chatBot-box.left {
    left: -460px;
}

.chatBot-box.show.right {
    right: 1%;
}

.chatBot-box.show.left {
    left: 1%;
}

/* Header */
.chatBot-header {
    background-color: #ef4423;
    color: #fff;
    padding: 10px;
    border-radius: 10px 10px 0 0;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    user-select: none;
}

#chatBot-close,
#chatBot-clear {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

/* Body */
.chatBot-body {
    height: 400px;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

/* Messages */
.chatBot-message {
    margin: 4px 0;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12px;
    max-width: 90%;
}

.chatBot-message.ai {
    background: #e3f2fd;
    color: #000066 !important;
    align-self: flex-start;
}

.chatBot-message.user {
    background: #d1e7dd;
    color: #155724;
    align-self: flex-end;
}

/* Footer */
.chatBot-footer {
    height: 70px;
    display: flex;
    gap: 6px;
    padding: 15px;
    border-top: 1px solid #ddd;
}

/* Responsive */
@media (max-width: 768px) {
    .chatBot-box {
        width: 85%;
        height: 500px;
    }
}

@media (max-width: 480px) {
    .chatBot-box {
        width: 90%;
        height: 440px;
    }
    .chatBot-body{
        height: 72% !important;
    }
}