/* /Components/Layout/MainLayout.razor.rz.scp.css */
.app-container[b-b3mhy9uopq] {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #f8f9fa;
}

.app-header[b-b3mhy9uopq] {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-content[b-b3mhy9uopq] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-content h1[b-b3mhy9uopq] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.app-main[b-b3mhy9uopq] {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
/* /Components/Pages/Chat.razor.rz.scp.css */
.chat-container[b-kxandhtamj] {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* Messages area */
.chat-messages[b-kxandhtamj] {
    flex: 1;
    overflow-y: auto;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Welcome screen */
.welcome[b-kxandhtamj] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    gap: 12px;
}

.welcome-icon[b-kxandhtamj] {
    margin-bottom: 8px;
}

.welcome h2[b-kxandhtamj] {
    margin: 0;
    font-size: 1.5rem;
    color: #1a1a2e;
    font-weight: 700;
}

.welcome p[b-kxandhtamj] {
    margin: 0;
    color: #6b7280;
    max-width: 480px;
    line-height: 1.5;
}

.suggestions[b-kxandhtamj] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}

.suggestion-chip[b-kxandhtamj] {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
}

.suggestion-chip:hover[b-kxandhtamj] {
    background: #f3f4f6;
    border-color: #4f46e5;
    color: #4f46e5;
}

/* Status banner */
.status-banner[b-kxandhtamj] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: #6b7280;
    font-size: 0.95rem;
}

.spinner[b-kxandhtamj] {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: spin-b-kxandhtamj 0.8s linear infinite;
}

@keyframes spin-b-kxandhtamj {
    to { transform: rotate(360deg); }
}

/* Messages */
.message[b-kxandhtamj] {
    display: flex;
    gap: 12px;
    animation: fadeIn-b-kxandhtamj 0.2s ease;
}

@keyframes fadeIn-b-kxandhtamj {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-avatar[b-kxandhtamj] {
    flex-shrink: 0;
}

.avatar[b-kxandhtamj] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
}

.user-avatar[b-kxandhtamj] {
    background: #dbeafe;
    color: #1d4ed8;
}

.bot-avatar[b-kxandhtamj] {
    background: #ede9fe;
    color: #6d28d9;
}

.message-body[b-kxandhtamj] {
    flex: 1;
    min-width: 0;
}

.message-meta[b-kxandhtamj] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.role-name[b-kxandhtamj] {
    font-weight: 600;
    font-size: 0.875rem;
    color: #111827;
}

.timestamp[b-kxandhtamj] {
    font-size: 0.75rem;
    color: #9ca3af;
}

.message-content[b-kxandhtamj] {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #374151;
}

/* Markdown content styling */
.message-content[b-kxandhtamj]  h1,
.message-content[b-kxandhtamj]  h2,
.message-content[b-kxandhtamj]  h3 {
    margin: 12px 0 8px;
    color: #111827;
}

.message-content[b-kxandhtamj]  p {
    margin: 4px 0;
}

.message-content[b-kxandhtamj]  table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 0.875rem;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.message-content[b-kxandhtamj]  th {
    background: #f8f9fa;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.message-content[b-kxandhtamj]  td {
    padding: 8px 14px;
    border-bottom: 1px solid #f3f4f6;
}

.message-content[b-kxandhtamj]  tr:last-child td {
    border-bottom: none;
}

.message-content[b-kxandhtamj]  code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

.message-content[b-kxandhtamj]  pre {
    background: #1e1e2e;
    color: #cdd6f4;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 12px 0;
}

.message-content[b-kxandhtamj]  pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.message-content[b-kxandhtamj]  ul,
.message-content[b-kxandhtamj]  ol {
    padding-left: 20px;
    margin: 8px 0;
}

.message-content[b-kxandhtamj]  strong {
    color: #111827;
}

/* Typing indicator */
.typing-indicator[b-kxandhtamj] {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.typing-indicator span[b-kxandhtamj] {
    width: 8px;
    height: 8px;
    background: #9ca3af;
    border-radius: 50%;
    animation: bounce-b-kxandhtamj 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2)[b-kxandhtamj] {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3)[b-kxandhtamj] {
    animation-delay: 0.4s;
}

@keyframes bounce-b-kxandhtamj {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-8px); }
}

/* Input area */
.chat-input-area[b-kxandhtamj] {
    padding: 16px;
    border-top: 1px solid #e5e7eb;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.input-wrapper[b-kxandhtamj] {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 8px 12px;
    transition: border-color 0.15s;
}

.input-wrapper:focus-within[b-kxandhtamj] {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.input-wrapper textarea[b-kxandhtamj] {
    flex: 1;
    border: none;
    background: transparent;
    resize: none;
    font-size: 0.9375rem;
    line-height: 1.5;
    padding: 4px 0;
    outline: none;
    font-family: inherit;
    max-height: 120px;
}

.send-btn[b-kxandhtamj] {
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}

.send-btn:hover:not(:disabled)[b-kxandhtamj] {
    background: #4338ca;
}

.send-btn:disabled[b-kxandhtamj] {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Voice (mic) button */
.voice-btn[b-kxandhtamj] {
    background: #f3f4f6;
    color: #6b7280;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.voice-btn:hover:not(:disabled)[b-kxandhtamj] {
    background: #e5e7eb;
    color: #374151;
}

.voice-btn:disabled[b-kxandhtamj] {
    opacity: 0.4;
    cursor: not-allowed;
}

.voice-btn.listening[b-kxandhtamj] {
    background: #ef4444;
    color: white;
}

.voice-btn.listening:hover:not(:disabled)[b-kxandhtamj] {
    background: #dc2626;
}

/* Recording pulse animation */
.recording-pulse[b-kxandhtamj] {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.3);
    animation: pulse-b-kxandhtamj 1.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-b-kxandhtamj {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 0; }
    100% { transform: scale(1); opacity: 0.5; }
}

/* Speaker button on assistant messages */
.speak-btn[b-kxandhtamj] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #9ca3af;
    width: 28px;
    height: 28px;
    cursor: pointer;
    margin-top: 6px;
    transition: all 0.15s ease;
}

.speak-btn:hover[b-kxandhtamj] {
    background: #f3f4f6;
    color: #4f46e5;
    border-color: #c7d2fe;
}

.speak-btn.speaking[b-kxandhtamj] {
    background: #eef2ff;
    color: #4f46e5;
    border-color: #4f46e5;
}

.new-chat-btn[b-kxandhtamj] {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.8125rem;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 6px;
    transition: all 0.15s;
}

.new-chat-btn:hover:not(:disabled)[b-kxandhtamj] {
    background: #f3f4f6;
    color: #ef4444;
}

.new-chat-btn:disabled[b-kxandhtamj] {
    opacity: 0.4;
    cursor: not-allowed;
}
