/* Chatbot Button */
.chatBot-btn {
    position: fixed;
    bottom: 2rem;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0,0,0,.2);
}

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

/* 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;
    }
}
