:root {
    --chatbot-accent-color: #A4C117;
    --chatbot-accent-color-shade: #849d07;
    --chatbot-secondary-accent-color: #C77B19;
    --chatbot-bot-message-color: #eef5ca;
    --chatbot-user-message-color: #f9f9f9;
}

#chatbox {
    position: fixed;
    right: 20px;
    width: 500px;
    max-width: calc(100vw - 40px);
    height: calc(100% - 114px);
    background-color: white;
    border: 2px solid var(--chatbot-accent-color);
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
    bottom: 90px;
    transition: all 0.15s ease-in-out;
}

#chatbox.maximized {
    height: calc(100% - 90px);
    width: 100%;
    max-width: 100%;
    right: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

#chatHeader {
    position: relative;
    background-color: var(--chatbot-accent-color);
    color: white;
    padding: 10px;
    font-weight: bold;
    text-align: center;
}
@media (max-width: 499.99px) {
    #chatHeader {
        text-align: left;
    }
}

#chatMessages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    font-family: sans-serif;
    font-size: 14px;
}

.chatMessageRow {
    display: flex;
    justify-content: flex-start;
    text-align: left;
}

.chatAlignRight {
    justify-content: flex-end;
    text-align: right;
}

.botChatMessage {
    margin: 16px 0;
    padding: 12px 14px;
    background-color: var(--chatbot-bot-message-color);
    border-radius: 14px;
    width: auto;
    max-width: 90%;
    word-break: break-word;
    font-family: 'Chakra Petch';
    font-size: 14px;
    color: #333;
    line-height: 1.75;
}

.userChatMessage {
    margin: 16px 0;
    padding: 12px 14px;
    background-color: var(--chatbot-user-message-color);
    border-radius: 14px;
    width: auto;
    max-width: 90%;
    word-break: break-word;
    font-family: 'Chakra Petch';
    font-size: 14px;
    color: #333;
    line-height: 1.75;
}

#chatMessages strong,
#chatMessages a:link,
#chatMessages a:hover,
#chatMessages a:visited {
    color: var(--chatbot-secondary-accent-color);
}

#chatInputContainer {
    padding: 14px 20px;
    padding-right: 68px;
    border: none;
    border-top: 1px solid var(--chatbot-accent-color);
}
#chatInput {
    border: none;
    font-size: 14px;
    outline: none;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.typing-dots {
    display: inline-block;
}

.typing-dots span {
    animation: blink 1.4s infinite both;
    font-weight: bold;
    padding: 0 1px;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0%,
    80%,
    100% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }
}

#bot-typing {
    margin: 16px 0;
    font-size: 14px;
    color: #666;
}

#chatToggleBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--chatbot-accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 28px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    
    transition: all 0.15s ease-in-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#chatToggleBtn:hover {
    background-color: var(--chatbot-accent-color-shade);
}

#chatWindowControls {
    display: flex;
    justify-content: flex-end;

    position: absolute;
    top: 20%;
    right: 10px;
}

.chatBtn {
    background-color: transparent;
    padding: 4px;
    margin-left: 8px;
    border: none;
    outline: none;
    border-radius: 4px;

    display: inline-flex;
    align-items: flex-end;
    justify-content: center;

    transition: all 0.15s ease-in-out;
}

#chatWindowControls .chatBtn:hover {
    background-color: var(--chatbot-accent-color-shade);
}

#sendButton {
    position: absolute;
    bottom: 20px;
    right: 20px;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--chatbot-accent-color);
    color: white;
}
#sendButton:hover {
    background-color: var(--chatbot-accent-color-shade);
}

.chatEl__hidden {
    display: none;
}

.suggestButton {
    display: block;
    width: 100%;
    padding: 10px 16px;
    margin: 6px 0;
    border: 1px solid #ccc;
    border-radius: 999px; /* pill shape */
    background: var(--chatbot-bot-message-color);
    cursor: pointer;
    font-size: 14px;
    text-align: center; /* keep text centered inside button */
    transition: background 0.2s, border-color 0.2s;
    
}

#initQuestionContainer {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* content aligned to left inside */
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 16px;
    background: #f9f9f9;
    margin: 16px 0 16px auto; /* right aligned */
    font-family: 'Chakra Petch';
    max-width: 400px;
    box-sizing: border-box;
}

