#chatbot-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 200px);
    min-height: 400px;
    padding: 1rem;
}

#chatbot-container .section-title {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-bubble {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-bubble p {
    margin: 0 0 0.5rem 0;
}

.chat-bubble p:last-child {
    margin-bottom: 0;
}

.chat-user {
    align-self: flex-end;
    background-color: #003262; /* Berkeley Blue */
    color: #fff;
    border-bottom-right-radius: 0.25rem;
}

.chat-assistant {
    align-self: flex-start;
    background-color: #f0f0f0;
    color: #333;
    border-bottom-left-radius: 0.25rem;
}

.chat-assistant a {
    color: #003262;
    text-decoration: underline;
}

.chat-assistant strong {
    color: #003262;
}

.typing-indicator {
    display: inline-block;
    animation: blink 1s infinite;
    color: #999;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.chat-input-container {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #ddd;
}

.chat-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    resize: none;
    outline: none;
}

.chat-input:focus {
    border-color: #003262;
    box-shadow: 0 0 0 2px rgba(0, 50, 98, 0.2);
}

.chat-input:disabled {
    background-color: #f5f5f5;
}

.chat-send-btn {
    padding: 0.75rem 1.5rem;
    background-color: #FDB515; /* California Gold */
    color: #003262;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.chat-send-btn:hover:not(:disabled) {
    background-color: #e6a212;
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
