/* Chat Icon */
#aibot-chat-launcher {
    position: fixed;
    bottom: 95px;
    right: 25px;
    background-color: #12336b;
    color: white;
    font-size: 24px;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Chat Box */
#aibot-chat-box {
    display: none;
    position: fixed;
    bottom: 170px;
    right: 30px;
    width: 320px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 10000000;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
}

/* Header */
.aibot-header {
	font-family: 'Lora';
    background-color: #12336b;
    color: white;
    padding: 12px 16px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#aibot-close {
    cursor: pointer;
    font-size: 18px;
}

/* Chat Body */
.aibot-body {
    max-height: 250px;
    overflow-y: auto;
    padding: 10px;
    background-color: #f9f9f9;
}

.aibot-message {
	font-family: 'Lora';
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 18px;
    clear: both;
    line-height: 1.4;
    max-width: 80%;
    width: fit-content;
	word-wrap: break-word;
    word-break: break-word;
}

.aibot-message.user {
    background-color: #12336b1a;
    margin-left: auto;
    text-align: right;
    max-width: 80%;
    width: fit-content;
}

.aibot-message.bot {
    background-color: #eeeeee;
    margin-right: auto;
    text-align: left;
}

/* Formatted AI replies (Markdown → HTML) */
.aibot-message.bot p {
    margin: 0.4em 0;
}

.aibot-message.bot p:first-child {
    margin-top: 0;
}

.aibot-message.bot p:last-child {
    margin-bottom: 0;
}

.aibot-message.bot ul,
.aibot-message.bot ol {
    margin: 0.35em 0 0.35em 1.1em;
    padding-left: 1em;
}

.aibot-message.bot li {
    margin: 0.2em 0;
}

.aibot-message.bot strong {
    font-weight: 600;
}

.aibot-md-fallback {
    white-space: normal;
}

/* Input */
.aibot-input {
    display: flex;
    border-top: 1px solid #ccc;
}

#aibot-user-message {
	font-family: 'Lora';
    flex: 1;
    border: none;
    padding: 12px;
    font-size: 14px;
}

#aibot-user-message:focus {
    outline: none;
}

#aibot-send-message {
    background-color: #12336b;
    color: white;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 16px;
}

#aibot-send-message:hover {
    background-color: #12336bb3;
}

/* Optional button (pre-filled prompts) */
.aibot-btn {
    background-color: #e0e0e0;
    border: none;
    padding: 6px 12px;
    margin: 4px 4px 0 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: inline-block;
}

.aibot-btn:hover {
    background-color: #d4d4d4;
}
/* Chat tip message */
#aibot-chat-tip {
    position: fixed;
    bottom: 150px;
    right: 95px;
    background-color: #12336b;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Lora';
    z-index: 10000001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 768px) {
    #aibot-chat-tip {
        display: none !important;
    }
}