/* Generated by ChatGPT with adjustments. */
/* Toggle Button */
#toggle-btn {
    z-index: 1000;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0078d7;
    color: white;
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Chatbox Container */
#chatbox-container {
    z-index: 1000;
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    height: 500px;
    display: flex;
    flex-direction: column;
    background: transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-family: system-ui, Arial, sans-serif;
    font-size: 16px;
    resize: both;
    overflow: hidden;
}

/* Chatbox Frame */
#chatbox {
    background: white;
    border: 1px solid #ccc;
    resize: both;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Chat Area */
#chat {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    height: 300px;
    padding: 0.5rem;
}

/* Message Bubbles */
.chat-msg {
    margin: 0.5rem 0;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    max-width: 90%;
    word-wrap: break-word;
}

.msg-bot {
    background: #e8e8e8;
    align-self: flex-start;
}

.msg-user {
    background: #daf1da;
    align-self: flex-end;
}

/* Input Area */
#input-area {
    display: flex;
    border-top: 1px solid #ccc;
    max-height: 40px;
    min-width: 100%;
    flex-shrink: 0;
}

/* Input Field */
#input-prompt {
    flex: 1;
    padding: 0.5rem;
    border: none;
    outline: none;
}

/* Send Button */
#send-btn {
    border: none;
    background: rgb(0, 120, 215);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    height: 30px;
    width: 30px;
}

/* Sample Question Panel */
#sample-questions-panel {
    background: transparent;
    padding: 5px;
    margin-top: 5px;
    text-align: end;
}

/* Sample Question Buttons */
.sample-question-btn {
    text-align: left;
    background: antiquewhite;
    border-radius: 6px;
    padding: 6px 10px;
    margin-top: 6px;
    cursor: pointer;
    border: 1px solid #ddd;
}


/* Generated by ChatGPT. */
/* Loader bubble style */
.loader-bubble {
    align-self: flex-start;
    max-width: 70%;
    padding: 0.5rem 0.75rem;
    margin: 0.5rem 0;
    background: #e8e8e8;
    border-radius: 8px;
    display: flex;
    gap: 4px;
}

/* Animated dots */
.loader-bubble .dot {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: blink 1.4s infinite both;
}

.loader-bubble .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-bubble .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0% { opacity: 0.2; }
    20% { opacity: 1; }
    100% { opacity: 0.2; }
}

/* Keep mobile menu links blue even when sticky */
@media (max-width: 1023px) {
  .sticky #navbarCollapse li > a {
    color: #0d4a91 !important;
  }
}
