/* Chat Page - Modern MudBlazor Layout */

.chat-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

.chat-paper {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    border-radius: 16px !important;
    border: 1px solid #E2E8F0;
}

/* Messages container */
.chat-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    min-height: 400px;
    max-height: calc(100vh - 320px);
    background: #FAFBFC;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Empty state */
.chat-empty-state {
    height: 100%;
    min-height: 300px;
    opacity: 0.8;
    gap: 8px !important;
}

/* Bubble rows */
.chat-bubble-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    animation: fadeIn 0.3s ease-out;
}

.chat-bubble-right {
    justify-content: flex-end;
}

.chat-bubble-left {
    justify-content: flex-start;
}

/* Avatar */
.chat-avatar {
    flex-shrink: 0;
    width: 32px !important;
    height: 32px !important;
    border-radius: 10px !important;
}

/* Chat bubbles */
.chat-bubble {
    padding: 12px 18px;
    border-radius: 18px;
    max-width: 75%;
    word-wrap: break-word;
    line-height: 1.5;
    font-size: 0.925rem;
}

.chat-bubble-user {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: #FFFFFF;
    border-bottom-right-radius: 6px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.chat-bubble-assistant {
    background: #FFFFFF;
    color: #1E293B;
    border: 1px solid #E2E8F0;
    border-bottom-left-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Input area */
.chat-input-area {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid #E2E8F0;
    background: #FFFFFF;
    gap: 12px;
    border-radius: 0 0 16px 16px;
}

.chat-input-field {
    flex: 1;
}

.chat-input-field .mud-input-outlined .mud-input-outlined-border {
    border-radius: 24px !important;
}

.chat-loading {
    flex-shrink: 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
