#chatbot-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}
#chatbot-button:hover { transform: scale(1.1); }

#chatbot-button .badge {
    position: absolute;
    top: 0; right: 0;
    background: red;
    border-radius: 50%;
    font-size: 10px;
    padding: 3px 6px;
}

#chatbot-popup {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 25px;
    width: 340px;
    max-height: 520px;
    z-index: 9998;
    border-radius: 16px;
    overflow: hidden;
    flex-direction: column;
}

#chatbot-messages {
    height: 340px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f8f9fa;
    padding: 10px;
}

.bot-message, .user-message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}
.bot-message  { align-self: flex-start; }
.user-message { align-self: flex-end; }

.bubble {
    padding: 8px 12px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}
.bot-message .bubble {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-bottom-left-radius: 4px;
    color: #333;
}
.user-message .bubble {
    background: #0d6efd;
    color: white;
    border-bottom-right-radius: 4px;
}
.error-bubble .bubble {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}
.msg-time {
    font-size: 10px;
    color: #aaa;
    margin-top: 2px;
    padding: 0 4px;
}
.user-message .msg-time { text-align: right; }
