/* /Components/Chat.razor.rz.scp.css */
.chat-container[b-jwf536z7zt] {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    margin: 0;
    border: none;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
    overflow: hidden;
}

.chat-header[b-jwf536z7zt] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: 1px solid #e0e0e0;
}

.header-controls[b-jwf536z7zt] {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header h3[b-jwf536z7zt] {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.status-indicator[b-jwf536z7zt] {
    display: flex;
    align-items: center;
    font-size: 12px;
    opacity: 0.9;
}

.status-indicator.online[b-jwf536z7zt]::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    margin-right: 6px;
}

.status-indicator.typing[b-jwf536z7zt]::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #fbbf24;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse 1.5s infinite;
}

.status-indicator.disconnected[b-jwf536z7zt]::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    margin-right: 6px;
}

.reset-button[b-jwf536z7zt] {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 4px;
    color: white;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.reset-button:hover[b-jwf536z7zt] {
    background: rgba(255, 255, 255, 0.3);
}

.error-banner[b-jwf536z7zt] {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 20px;
    font-size: 14px;
    text-align: center;
    animation: slideDown 0.3s ease-out;
}

.config-section[b-jwf536z7zt] {
    padding: 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.config-form[b-jwf536z7zt] {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.config-title[b-jwf536z7zt] {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    text-align: center;
}

.settings-loaded-indicator[b-jwf536z7zt] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    color: #0369a1;
    font-size: 12px;
    margin-bottom: 12px;
    animation: fadeIn 0.3s ease-in;
}

.settings-loaded-indicator svg[b-jwf536z7zt] {
    flex-shrink: 0;
}

.config-input[b-jwf536z7zt] {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.config-input:focus[b-jwf536z7zt] {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.config-button[b-jwf536z7zt] {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.config-button:hover:not(:disabled)[b-jwf536z7zt] {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.config-button:disabled[b-jwf536z7zt] {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.config-button.secondary[b-jwf536z7zt] {
    background: #6b7280;
}

.config-button.secondary:hover:not(:disabled)[b-jwf536z7zt] {
    background: #4b5563;
}

.model-select[b-jwf536z7zt] {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
    background: white;
}

.model-select:focus[b-jwf536z7zt] {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.streaming-toggle[b-jwf536z7zt] {
    display: flex;
    justify-content: center;
    margin: 8px 0;
}

.toggle-label[b-jwf536z7zt] {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.toggle-checkbox[b-jwf536z7zt] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.loading-models[b-jwf536z7zt] {
    padding: 16px;
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

.error-message[b-jwf536z7zt] {
    margin-top: 12px;
    padding: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 14px;
    text-align: center;
}

.chat-messages[b-jwf536z7zt] {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8fafc;
    scroll-behavior: smooth;
}

.message[b-jwf536z7zt] {
    display: flex;
    margin-bottom: 16px;
    animation: fadeIn 0.3s ease-in;
}

.user-message[b-jwf536z7zt] {
    justify-content: flex-end;
}

.ai-message[b-jwf536z7zt] {
    justify-content: flex-start;
}



.message-content[b-jwf536z7zt] {
    max-width: 70%;
    display: flex;
    flex-direction: column;
}

.user-message .message-content[b-jwf536z7zt] {
    align-items: flex-end;
    margin-left: auto;
}

.ai-message .message-content[b-jwf536z7zt] {
    align-items: flex-start;
    margin-right: auto;
}

.message-text[b-jwf536z7zt] {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.user-message .message-text[b-jwf536z7zt] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-message .message-text[b-jwf536z7zt] {
    background: white;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
}

/* Markdown styling for AI messages */
.ai-message .message-text h1[b-jwf536z7zt],
.ai-message .message-text h2[b-jwf536z7zt],
.ai-message .message-text h3[b-jwf536z7zt],
.ai-message .message-text h4[b-jwf536z7zt],
.ai-message .message-text h5[b-jwf536z7zt],
.ai-message .message-text h6[b-jwf536z7zt] {
    margin: 16px 0 8px 0;
    font-weight: 600;
    line-height: 1.25;
    color: #1f2937;
}

.ai-message .message-text h1[b-jwf536z7zt] { font-size: 1.5em; }
.ai-message .message-text h2[b-jwf536z7zt] { font-size: 1.3em; }
.ai-message .message-text h3[b-jwf536z7zt] { font-size: 1.2em; }
.ai-message .message-text h4[b-jwf536z7zt] { font-size: 1.1em; }
.ai-message .message-text h5[b-jwf536z7zt] { font-size: 1em; }
.ai-message .message-text h6[b-jwf536z7zt] { font-size: 0.9em; }

.ai-message .message-text p[b-jwf536z7zt] {
    margin: 8px 0;
    line-height: 1.6;
}

.ai-message .message-text ul[b-jwf536z7zt],
.ai-message .message-text ol[b-jwf536z7zt] {
    margin: 8px 0;
    padding-left: 20px;
}

.ai-message .message-text li[b-jwf536z7zt] {
    margin: 4px 0;
    line-height: 1.5;
}

.ai-message .message-text blockquote[b-jwf536z7zt] {
    margin: 12px 0;
    padding: 8px 16px;
    border-left: 4px solid #667eea;
    background: #f8fafc;
    font-style: italic;
    color: #4b5563;
}

.ai-message .message-text code[b-jwf536z7zt] {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: #dc2626;
}

.ai-message .message-text pre[b-jwf536z7zt] {
    background: #1f2937;
    color: #f9fafb;
    padding: 12px 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 12px 0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.4;
    border: 1px solid #374151;
    position: relative;
}

.ai-message .message-text pre[b-jwf536z7zt]::-webkit-scrollbar {
    height: 8px;
}

.ai-message .message-text pre[b-jwf536z7zt]::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

.ai-message .message-text pre[b-jwf536z7zt]::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 4px;
}

.ai-message .message-text pre[b-jwf536z7zt]::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.ai-message .message-text pre code[b-jwf536z7zt] {
    background: transparent;
    padding: 0;
    color: inherit;
    border-radius: 0;
}

.ai-message .message-text table[b-jwf536z7zt] {
    border-collapse: collapse;
    width: 100%;
    margin: 12px 0;
    font-size: 0.9em;
}

.ai-message .message-text th[b-jwf536z7zt],
.ai-message .message-text td[b-jwf536z7zt] {
    border: 1px solid #d1d5db;
    padding: 8px 12px;
    text-align: left;
}

.ai-message .message-text th[b-jwf536z7zt] {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.ai-message .message-text tr:nth-child(even)[b-jwf536z7zt] {
    background: #f9fafb;
}

.ai-message .message-text a[b-jwf536z7zt] {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.ai-message .message-text a:hover[b-jwf536z7zt] {
    border-bottom-color: #667eea;
}

.ai-message .message-text strong[b-jwf536z7zt] {
    font-weight: 600;
    color: #1f2937;
}

.ai-message .message-text em[b-jwf536z7zt] {
    font-style: italic;
    color: #4b5563;
}

.ai-message .message-text hr[b-jwf536z7zt] {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 16px 0;
}

/* Ensure first and last elements don't have excessive margins */
.ai-message .message-text > *:first-child[b-jwf536z7zt] {
    margin-top: 0;
}

.ai-message .message-text > *:last-child[b-jwf536z7zt] {
    margin-bottom: 0;
}

.message-time[b-jwf536z7zt] {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
    padding: 0 4px;
}

.typing-indicator .message-text[b-jwf536z7zt] {
    padding: 16px 20px;
}

.typing-dots[b-jwf536z7zt] {
    display: flex;
    gap: 4px;
}

.typing-dots span[b-jwf536z7zt] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca3af;
    animation: typingDot 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1)[b-jwf536z7zt] { animation-delay: -0.32s; }
.typing-dots span:nth-child(2)[b-jwf536z7zt] { animation-delay: -0.16s; }

.streaming-cursor[b-jwf536z7zt] {
    color: #667eea;
    font-weight: bold;
    animation: blink 1s infinite;
    margin-left: 2px;
    display: inline-block;
    font-size: 1.2em;
}

.message.streaming .message-text[b-jwf536z7zt] {
    border-bottom: 2px solid #667eea;
    border-radius: 0;
    animation: streamingGlow 2s infinite;
}

.chat-input-container[b-jwf536z7zt] {
    padding: 16px 20px;
    background: white;
    border-top: 1px solid #e5e7eb;
}

.input-wrapper[b-jwf536z7zt] {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.chat-input[b-jwf536z7zt] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
    resize: none;
    font-family: inherit;
    line-height: 1.4;
    min-height: 44px;
    max-height: 200px;
    overflow-y: auto;
    box-sizing: border-box;
}

.chat-input:focus[b-jwf536z7zt] {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chat-input:disabled[b-jwf536z7zt] {
    background: #f3f4f6;
    cursor: not-allowed;
}

.send-button[b-jwf536z7zt] {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.send-button:hover:not(:disabled)[b-jwf536z7zt] {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.send-button:disabled[b-jwf536z7zt] {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@@keyframes fadeIn {
     from[b-jwf536z7zt] { opacity: 0; transform: translateY(10px); }
     to[b-jwf536z7zt] { opacity: 1; transform: translateY(0); }
 }

@@keyframes pulse {
     0%[b-jwf536z7zt], 100%[b-jwf536z7zt] { opacity: 1; }
     50%[b-jwf536z7zt] { opacity: 0.5; }
 }

@@keyframes typingDot {
     0%[b-jwf536z7zt], 80%[b-jwf536z7zt], 100%[b-jwf536z7zt] { transform: scale(0.8); opacity: 0.5; }
     40%[b-jwf536z7zt] { transform: scale(1); opacity: 1; }
 }

@@keyframes slideDown {
     from[b-jwf536z7zt] {
         opacity: 0;
         transform: translateY(-10px);
         max-height: 0;
         padding-top: 0;
         padding-bottom: 0;
     }
     to[b-jwf536z7zt] {
         opacity: 1;
         transform: translateY(0);
         max-height: 100px;
         padding-top: 12px;
         padding-bottom: 12px;
     }
 }

@@keyframes blink {
     0%[b-jwf536z7zt], 50%[b-jwf536z7zt] { opacity: 1; }
     51%[b-jwf536z7zt], 100%[b-jwf536z7zt] { opacity: 0; }
 }

@@keyframes streamingGlow {
     0%[b-jwf536z7zt], 100%[b-jwf536z7zt] { border-bottom-color: #667eea; }
     50%[b-jwf536z7zt] { border-bottom-color: #a78bfa; }
 }

/* Scrollbar styling */
.chat-messages[b-jwf536z7zt]::-webkit-scrollbar {
    width: 6px;
}

.chat-messages[b-jwf536z7zt]::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-messages[b-jwf536z7zt]::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chat-messages[b-jwf536z7zt]::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive design */
@@media (max-width: 768px) {
    .message-content[b-jwf536z7zt] {
        max-width: 85%;
    }

    .chat-messages[b-jwf536z7zt] {
        padding: 16px;
    }

    .chat-input-container[b-jwf536z7zt] {
        padding: 12px 16px;
    }
}
/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-em943cg4ae] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-em943cg4ae] {
    flex: 1;
}

.sidebar[b-em943cg4ae] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-em943cg4ae] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-em943cg4ae]  a, .top-row[b-em943cg4ae]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-em943cg4ae]  a:hover, .top-row[b-em943cg4ae]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-em943cg4ae]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-em943cg4ae] {
        justify-content: space-between;
    }

    .top-row[b-em943cg4ae]  a, .top-row[b-em943cg4ae]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-em943cg4ae] {
        flex-direction: row;
    }

    .sidebar[b-em943cg4ae] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-em943cg4ae] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-em943cg4ae]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-em943cg4ae], article[b-em943cg4ae] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-y03h75cx2h] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-y03h75cx2h] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-y03h75cx2h] {
    font-size: 1.1rem;
}

.bi[b-y03h75cx2h] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-y03h75cx2h] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-y03h75cx2h] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-y03h75cx2h] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-y03h75cx2h] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-y03h75cx2h] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-y03h75cx2h] {
        padding-bottom: 1rem;
    }

    .nav-item[b-y03h75cx2h]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-y03h75cx2h]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-y03h75cx2h]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-y03h75cx2h] {
        display: none;
    }

    .collapse[b-y03h75cx2h] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .nav-scrollable[b-y03h75cx2h] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
