/* Floating chat icon */
#chatbot-launcher {
    position: fixed;
    z-index: 9999;
    bottom: 56px;
    right: 56px;
    display: flex;
    align-items: center;
    gap: 16px; /* Add space between text and icon */
}

#custom-chatbot-launcher {
    background: #007bff;
    color: #fff;
    border-radius: 50%;
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 18px rgba(0,0,0,0.22);
    cursor: pointer;
    transition: box-shadow .2s;
    font-size: 29px;
    padding-left: 0.25rem;
}

#custom-chatbot-launcher:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.32);
}

.chatbot-launcher-text {
    color: #007bff;
    font-size: 1.25rem;
    text-shadow: 1px 1px 1px #0461c5;
    /*font-weight: bold;*/
    margin-right: 10px; /* Optional: for more spacing control */
    cursor: pointer;  /* This makes the cursor a hand */
}

#custom-chatbot-modal {
    display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.19);
}
#custom-chatbot-modal .chat-container {
    position: absolute;
    bottom: 80px;
    right: 38px;
    background: #fff;
    border-radius: 15px;
    width: 480px;
    max-width: 98vw;
    min-height: 530px;
    max-height: 80vh;
    box-shadow: 0 4px 24px rgba(0,0,0,0.16);
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
}
#custom-chatbot-modal .chat-header {
    background: #2066b2; color: #fff;
    padding: 12px 16px 9px 14px;
    border-top-left-radius: 15px; border-top-right-radius: 15px;
    /*font-size: 16px; font-weight: bold;*/
    display: flex; align-items: center; justify-content: space-between;
}
/*#custom-chatbot-modal .chat-header .running-container {*/
/*    margin-right: 12px;*/
/*}*/
/*#custom-chatbot-modal .chat-header .running {*/
/*    background: #fff; color: #2066b2; border-radius: 9px;*/
/*    padding: 1px 8px; font-size: 12px; font-weight: normal;*/
/*}*/
#custom-chatbot-modal .chat-header .chat-close {
    margin-left: 8px; font-size: 25px; cursor: pointer; color: #fff;
}
#custom-chatbot-modal .chat-window {
    flex: 1 1 auto; background: #f4f7fb;
    overflow-y: auto; padding: 16px 10px 0 10px; font-size: 15px;
}
#custom-chatbot-modal .chat-input {
    display: flex; align-items: center; padding: 8px 12px 10px 12px; background: #fff;
    border-top: 1px solid #e5e5e5;
}
#custom-chatbot-modal .chat-input input[type=text] {
    flex: 1 1 auto; border: 1px solid #c3d1e2; border-radius: 8px; padding: 7px 8px;
    font-size: 15px; outline: none; margin-right: 8px;
}
#custom-chatbot-modal .chat-input .fa-messages-question {
    color: #2066b2; font-size: 29px; cursor: pointer;
    transition: color 0.2s;
}
#custom-chatbot-modal .chat-input .fa-messages-question:hover {
    color: #004477;
}
#custom-chatbot-modal .message { margin-bottom: 13px; }
#custom-chatbot-modal .message.user .text { background: #dde6f7; align-self: flex-end; }

#custom-chatbot-modal .message.bot .text {
    background: #b1fab1;
    margin-right: 2rem;
}

/* GUID Style */
#custom-chatbot-modal .message.bot .text .guid {
    font-size: 13px;
    color: #888;
}

#custom-chatbot-modal .text {
    display: inline-block; padding: 8px 13px; border-radius: 9px;
    max-width: 78%; white-space: pre-wrap; word-break: break-word;
}
#custom-chatbot-modal .timestamp { font-size: 10px; color: #a9b2c4; margin-top: 2px; }