/* Chat Interface Styling */
.chat-container {
    height: 500px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background-color: #f9f9f9;
}

.message {
    max-width: 80%;
    margin-bottom: 1rem;
    padding: 10px 15px;
    border-radius: 15px;
    position: relative;
}

.user-message {
    align-self: flex-end;
    background-color: #007bff;
    color: white;
    border-bottom-right-radius: 5px;
    margin-left: auto;
}

.ai-message {
    align-self: flex-start;
    background-color: #e9ecef;
    color: #333;
    border-bottom-left-radius: 5px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.user-message .message-header {
    color: rgba(255, 255, 255, 0.9);
}

.message-content {
    font-size: 1rem;
    line-height: 1.5;
    word-break: break-word;
}

.welcome-message {
    align-self: center;
    color: #6c757d;
}

.ai-avatar {
    display: inline-block;
    padding: 15px;
    border-radius: 50%;
    background-color: #f1f3f5;
}

#user-message {
    resize: none;
}

/* Make textarea autogrow */
textarea {
    min-height: 50px;
    max-height: 150px;
    transition: height 0.2s ease;
}

/* Prompt suggestions */
.prompt-suggestions a {
    color: #495057;
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.prompt-suggestions a:hover {
    color: #007bff;
    background-color: #f8f9fa;
}

/* Loading indicator styles */
.typing-indicator {
    display: flex;
    padding: 10px 15px;
    background-color: #e9ecef;
    border-radius: 15px;
    border-bottom-left-radius: 5px;
    max-width: 100px;
    margin-bottom: 1rem;
}

.typing-indicator span {
    height: 10px;
    width: 10px;
    background-color: #007bff;
    border-radius: 50%;
    display: inline-block;
    margin: 0 2px;
    animation: bounce 1.3s linear infinite;
}

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

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

@keyframes bounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-5px);
    }
}

/* Loading indicator styles */
#loading-indicator {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    background-color: #f8f9fa;
    border-left: 3px solid #007bff;
}