
/* Container: now occupies the flow of the document */
#ai-chat-bubble {
    width: 100%;
    max-height: 600px;
    margin: 20px auto;
    z-index: 1000;
}

/* Chat window: always visible, full width, with a max-height of 600px */
#ai-chat-window {
    width: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-height: 600px;
    background-color: #fff;
}

/* Chat header */
#ai-chat-header {
    background-color: #1c5379;
    color: #fff;
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hide chat icon and close button as they are not needed */
#ai-chat-icon, #ai-chat-close, #ai-expand-toggle {
    display: none;
}

/* Chat body */
#ai-chat-body {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 400px
}

/* Chat input area */
#ai-chat-input {
    padding: 10px;
    border-top: 1px solid #ddd;
    display: flex;
}

#ai-chat-input input {
    flex: 1;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#ai-chat-input button {
    margin-left: 10px;
    padding: 5px 10px;
    background-color: #1c5379;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* User messages */
.user-message {
    background-color: #1c5379;
    color: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    margin: 5px 0;
    max-width: 80%;
    align-self: flex-end;
    position: relative;
}

/* Bot messages */
.ai-message {
    background-color: #f1f1f1;
    color: #333;
    border-radius: 10px;
    padding: 8px 12px;
    margin: 5px 0;
    max-width: 80%;
    align-self: flex-start;
    position: relative;
    white-space: pre-line;
}

/* Typing indicator styles */
.typing-indicator {
    font-style: italic;
    opacity: 0.7;
}
.typing-indicator .dot {
    animation: blink 1.4s infinite both;
}
.typing-indicator .dot.one {
    animation-delay: 0s;
}
.typing-indicator .dot.two {
    animation-delay: 0.2s;
}
.typing-indicator .dot.three {
    animation-delay: 0.4s;
}
@keyframes blink {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
}
