// Add these styles to your styles.css file

/* Loading indicator styles */
.loading-message .message-content {
    display: flex;
    align-items: center;
    animation: pulse 1.5s infinite;
}

.loading-message .message-content:after {
    content: "...";
    overflow: hidden;
    display: inline-block;
    vertical-align: bottom;
    animation: ellipsis 1.5s infinite;
    width: 0;
}

@keyframes ellipsis {
    0% { width: 0; }
    25% { width: 0.5em; }
    50% { width: 1em; }
    75% { width: 1.5em; }
    100% { width: 0; }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Improve scrolling in chat area */
.chat-messages {
    height: 500px;
    overflow-y: auto;
    padding: 20px;
    scroll-behavior: smooth;
}

/* Fix for long property descriptions */
.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* Make textarea auto-expand */
#user-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 24px;
    resize: none;
    outline: none;
    font-size: 16px;
    overflow: hidden;
    min-height: 24px;
    max-height: 120px;
}

/* Loading indicator styles */
.loading-message .message-content {
    display: flex;
    align-items: center;
    animation: pulse 1.5s infinite;
}

.loading-message .message-content:after {
    content: "...";
    overflow: hidden;
    display: inline-block;
    vertical-align: bottom;
    animation: ellipsis 1.5s infinite;
    width: 0;
}

@keyframes ellipsis {
    0% { width: 0; }
    25% { width: 0.5em; }
    50% { width: 1em; }
    75% { width: 1.5em; }
    100% { width: 0; }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Fix for long property descriptions */
.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
    white-space: pre-wrap;
}
