@import '_content/IS.Blazor/IS.Blazor.vdspa9r40j.bundle.scp.css';

/* /Admin/ReactionsPage.razor.rz.scp.css */
/* Modern Dashboard Styles */
.dashboard-container[b-gxmj8cqdxl] {
    background: #f8f9fa;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Admin Content Layout */
.admin-content[b-gxmj8cqdxl] {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 0;
}

/* Vertical Menu */
.vertical-menu[b-gxmj8cqdxl] {
    width: 250px;
    background: white;
    border-right: 1px solid #e9ecef;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    flex-shrink: 0;
    overflow-y: auto;
}

.menu-item[b-gxmj8cqdxl] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.menu-item i[b-gxmj8cqdxl] {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.menu-item:hover[b-gxmj8cqdxl] {
    background: #f8f9fa;
    color: #495057;
}

.menu-item.active[b-gxmj8cqdxl] {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-left-color: #667eea;
    color: #667eea;
    font-weight: 600;
}

.menu-item.active i[b-gxmj8cqdxl] {
    color: #667eea;
}

/* Content Area */
.content-area[b-gxmj8cqdxl] {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
}

.section-content[b-gxmj8cqdxl] {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title[b-gxmj8cqdxl] {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid #667eea;
}

/* Search Section */
.search-section[b-gxmj8cqdxl] {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-bottom: 24px;
}

/* Results Section */
.results-section[b-gxmj8cqdxl] {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 24px;
}

/* Header Styles (matching ChatPage) */
.admin-header[b-gxmj8cqdxl] {
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    padding: 0.875rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    margin: 0;
    flex-shrink: 0;
}

.header-brand[b-gxmj8cqdxl] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.header-brand:hover[b-gxmj8cqdxl] {
    opacity: 0.8;
}

.header-logo[b-gxmj8cqdxl] {
    width: 36px;
    height: 36px;
}

.header-title[b-gxmj8cqdxl] {
    font-weight: 600;
    font-size: 1.125rem;
    color: #2c3e50;
}

.header-controls[b-gxmj8cqdxl] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-badge[b-gxmj8cqdxl] {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.dashboard-header[b-gxmj8cqdxl] {
    margin-bottom: 30px;
}

.dashboard-title[b-gxmj8cqdxl] {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.charts-section[b-gxmj8cqdxl] {
    padding: 20px;
}

.data-panel[b-gxmj8cqdxl] {
    margin: 20px;
}

/* Modern Spinner */
.modern-spinner[b-gxmj8cqdxl] {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0d6efd;
    border-radius: 50%;
    animation: spin-b-gxmj8cqdxl 1s linear infinite;
    margin: 0 auto;
}

.modern-spinner.large[b-gxmj8cqdxl] {
    width: 80px;
    height: 80px;
    border-width: 6px;
}

@keyframes spin-b-gxmj8cqdxl {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading States */
.chart-loading[b-gxmj8cqdxl],
.data-loading[b-gxmj8cqdxl] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.no-results[b-gxmj8cqdxl] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.no-results h5[b-gxmj8cqdxl] {
    margin-top: 16px;
    color: #495057;
}

.loading-text[b-gxmj8cqdxl] {
    margin-top: 20px;
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 500;
}

/* Charts Section - Keep for backward compatibility */

.chart-card[b-gxmj8cqdxl] {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.chart-card:hover[b-gxmj8cqdxl] {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.chart-card-header[b-gxmj8cqdxl] {
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chart-title[b-gxmj8cqdxl] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
}

.chart-date-range[b-gxmj8cqdxl] {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.chart-body[b-gxmj8cqdxl] {
    padding: 20px 24px;
}

.chart-card-footer[b-gxmj8cqdxl] {
    padding: 12px 24px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.chart-pagination-info[b-gxmj8cqdxl] {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.chart-card-footer .pagination[b-gxmj8cqdxl] {
    margin: 0;
}

.chart-card-footer .page-link[b-gxmj8cqdxl] {
    padding: 0.375rem 0.625rem;
    font-size: 0.875rem;
}

/* View Table Button */
.btn-view-table[b-gxmj8cqdxl] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: 8px;
    padding: 0;
    border: none;
    background-color: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.btn-view-table:hover[b-gxmj8cqdxl] {
    background-color: #667eea;
    color: white;
}

/* Company Modal Styles - matching citation modal */
.company-modal-overlay[b-gxmj8cqdxl] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    animation: fadeIn-b-gxmj8cqdxl 0.2s ease-out;
}

.company-modal[b-gxmj8cqdxl] {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 95%;
    max-width: 1200px;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp-b-gxmj8cqdxl 0.3s ease-out;
}

.company-modal-header[b-gxmj8cqdxl] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

.company-modal-header h4[b-gxmj8cqdxl] {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #2c3e50;
}

.modal-close-btn[b-gxmj8cqdxl] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background-color: transparent;
    border-radius: 6px;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s ease;
}

.modal-close-btn:hover[b-gxmj8cqdxl] {
    background-color: #e9ecef;
    color: #495057;
}

.company-modal-body[b-gxmj8cqdxl] {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.company-table[b-gxmj8cqdxl] {
    margin: 0;
    width: 100%;
}

.company-table thead[b-gxmj8cqdxl] {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 1;
}

.company-table th[b-gxmj8cqdxl] {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.company-table td[b-gxmj8cqdxl] {
    padding: 0.875rem 1.5rem;
    vertical-align: middle;
}

@keyframes fadeIn-b-gxmj8cqdxl {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp-b-gxmj8cqdxl {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filters Section */
.results-filters-section[b-gxmj8cqdxl] {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.filter-section-title[b-gxmj8cqdxl] {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #dee2e6;
}

.btn-primary[b-gxmj8cqdxl] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-primary:hover:not(:disabled)[b-gxmj8cqdxl] {
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:active:not(:disabled)[b-gxmj8cqdxl] {
    transform: translateY(0);
}

/* Search Input Wrapper */
.search-wrapper[b-gxmj8cqdxl] {
    position: relative;
}

.search-icon[b-gxmj8cqdxl] {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
    z-index: 1;
}

.search-input[b-gxmj8cqdxl] {
    padding-left: 42px !important;
    padding-right: 38px !important;
}

.search-clear-btn[b-gxmj8cqdxl] {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 1.1rem;
    line-height: 1;
    transition: color 0.2s ease;
    z-index: 2;
}

.search-clear-btn:hover[b-gxmj8cqdxl] {
    color: #dc3545;
}

.search-clear-btn:focus[b-gxmj8cqdxl] {
    outline: none;
    color: #dc3545;
}

.search-clear-btn i[b-gxmj8cqdxl] {
    pointer-events: none;
}

.btn-primary:disabled[b-gxmj8cqdxl] {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    opacity: 0.6;
}

.data-loading[b-gxmj8cqdxl] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    min-height: 300px;
}

.section-divider[b-gxmj8cqdxl] {
    margin: 24px 0;
    border-color: #e9ecef;
}

/* Pagination Controls */
.pagination-controls-top[b-gxmj8cqdxl],
.pagination-controls-bottom[b-gxmj8cqdxl] {
    padding: 16px 0;
}

.pagination-controls-bottom[b-gxmj8cqdxl] {
    border-top: 1px solid #e9ecef;
    margin-top: 20px;
}

.page-size-selector[b-gxmj8cqdxl] {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.page-size-selector label[b-gxmj8cqdxl] {
    margin-bottom: 0;
    font-weight: 500;
    color: #495057;
}

.page-size-selector select[b-gxmj8cqdxl] {
    min-width: 80px;
}

/* Pill Toggle */
.pill-toggle[b-gxmj8cqdxl] {
    display: inline-flex;
    background: #e9ecef;
    border-radius: 20px;
    padding: 2px;
    cursor: pointer;
}

.pill-toggle-option[b-gxmj8cqdxl] {
    padding: 8px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pill-toggle-option.active[b-gxmj8cqdxl] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.pill-toggle-option:not(.active)[b-gxmj8cqdxl] {
    color: #6c757d;
}

.filters-card[b-gxmj8cqdxl] {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.filters-header[b-gxmj8cqdxl] {
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.filters-title[b-gxmj8cqdxl] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.filters-body[b-gxmj8cqdxl] {
    padding: 24px;
}

/* Results Section */
.results-section[b-gxmj8cqdxl] {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.results-header[b-gxmj8cqdxl] {
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.results-title[b-gxmj8cqdxl] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.results-count[b-gxmj8cqdxl] {
    font-size: 1rem;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-label[b-gxmj8cqdxl] {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.form-control[b-gxmj8cqdxl],
.form-select[b-gxmj8cqdxl] {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 10px 14px;
    transition: all 0.3s ease;
}

.form-control:focus[b-gxmj8cqdxl],
.form-select:focus[b-gxmj8cqdxl] {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Modern Accordion */
.modern-accordion[b-gxmj8cqdxl] {
    padding: 0;
}

.modern-accordion-item[b-gxmj8cqdxl] {
    border: none;
    border-bottom: 1px solid #e9ecef;
}

.modern-accordion-item:last-child[b-gxmj8cqdxl] {
    border-bottom: none;
}

.modern-accordion-button[b-gxmj8cqdxl] {
    background: white;
    border: none;
    padding: 20px 24px;
    transition: all 0.3s ease;
}

.modern-accordion-button:not(.collapsed)[b-gxmj8cqdxl] {
    background: #f8f9fa;
    box-shadow: none;
}

.modern-accordion-button:hover[b-gxmj8cqdxl] {
    background: #f8f9fa;
}

.modern-accordion-button:focus[b-gxmj8cqdxl] {
    box-shadow: none;
    border-color: transparent;
}

.modern-accordion-button[b-gxmj8cqdxl]::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23667eea'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.reaction-time[b-gxmj8cqdxl] {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.reaction-badge[b-gxmj8cqdxl] {
    font-size: 1.2rem;
    padding: 6px 12px;
    border-radius: 20px;
    /* Remove badge highlight - display as plain text */
    background-color: transparent !important;
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .reaction-badge[b-gxmj8cqdxl] {
    color: var(--text-secondary) !important;
}

.reaction-question[b-gxmj8cqdxl] {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.5;
}

.reaction-meta[b-gxmj8cqdxl] {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: #6c757d;
}

.meta-item[b-gxmj8cqdxl] {
    display: flex;
    align-items: center;
}

.modern-accordion-body[b-gxmj8cqdxl] {
    padding: 24px;
    background: #f8f9fa;
}

.detail-row[b-gxmj8cqdxl] {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
}

.detail-row:last-child[b-gxmj8cqdxl] {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-row strong[b-gxmj8cqdxl] {
    display: block;
    color: #495057;
    font-weight: 600;
    margin-bottom: 8px;
}

.detail-row span[b-gxmj8cqdxl] {
    color: #6c757d;
}

.ai-response[b-gxmj8cqdxl] {
    margin-top: 8px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    line-height: 1.6;
}

/* Citations */
.citations-list[b-gxmj8cqdxl] {
    margin-top: 12px;
}

.citation-group[b-gxmj8cqdxl] {
    margin-bottom: 20px;
}

.citation-group:last-child[b-gxmj8cqdxl] {
    margin-bottom: 0;
}

.citation-group-title[b-gxmj8cqdxl] {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #dee2e6;
}

.citation-item[b-gxmj8cqdxl] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.citation-item:last-child[b-gxmj8cqdxl] {
    margin-bottom: 0;
}

.citation-link[b-gxmj8cqdxl] {
    text-decoration: none;
    color: inherit;
}

.citation-link:hover[b-gxmj8cqdxl] {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    transform: translateX(4px);
}

.citation-content[b-gxmj8cqdxl] {
    flex: 1;
}

.citation-id[b-gxmj8cqdxl] {
    color: #6c757d;
    font-size: 0.8rem;
}

.citation-name[b-gxmj8cqdxl] {
    color: #2c3e50;
    margin-top: 4px;
}

.citation-icon[b-gxmj8cqdxl] {
    color: #667eea;
    font-size: 0.9rem;
}

/* Pagination */
.pagination-wrapper[b-gxmj8cqdxl] {
    padding: 16px 0;
}

.pagination[b-gxmj8cqdxl] {
    margin-bottom: 0;
}

.page-link[b-gxmj8cqdxl] {
    border-radius: 8px;
    margin: 0 4px;
    border: 1px solid #dee2e6;
    color: #667eea;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-link:hover[b-gxmj8cqdxl] {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
}

/* ===== Dark Mode Support for Admin Pages ===== */
[data-theme="dark"] .dashboard-container[b-gxmj8cqdxl] {
    background: var(--primary-bg);
}

[data-theme="dark"] .vertical-menu[b-gxmj8cqdxl] {
    background: var(--surface-bg);
    border-right-color: var(--border-color);
}

[data-theme="dark"] .menu-item[b-gxmj8cqdxl] {
    color: var(--text-secondary);
}

[data-theme="dark"] .menu-item:hover[b-gxmj8cqdxl] {
    background: var(--secondary-bg);
    color: var(--text-primary);
}

[data-theme="dark"] .menu-item.active[b-gxmj8cqdxl] {
    background: linear-gradient(90deg, rgba(129, 140, 248, 0.15) 0%, rgba(167, 139, 250, 0.08) 100%);
    border-left-color: var(--accent-primary);
    color: var(--accent-primary);
}

[data-theme="dark"] .menu-item.active i[b-gxmj8cqdxl] {
    color: var(--accent-primary);
}

[data-theme="dark"] .section-title[b-gxmj8cqdxl] {
    color: var(--text-primary);
    border-bottom-color: var(--accent-primary);
}

[data-theme="dark"] .search-section[b-gxmj8cqdxl],
[data-theme="dark"] .results-section[b-gxmj8cqdxl],
[data-theme="dark"] .chart-card[b-gxmj8cqdxl] {
    background: var(--surface-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .admin-header[b-gxmj8cqdxl] {
    background-color: var(--surface-bg);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .header-title[b-gxmj8cqdxl] {
    color: var(--text-primary);
}

[data-theme="dark"] .chart-card:hover[b-gxmj8cqdxl] {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .chart-card-header[b-gxmj8cqdxl] {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .chart-title[b-gxmj8cqdxl] {
    color: var(--text-primary);
}

[data-theme="dark"] .chart-date-range[b-gxmj8cqdxl],
[data-theme="dark"] .loading-text[b-gxmj8cqdxl] {
    color: var(--text-secondary);
}

[data-theme="dark"] .results-filters-section[b-gxmj8cqdxl] {
    background: var(--secondary-bg);
}

[data-theme="dark"] .filter-section-title[b-gxmj8cqdxl] {
    color: var(--text-primary);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .form-control[b-gxmj8cqdxl],
[data-theme="dark"] .form-select[b-gxmj8cqdxl] {
    background-color: var(--primary-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .form-control:focus[b-gxmj8cqdxl],
[data-theme="dark"] .form-select:focus[b-gxmj8cqdxl] {
    background-color: var(--primary-bg);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(129, 140, 248, 0.25);
}

[data-theme="dark"] .form-label[b-gxmj8cqdxl] {
    color: var(--text-primary);
}

[data-theme="dark"] .search-icon[b-gxmj8cqdxl],
[data-theme="dark"] .search-clear-btn[b-gxmj8cqdxl] {
    color: var(--text-secondary);
}

[data-theme="dark"] .search-clear-btn:hover[b-gxmj8cqdxl] {
    color: #f87171;
}

[data-theme="dark"] .table[b-gxmj8cqdxl] {
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .table thead th[b-gxmj8cqdxl] {
    background-color: var(--secondary-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .table tbody td[b-gxmj8cqdxl] {
    border-color: var(--border-color);
}

[data-theme="dark"] .table tbody tr:hover[b-gxmj8cqdxl] {
    background-color: var(--secondary-bg);
}

[data-theme="dark"] .response-content[b-gxmj8cqdxl] {
    color: var(--text-primary);
}

[data-theme="dark"] .response-metadata[b-gxmj8cqdxl] {
    color: var(--text-secondary);
}

[data-theme="dark"] .citation-icon[b-gxmj8cqdxl] {
    color: var(--accent-primary);
}

[data-theme="dark"] .no-results h5[b-gxmj8cqdxl],
[data-theme="dark"] .no-results p[b-gxmj8cqdxl] {
    color: var(--text-secondary);
}

[data-theme="dark"] .badge[b-gxmj8cqdxl] {
    background-color: var(--secondary-bg);
    color: var(--text-primary);
}

[data-theme="dark"] .page-link[b-gxmj8cqdxl] {
    background-color: var(--surface-bg);
    border-color: var(--border-color);
    color: var(--accent-primary);
}

[data-theme="dark"] .page-link:hover[b-gxmj8cqdxl] {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

[data-theme="dark"] .page-item.active .page-link[b-gxmj8cqdxl] {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

[data-theme="dark"] .page-item.disabled .page-link[b-gxmj8cqdxl] {
    background-color: var(--secondary-bg);
    border-color: var(--border-color);
    color: var(--text-muted);
}

[data-theme="dark"] .pagination-controls-bottom[b-gxmj8cqdxl] {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .section-divider[b-gxmj8cqdxl] {
    border-color: var(--border-color);
}

[data-theme="dark"] .dashboard-title[b-gxmj8cqdxl] {
    color: var(--text-primary);
}

/* ===== Accordion Dark Mode ===== */
[data-theme="dark"] .modern-accordion-item[b-gxmj8cqdxl] {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .modern-accordion-button[b-gxmj8cqdxl] {
    background: var(--surface-bg);
    color: var(--text-primary);
}

[data-theme="dark"] .modern-accordion-button:not(.collapsed)[b-gxmj8cqdxl] {
    background: var(--secondary-bg);
}

[data-theme="dark"] .modern-accordion-button:hover[b-gxmj8cqdxl] {
    background: var(--secondary-bg);
}

[data-theme="dark"] .modern-accordion-button[b-gxmj8cqdxl]::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23818cf8'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

[data-theme="dark"] .modern-accordion-body[b-gxmj8cqdxl] {
    background: var(--primary-bg);
}

[data-theme="dark"] .reaction-time[b-gxmj8cqdxl],
[data-theme="dark"] .reaction-meta[b-gxmj8cqdxl] {
    color: var(--text-secondary);
}

[data-theme="dark"] .reaction-question[b-gxmj8cqdxl] {
    color: var(--text-primary);
}

/* ===== Detail Rows Dark Mode ===== */
[data-theme="dark"] .detail-row[b-gxmj8cqdxl] {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .detail-row strong[b-gxmj8cqdxl] {
    color: var(--text-primary);
}

[data-theme="dark"] .detail-row span[b-gxmj8cqdxl] {
    color: var(--text-secondary);
}

[data-theme="dark"] .ai-response[b-gxmj8cqdxl] {
    background: var(--surface-bg);
    border-left-color: var(--accent-primary);
    color: var(--text-primary);
}

/* ===== Citations Dark Mode ===== */
[data-theme="dark"] .citation-group-title[b-gxmj8cqdxl] {
    color: var(--text-primary);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .citation-item[b-gxmj8cqdxl] {
    background: var(--surface-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .citation-link:hover[b-gxmj8cqdxl] {
    border-color: var(--accent-primary);
    box-shadow: 0 2px 8px rgba(129, 140, 248, 0.25);
}

[data-theme="dark"] .citation-id[b-gxmj8cqdxl] {
    color: var(--text-secondary);
}

[data-theme="dark"] .citation-name[b-gxmj8cqdxl] {
    color: var(--text-primary);
}

/* ===== Pill Toggle Dark Mode ===== */
[data-theme="dark"] .pill-toggle[b-gxmj8cqdxl] {
    background: var(--secondary-bg);
}

[data-theme="dark"] .pill-toggle-option:not(.active)[b-gxmj8cqdxl] {
    color: var(--text-secondary);
}

/* ===== Filters Card Dark Mode ===== */
[data-theme="dark"] .filters-card[b-gxmj8cqdxl] {
    background: var(--surface-bg);
}

[data-theme="dark"] .filters-body[b-gxmj8cqdxl] {
    background: var(--surface-bg);
}

/* ===== Text Muted Elements ===== */
[data-theme="dark"] .text-muted[b-gxmj8cqdxl] {
    color: var(--text-muted) !important;
}

/* ===== Spinners Dark Mode ===== */
[data-theme="dark"] .spinner-border[b-gxmj8cqdxl] {
    color: var(--accent-primary);
}

[data-theme="dark"] .modern-spinner[b-gxmj8cqdxl] {
    border-color: var(--border-color);
    border-top-color: var(--accent-primary);
}

/* ===== Badges in Dark Mode ===== */
/* Remove badge styling - display as plain text matching other detail row text */
.badge.bg-success[b-gxmj8cqdxl],
.badge.bg-danger[b-gxmj8cqdxl],
.badge.bg-warning[b-gxmj8cqdxl],
.badge.bg-secondary[b-gxmj8cqdxl] {
    background-color: transparent !important;
    color: var(--text-secondary) !important;
    padding: 0;
    font-size: inherit;
    font-weight: normal;
}

[data-theme="dark"] .badge.bg-success[b-gxmj8cqdxl],
[data-theme="dark"] .badge.bg-danger[b-gxmj8cqdxl],
[data-theme="dark"] .badge.bg-warning[b-gxmj8cqdxl],
[data-theme="dark"] .badge.bg-secondary[b-gxmj8cqdxl] {
    background-color: transparent !important;
    color: var(--text-secondary) !important;
}

/* ===== AI Response Content Formatting ===== */
[data-theme="dark"] .ai-response p[b-gxmj8cqdxl] {
    color: var(--text-primary);
}

[data-theme="dark"] .ai-response code[b-gxmj8cqdxl] {
    background: var(--secondary-bg);
    color: var(--accent-primary);
    padding: 2px 6px;
    border-radius: 4px;
}

[data-theme="dark"] .ai-response pre[b-gxmj8cqdxl] {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px;
    border-radius: 6px;
}

[data-theme="dark"] .ai-response a[b-gxmj8cqdxl] {
    color: var(--accent-primary);
}

[data-theme="dark"] .ai-response a:hover[b-gxmj8cqdxl] {
    color: var(--accent-hover);
}

.page-item.active .page-link[b-gxmj8cqdxl] {
    background-color: #667eea;
    border-color: #667eea;
}

.page-item.disabled .page-link[b-gxmj8cqdxl] {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
}

/* No Results */
.no-results[b-gxmj8cqdxl] {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-results i[b-gxmj8cqdxl] {
    color: #dee2e6;
}

.no-results h5[b-gxmj8cqdxl] {
    margin-top: 20px;
    color: #495057;
}

/* ===== Summary Statistics Cards ===== */
.stat-card[b-gxmj8cqdxl] {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover[b-gxmj8cqdxl] {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.stat-icon[b-gxmj8cqdxl] {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.stat-content[b-gxmj8cqdxl] {
    flex: 1;
}

.stat-value[b-gxmj8cqdxl] {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
}

.stat-label[b-gxmj8cqdxl] {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 4px 0 0 0;
    font-weight: 500;
}

[data-theme="dark"] .stat-card[b-gxmj8cqdxl] {
    background: var(--surface-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .stat-card:hover[b-gxmj8cqdxl] {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .stat-value[b-gxmj8cqdxl] {
    color: var(--text-primary);
}

[data-theme="dark"] .stat-label[b-gxmj8cqdxl] {
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 992px) {
.dashboard-container[b-gxmj8cqdxl] {
    height: 100vh;
}

.admin-content[b-gxmj8cqdxl] {
    flex-direction: column;
    overflow: hidden;
    flex: 1;
}

.vertical-menu[b-gxmj8cqdxl] {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 12px;
    border-right: none;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.content-area[b-gxmj8cqdxl] {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
}

    .menu-item[b-gxmj8cqdxl] {
        flex-direction: column;
        gap: 6px;
        padding: 12px 20px;
        min-width: 120px;
        text-align: center;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .menu-item.active[b-gxmj8cqdxl] {
        border-left-color: transparent;
        border-bottom-color: #667eea;
    }

    .menu-item span[b-gxmj8cqdxl] {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .dashboard-title[b-gxmj8cqdxl] {
        font-size: 1.5rem;
    }

    .chart-card-header[b-gxmj8cqdxl] {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .results-header[b-gxmj8cqdxl],
    .data-panel-header[b-gxmj8cqdxl] {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .reaction-meta[b-gxmj8cqdxl] {
        flex-direction: column;
        gap: 8px;
    }

    .modern-accordion-button[b-gxmj8cqdxl] {
        padding: 16px;
    }

    .modern-accordion-body[b-gxmj8cqdxl] {
        padding: 16px;
    }

    .pagination-controls-top[b-gxmj8cqdxl] {
        flex-direction: column;
        align-items: stretch !important;
    }

    .page-size-selector[b-gxmj8cqdxl] {
        margin-bottom: 16px;
        justify-content: center;
    }

    .pagination-wrapper[b-gxmj8cqdxl] {
        width: 100%;
    }

    .pagination[b-gxmj8cqdxl] {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ===== C3.js Chart Dark Mode Support ===== */
/* Chart axis text (tick labels) */
[data-theme="dark"] .c3-axis text[b-gxmj8cqdxl],
[data-theme="dark"] .c3-axis-x text[b-gxmj8cqdxl],
[data-theme="dark"] .c3-axis-y text[b-gxmj8cqdxl],
[data-theme="dark"] .c3-axis-x-label[b-gxmj8cqdxl],
[data-theme="dark"] .c3-axis-y-label[b-gxmj8cqdxl] {
    fill: var(--text-primary) !important;
}

/* Chart legend text */
[data-theme="dark"] .c3-legend-item text[b-gxmj8cqdxl] {
    fill: var(--text-primary) !important;
}

/* Chart axis lines */
[data-theme="dark"] .c3-axis path[b-gxmj8cqdxl],
[data-theme="dark"] .c3-axis line[b-gxmj8cqdxl] {
    stroke: var(--border-color) !important;
}

/* Chart grid lines */
[data-theme="dark"] .c3-grid line[b-gxmj8cqdxl] {
    stroke: var(--border-color) !important;
}

/* Chart tooltip */
[data-theme="dark"] .c3-tooltip[b-gxmj8cqdxl] {
    background-color: var(--surface-bg) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .c3-tooltip th[b-gxmj8cqdxl] {
    background-color: var(--secondary-bg) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .c3-tooltip td[b-gxmj8cqdxl] {
    background-color: var(--surface-bg) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .c3-tooltip td.name[b-gxmj8cqdxl] {
    color: var(--text-primary) !important;
}

/* Pie chart labels */
[data-theme="dark"] .c3-chart-arc text[b-gxmj8cqdxl] {
    fill: var(--text-primary) !important;
}

/* ===== Company Modal Dark Mode Support ===== */
[data-theme="dark"] .company-modal[b-gxmj8cqdxl] {
    background-color: var(--surface-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .company-modal-header[b-gxmj8cqdxl] {
    background-color: var(--secondary-bg);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .company-modal-header h4[b-gxmj8cqdxl] {
    color: var(--text-primary);
}

[data-theme="dark"] .modal-close-btn[b-gxmj8cqdxl] {
    color: var(--text-secondary);
}

[data-theme="dark"] .modal-close-btn:hover[b-gxmj8cqdxl] {
    background-color: var(--primary-bg);
    color: var(--text-primary);
}

[data-theme="dark"] .company-table[b-gxmj8cqdxl] {
    color: var(--text-primary);
}

[data-theme="dark"] .company-table thead[b-gxmj8cqdxl] {
    background-color: var(--secondary-bg);
}

[data-theme="dark"] .company-table th[b-gxmj8cqdxl] {
    color: var(--text-primary);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .company-table td[b-gxmj8cqdxl] {
    border-color: var(--border-color);
}

[data-theme="dark"] .company-table tbody tr:hover[b-gxmj8cqdxl] {
    background-color: var(--secondary-bg);
}

/* Table striping for dark mode */
[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd)[b-gxmj8cqdxl] {
    background-color: var(--primary-bg);
}

/* ===== View Table Button Dark Mode ===== */
[data-theme="dark"] .btn-view-table[b-gxmj8cqdxl] {
    background-color: var(--secondary-bg);
    color: var(--text-secondary);
}

[data-theme="dark"] .btn-view-table:hover[b-gxmj8cqdxl] {
    background-color: var(--accent-primary);
    color: white;
}

/* ===== Settings Cards ===== */
.settings-card[b-gxmj8cqdxl] {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.settings-card-header[b-gxmj8cqdxl] {
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.settings-card-title[b-gxmj8cqdxl] {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.settings-card-body[b-gxmj8cqdxl] {
    padding: 0;
}

.settings-row[b-gxmj8cqdxl] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e9ecef;
}

.settings-row:last-child[b-gxmj8cqdxl] {
    border-bottom: none;
}

.settings-label[b-gxmj8cqdxl] {
    font-weight: 500;
    color: #495057;
    font-size: 0.95rem;
}

.settings-value[b-gxmj8cqdxl] {
    font-size: 0.95rem;
}

.settings-value code[b-gxmj8cqdxl] {
    background-color: #f8f9fa;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #495057;
    border: 1px solid #e9ecef;
}

.index-badge[b-gxmj8cqdxl] {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.index-badge.blue[b-gxmj8cqdxl] {
    background-color: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.index-badge.green[b-gxmj8cqdxl] {
    background-color: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.index-badge.unknown[b-gxmj8cqdxl] {
    background-color: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
}

.model-badge[b-gxmj8cqdxl] {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    background-color: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.version-badge[b-gxmj8cqdxl] {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e9ecef;
}

/* Settings Cards Dark Mode */
[data-theme="dark"] .settings-card[b-gxmj8cqdxl] {
    background: var(--surface-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .settings-row[b-gxmj8cqdxl] {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .settings-label[b-gxmj8cqdxl] {
    color: var(--text-primary);
}

[data-theme="dark"] .settings-value code[b-gxmj8cqdxl] {
    background-color: var(--primary-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .index-badge.blue[b-gxmj8cqdxl] {
    background-color: rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .index-badge.green[b-gxmj8cqdxl] {
    background-color: rgba(34, 197, 94, 0.25);
}

[data-theme="dark"] .model-badge[b-gxmj8cqdxl] {
    background-color: rgba(139, 92, 246, 0.25);
}

[data-theme="dark"] .version-badge[b-gxmj8cqdxl] {
    background-color: var(--primary-bg);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

/* Export Modal Dark Mode Support */
[data-theme="dark"] .modal-content[b-gxmj8cqdxl] {
    background-color: var(--surface-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .modal-header[b-gxmj8cqdxl] {
    background-color: var(--secondary-bg);
    border-bottom-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .modal-title[b-gxmj8cqdxl] {
    color: var(--text-primary);
}

[data-theme="dark"] .modal-body[b-gxmj8cqdxl] {
    background-color: var(--surface-bg);
}

[data-theme="dark"] .btn-close[b-gxmj8cqdxl] {
    filter: invert(1) grayscale(100%) brightness(200%);
}

[data-theme="dark"] .table[b-gxmj8cqdxl] {
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .table thead[b-gxmj8cqdxl] {
    background-color: var(--secondary-bg);
    color: var(--text-primary);
}

[data-theme="dark"] .table-light[b-gxmj8cqdxl] {
    background-color: var(--secondary-bg) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] .table-bordered[b-gxmj8cqdxl] {
    border-color: var(--border-color);
}

[data-theme="dark"] .table-bordered th[b-gxmj8cqdxl],
[data-theme="dark"] .table-bordered td[b-gxmj8cqdxl] {
    border-color: var(--border-color);
}

[data-theme="dark"] .table-hover tbody tr:hover[b-gxmj8cqdxl] {
    background-color: var(--primary-bg);
}

[data-theme="dark"] .alert-info[b-gxmj8cqdxl] {
    background-color: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .alert-warning[b-gxmj8cqdxl] {
    background-color: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

[data-theme="dark"] .btn-outline-secondary[b-gxmj8cqdxl] {
    color: var(--text-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .btn-outline-secondary:hover:not(:disabled)[b-gxmj8cqdxl] {
    background-color: var(--secondary-bg);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

[data-theme="dark"] .btn-outline-secondary:disabled[b-gxmj8cqdxl] {
    color: var(--text-muted);
    border-color: var(--border-color);
    opacity: 0.5;
}

/* Modern Export Modal Styles */
.export-modal-modern[b-gxmj8cqdxl] {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.export-modal-modern .modal-header[b-gxmj8cqdxl] {
    padding: 1.5rem 2rem;
}

.export-modal-modern .modal-body[b-gxmj8cqdxl] {
    padding: 0 2rem 2rem 2rem;
}

.export-icon-wrapper[b-gxmj8cqdxl] {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.btn-modern[b-gxmj8cqdxl] {
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-modern:hover:not(:disabled)[b-gxmj8cqdxl] {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-modern:disabled[b-gxmj8cqdxl] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modern Info Card */
.export-info-card[b-gxmj8cqdxl] {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #3b82f6;
}

.export-info-card.warning[b-gxmj8cqdxl] {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-left-color: #f59e0b;
}

.export-info-card .info-icon[b-gxmj8cqdxl] {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    font-size: 1rem;
    flex-shrink: 0;
}

.export-info-card .info-icon.warning[b-gxmj8cqdxl] {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.export-info-card p[b-gxmj8cqdxl] {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
}

/* Modern Table Styles */
.table-modern-wrapper[b-gxmj8cqdxl] {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.table-modern[b-gxmj8cqdxl] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    margin: 0;
}

.table-modern thead[b-gxmj8cqdxl] {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

.table-modern thead th[b-gxmj8cqdxl] {
    padding: 1rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

.table-modern tbody tr[b-gxmj8cqdxl] {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.15s ease;
}

.table-modern tbody tr:hover[b-gxmj8cqdxl] {
    background-color: #f9fafb;
}

.table-modern tbody tr:last-child[b-gxmj8cqdxl] {
    border-bottom: none;
}

.table-modern tbody td[b-gxmj8cqdxl] {
    padding: 1rem 1rem;
    color: #1f2937;
    vertical-align: middle;
}

.table-modern .cell-truncate[b-gxmj8cqdxl] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-modern .badge-id[b-gxmj8cqdxl] {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
    color: #5b21b6;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.8125rem;
}

.table-modern .citation-link[b-gxmj8cqdxl] {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.table-modern .citation-link:hover[b-gxmj8cqdxl] {
    color: #2563eb;
    text-decoration: underline;
}

/* Modern Pagination */
.pagination-modern[b-gxmj8cqdxl] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
}

.pagination-btn[b-gxmj8cqdxl] {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.pagination-btn:hover:not(:disabled)[b-gxmj8cqdxl] {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-1px);
}

.pagination-btn:disabled[b-gxmj8cqdxl] {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f9fafb;
}

.pagination-info[b-gxmj8cqdxl] {
    padding: 0 1rem;
    font-size: 0.9375rem;
    color: #6b7280;
}

.pagination-info strong[b-gxmj8cqdxl] {
    color: #1f2937;
    font-weight: 600;
}

/* Dark Theme Support for Modern Modal */
[data-theme="dark"] .export-modal-modern[b-gxmj8cqdxl] {
    background-color: var(--surface-bg);
    color: var(--text-primary);
}

[data-theme="dark"] .export-icon-wrapper[b-gxmj8cqdxl] {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

[data-theme="dark"] .export-info-card[b-gxmj8cqdxl] {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.1) 100%);
    border-left-color: #3b82f6;
}

[data-theme="dark"] .export-info-card.warning[b-gxmj8cqdxl] {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%);
    border-left-color: #f59e0b;
}

[data-theme="dark"] .export-info-card p[b-gxmj8cqdxl] {
    color: var(--text-secondary);
}

[data-theme="dark"] .table-modern-wrapper[b-gxmj8cqdxl] {
    border-color: var(--border-color);
}

[data-theme="dark"] .table-modern thead[b-gxmj8cqdxl] {
    background: var(--secondary-bg);
}

[data-theme="dark"] .table-modern thead th[b-gxmj8cqdxl] {
    color: var(--text-primary);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .table-modern tbody tr[b-gxmj8cqdxl] {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .table-modern tbody tr:hover[b-gxmj8cqdxl] {
    background-color: var(--primary-bg);
}

[data-theme="dark"] .table-modern tbody td[b-gxmj8cqdxl] {
    color: var(--text-primary);
}

[data-theme="dark"] .table-modern .badge-id[b-gxmj8cqdxl] {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(124, 58, 237, 0.15) 100%);
    color: #a78bfa;
}

[data-theme="dark"] .table-modern .citation-link[b-gxmj8cqdxl] {
    color: #60a5fa;
}

[data-theme="dark"] .table-modern .citation-link:hover[b-gxmj8cqdxl] {
    color: #93c5fd;
}

[data-theme="dark"] .pagination-btn[b-gxmj8cqdxl] {
    background: var(--secondary-bg);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] .pagination-btn:hover:not(:disabled)[b-gxmj8cqdxl] {
    border-color: #3b82f6;
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .pagination-btn:disabled[b-gxmj8cqdxl] {
    background: var(--primary-bg);
}

[data-theme="dark"] .pagination-info[b-gxmj8cqdxl] {
    color: var(--text-secondary);
}

[data-theme="dark"] .pagination-info strong[b-gxmj8cqdxl] {
    color: var(--text-primary);
}

/* ===== KB Gaps Tab ===== */

.kb-gaps-header[b-gxmj8cqdxl] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.section-subtitle[b-gxmj8cqdxl] {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 0.35rem;
    max-width: 680px;
    line-height: 1.55;
}

/* Refresh button */
.refresh-btn[b-gxmj8cqdxl] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background-color 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.refresh-btn:hover:not(:disabled)[b-gxmj8cqdxl] {
    border-color: #6366f1;
    color: #6366f1;
    background-color: rgba(99, 102, 241, 0.04);
}

.refresh-btn:disabled[b-gxmj8cqdxl] {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Toolbar: search + filters */
.kb-gaps-toolbar[b-gxmj8cqdxl] {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.kb-gaps-search-wrap[b-gxmj8cqdxl] {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.kb-gaps-search-icon[b-gxmj8cqdxl] {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.8rem;
    pointer-events: none;
}

.kb-gaps-search[b-gxmj8cqdxl] {
    width: 100%;
    padding: 0.5rem 2.25rem 0.5rem 2.1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.kb-gaps-search:focus[b-gxmj8cqdxl] {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.kb-gaps-clear-btn[b-gxmj8cqdxl] {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.2rem;
    font-size: 0.75rem;
    line-height: 1;
    transition: color 0.15s;
}

.kb-gaps-clear-btn:hover[b-gxmj8cqdxl] {
    color: #6b7280;
}

.kb-gaps-select[b-gxmj8cqdxl] {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: inherit;
    color: #374151;
    background: #fff;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s;
    min-width: 150px;
}

.kb-gaps-select:focus[b-gxmj8cqdxl] {
    border-color: #6366f1;
}

/* Meta line */
.kb-gaps-meta[b-gxmj8cqdxl] {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kb-gaps-meta-sep[b-gxmj8cqdxl] {
    color: #d1d5db;
}

/* Empty / loading state */
.kb-gaps-empty[b-gxmj8cqdxl] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    padding: 4rem 1rem;
    text-align: center;
    color: #9ca3af;
}

.kb-gaps-empty-icon[b-gxmj8cqdxl] {
    font-size: 2.5rem;
    opacity: 0.6;
}

/* Card grid */
.kb-gap-cards[b-gxmj8cqdxl] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1rem;
}

.kb-gap-card[b-gxmj8cqdxl] {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem 1.375rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.kb-gap-card:hover[b-gxmj8cqdxl] {
    border-color: #c7d2fe;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.08);
}

/* Card header: badge + date */
.kb-gap-card-top[b-gxmj8cqdxl] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.kb-gap-date[b-gxmj8cqdxl] {
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
}

/* Reason badge */
.kb-gap-reason-badge[b-gxmj8cqdxl] {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.kb-gap-reason-badge.no-citations[b-gxmj8cqdxl] {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.kb-gap-reason-badge.thumbs-down[b-gxmj8cqdxl] {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.kb-gap-reason-badge.low-score[b-gxmj8cqdxl] {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

/* Question text */
.kb-gap-question[b-gxmj8cqdxl] {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #111827;
    line-height: 1.55;
    margin: 0 0 0.35rem;
    word-break: break-word;
}

.kb-gap-expand-btn[b-gxmj8cqdxl] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6366f1;
    cursor: pointer;
}

.kb-gap-expand-btn:hover[b-gxmj8cqdxl] {
    text-decoration: underline;
}

.kb-gap-expand-btn i[b-gxmj8cqdxl] {
    font-size: 0.65rem;
}

/* Meta chips row */
.kb-gap-meta-row[b-gxmj8cqdxl] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.kb-gap-chip[b-gxmj8cqdxl] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    background: #f3f4f6;
    border-radius: 999px;
    font-size: 0.75rem;
    color: #6b7280;
}

.kb-gap-chip i[b-gxmj8cqdxl] {
    font-size: 0.65rem;
    opacity: 0.7;
}

/* Dark theme */
[data-theme="dark"] .kb-gaps-search[b-gxmj8cqdxl],
[data-theme="dark"] .kb-gaps-select[b-gxmj8cqdxl] {
    background: var(--surface-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .kb-gaps-search:focus[b-gxmj8cqdxl],
[data-theme="dark"] .kb-gaps-select:focus[b-gxmj8cqdxl] {
    border-color: var(--accent-primary);
}

[data-theme="dark"] .kb-gap-card[b-gxmj8cqdxl] {
    background: var(--surface-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .kb-gap-card:hover[b-gxmj8cqdxl] {
    border-color: var(--accent-primary);
}

[data-theme="dark"] .kb-gap-question[b-gxmj8cqdxl] {
    color: var(--text-primary);
}

[data-theme="dark"] .kb-gap-expand-btn[b-gxmj8cqdxl] {
    color: #818cf8;
}

[data-theme="dark"] .kb-gap-chip[b-gxmj8cqdxl] {
    background: rgba(255,255,255,0.06);
    color: var(--text-secondary);
}

[data-theme="dark"] .section-subtitle[b-gxmj8cqdxl] {
    color: var(--text-secondary);
}

@media (max-width: 640px) {
    .kb-gap-cards[b-gxmj8cqdxl] {
        grid-template-columns: 1fr;
    }

    .kb-gaps-toolbar[b-gxmj8cqdxl] {
        flex-direction: column;
        align-items: stretch;
    }

    .kb-gaps-select[b-gxmj8cqdxl] {
        min-width: unset;
    }
}

/* KB Gaps — pagination bar */
.kb-gaps-pagination[b-gxmj8cqdxl] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.kb-gaps-page-info[b-gxmj8cqdxl] {
    font-size: 0.8125rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.kb-gaps-page-btns[b-gxmj8cqdxl] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.kb-page-btn[b-gxmj8cqdxl] {
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-family: inherit;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.kb-page-btn:hover:not(:disabled):not(.kb-page-active)[b-gxmj8cqdxl] {
    border-color: #6366f1;
    color: #6366f1;
    background-color: rgba(99, 102, 241, 0.05);
}

.kb-page-btn:disabled[b-gxmj8cqdxl] {
    opacity: 0.35;
    cursor: not-allowed;
}

.kb-page-btn.kb-page-active[b-gxmj8cqdxl] {
    background-color: #6366f1;
    border-color: #6366f1;
    color: #fff;
    font-weight: 600;
    cursor: default;
}

[data-theme="dark"] .kb-gaps-pagination[b-gxmj8cqdxl] {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .kb-page-btn[b-gxmj8cqdxl] {
    border-color: var(--border-color);
    color: var(--text-secondary);
    background: transparent;
}

[data-theme="dark"] .kb-page-btn:hover:not(:disabled):not(.kb-page-active)[b-gxmj8cqdxl] {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}
/* /Chat/ChatPage.razor.rz.scp.css */
/* ===== Chat Container Layout ===== */
.chat-container[b-4yl06rhkez] {
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-template-columns: 1fr;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    background-color: var(--primary-bg);
    position: relative;
}

/* ===== Header ===== */
.chat-header[b-4yl06rhkez] {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.5rem;
    background-color: var(--surface-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    z-index: 100;
    position: relative;
    overflow: visible;
}

.header-brand[b-4yl06rhkez] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.header-brand:hover[b-4yl06rhkez] {
    opacity: 0.8;
}

.header-logo[b-4yl06rhkez] {
    width: 36px;
    height: 36px;
}

.header-title[b-4yl06rhkez] {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.header-controls[b-4yl06rhkez] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: static;
}

/* History Icon Button */
.history-icon-btn[b-4yl06rhkez] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--surface-bg);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 150ms ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    color: var(--accent-primary);
    font-size: 16px;
}

.history-icon-btn:hover[b-4yl06rhkez] {
    background-color: var(--secondary-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.history-icon-btn:active[b-4yl06rhkez] {
    transform: translateY(0);
}

/* Dropdowns */
.category-dropdown[b-4yl06rhkez],
.model-dropdown[b-4yl06rhkez] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 10px 40px 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    background-color: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 150ms ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%236366f1' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    min-width: 140px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.category-dropdown:hover[b-4yl06rhkez],
.model-dropdown:hover[b-4yl06rhkez] {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.category-dropdown:focus[b-4yl06rhkez],
.model-dropdown:focus[b-4yl06rhkez] {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* History Panel */
.history-panel[b-4yl06rhkez] {
    position: fixed;
    top: 0;
    left: -380px;
    width: 380px;
    height: 100vh;
    background-color: var(--surface-bg);
    border-right: 1px solid var(--border-color);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: left 300ms ease;
    display: flex;
    flex-direction: column;
}

.history-panel.open[b-4yl06rhkez] {
    left: 0;
}

.history-panel-header[b-4yl06rhkez] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--surface-bg);
}

.history-panel-header h3[b-4yl06rhkez] {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.close-panel-btn[b-4yl06rhkez] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 150ms ease;
}

.close-panel-btn:hover[b-4yl06rhkez] {
    background-color: var(--secondary-bg);
    color: var(--text-primary);
}

.history-panel-content[b-4yl06rhkez] {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

/* History Loading State */
.history-loading[b-4yl06rhkez] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    gap: 0.75rem;
    color: var(--text-muted);
}

.history-loading i[b-4yl06rhkez] {
    font-size: 2rem;
}

.history-loading p[b-4yl06rhkez] {
    font-size: 0.9375rem;
    margin: 0;
}

/* History Empty State */
.history-empty[b-4yl06rhkez] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    gap: 0.75rem;
    color: var(--text-muted);
}

.history-empty i[b-4yl06rhkez] {
    font-size: 3rem;
    opacity: 0.4;
}

.history-empty p[b-4yl06rhkez] {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    color: var(--text-secondary);
}

.history-empty-subtitle[b-4yl06rhkez] {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* History List */
.history-list[b-4yl06rhkez] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.history-item[b-4yl06rhkez] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-fast);
    color: var(--text-primary);
}

.history-item:hover[b-4yl06rhkez] {
    background-color: var(--secondary-bg);
    border-color: var(--border-color);
}

.history-item.active[b-4yl06rhkez] {
    background-color: var(--accent-bg, rgba(99, 102, 241, 0.1));
    border-color: var(--accent-primary, #6366f1);
}

.history-item-header[b-4yl06rhkez] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.history-item-title[b-4yl06rhkez] {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.history-item-date[b-4yl06rhkez] {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.history-item-meta[b-4yl06rhkez] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.history-item-category[b-4yl06rhkez],
.history-item-count[b-4yl06rhkez] {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.history-item-category i[b-4yl06rhkez],
.history-item-count i[b-4yl06rhkez] {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* History Show More Button */
.history-show-more[b-4yl06rhkez] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1rem;
    margin-top: 0.5rem;
    background-color: transparent;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.history-show-more:hover:not(:disabled)[b-4yl06rhkez] {
    background-color: var(--secondary-bg);
    border-color: var(--accent-primary, #6366f1);
    color: var(--accent-primary, #6366f1);
}

.history-show-more:disabled[b-4yl06rhkez] {
    cursor: not-allowed;
    opacity: 0.6;
}

.history-show-more i[b-4yl06rhkez] {
    font-size: 0.875rem;
}

/* History Panel Backdrop */
.history-panel-backdrop[b-4yl06rhkez] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 99;
    animation: fadeIn-b-4yl06rhkez 200ms ease;
}

@keyframes fadeIn-b-4yl06rhkez {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== Main Chat Area ===== */
.chat-main[b-4yl06rhkez] {
    grid-column: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

/* Welcome State */
.welcome-state[b-4yl06rhkez] {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    animation: fadeIn-b-4yl06rhkez 0.5s ease-out;
}

.welcome-logo[b-4yl06rhkez] {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.welcome-title[b-4yl06rhkez] {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.welcome-subtitle[b-4yl06rhkez] {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0;
}

.category-highlight[b-4yl06rhkez] {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Chat Messages */
.chat-messages[b-4yl06rhkez] {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Message Bubbles */
.message[b-4yl06rhkez] {
    display: flex;
    flex-direction: column;
    animation: fadeIn-b-4yl06rhkez 0.3s ease-out;
}

.message-user[b-4yl06rhkez] {
    align-items: flex-end;
}

.message-assistant[b-4yl06rhkez] {
    align-items: flex-start;
}

.message-bubble[b-4yl06rhkez] {
    max-width: 85%;
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    word-wrap: break-word;
}

.message-user .message-bubble[b-4yl06rhkez] {
    background-color: var(--user-bubble-bg);
    color: var(--user-bubble-text);
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-sm) var(--radius-lg);
}

.message-assistant .message-bubble[b-4yl06rhkez] {
    background-color: var(--ai-bubble-bg);
    border: 1px solid var(--ai-bubble-border);
    border-radius: var(--radius-sm) var(--radius-lg) var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* Message Content */
.message-bubble p[b-4yl06rhkez] {
    margin: 0.5rem 0;
}

.message-bubble p:first-child[b-4yl06rhkez] {
    margin-top: 0;
}

.message-bubble p:last-child[b-4yl06rhkez] {
    margin-bottom: 0;
}

.message-bubble pre[b-4yl06rhkez] {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 1rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.875rem;
    margin: 1rem 0;
    border: none;
}

.message-bubble code[b-4yl06rhkez] {
    background-color: var(--secondary-bg);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.875em;
}

.message-bubble pre code[b-4yl06rhkez] {
    background: none;
    padding: 0;
}

/* Citation Link in Messages */
.citation-link[b-4yl06rhkez] {
    color: var(--accent-primary);
    font-weight: 600;
    text-decoration: none;
    padding: 0 0.125rem;
}

.citation-link:hover[b-4yl06rhkez] {
    text-decoration: underline;
}

/* References Button */
.references-btn[b-4yl06rhkez] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent-primary);
    background: transparent;
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.references-btn:hover[b-4yl06rhkez] {
    background-color: var(--accent-primary);
    color: white;
}

/* Feedback Row */
.feedback-row[b-4yl06rhkez] {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    padding-left: 0.25rem;
}

.feedback-btn[b-4yl06rhkez] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background-color: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.feedback-btn:hover[b-4yl06rhkez] {
    background-color: var(--secondary-bg);
    color: var(--text-secondary);
}

.feedback-btn.active[b-4yl06rhkez] {
    color: var(--accent-primary);
}

.feedback-btn i[b-4yl06rhkez] {
    font-size: 0.875rem;
}

.feedback-text[b-4yl06rhkez] {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

/* Typing Indicator */
.typing-indicator[b-4yl06rhkez] {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 1rem 1.25rem !important;
}

.typing-dot[b-4yl06rhkez] {
    width: 8px;
    height: 8px;
    background-color: var(--text-muted);
    border-radius: 50%;
    animation: typing-b-4yl06rhkez 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1)[b-4yl06rhkez] { animation-delay: 0s; }
.typing-dot:nth-child(2)[b-4yl06rhkez] { animation-delay: 0.2s; }
.typing-dot:nth-child(3)[b-4yl06rhkez] { animation-delay: 0.4s; }

@keyframes typing-b-4yl06rhkez {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* ===== Input Area ===== */
.chat-input-area[b-4yl06rhkez] {
    grid-column: 1;
    padding: 1rem 1.5rem 1.25rem;
    background-color: var(--primary-bg);
    border-top: 1px solid var(--border-color);
}

.input-wrapper[b-4yl06rhkez] {
    max-width: 800px;
    margin: 0 auto;
}

.input-container[b-4yl06rhkez] {
    background-color: var(--surface-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.input-container:focus-within[b-4yl06rhkez] {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.chat-input[b-4yl06rhkez] {
    width: 100%;
    padding: 1rem 1.25rem;
    border: none;
    background-color: transparent;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.5;
    resize: none;
    min-height: 56px;
    max-height: 200px;
    color: var(--text-primary);
}

.chat-input[b-4yl06rhkez]::placeholder {
    color: var(--text-muted);
}

.chat-input:focus[b-4yl06rhkez] {
    outline: none;
}

.input-footer[b-4yl06rhkez] {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--secondary-bg);
}

.input-footer-right[b-4yl06rhkez] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.char-count[b-4yl06rhkez] {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.char-count.exceeded[b-4yl06rhkez] {
    color: #dc2626;
    font-weight: 600;
}

/* Action Buttons */
.action-btn[b-4yl06rhkez] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.action-btn.primary[b-4yl06rhkez] {
    background-color: var(--accent-primary);
    color: white;
}

.action-btn.primary:hover:not(:disabled)[b-4yl06rhkez] {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.action-btn.primary:disabled[b-4yl06rhkez] {
    background-color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.action-btn.danger[b-4yl06rhkez] {
    background-color: #dc2626;
    color: white;
}

.action-btn.danger:hover[b-4yl06rhkez] {
    background-color: #b91c1c;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.action-btn.secondary[b-4yl06rhkez] {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.action-btn.secondary:hover[b-4yl06rhkez] {
    background-color: var(--surface-bg);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.action-btn i[b-4yl06rhkez] {
    font-size: 0.75rem;
}

.input-disclaimer[b-4yl06rhkez] {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0.75rem 0 0 0;
}

.input-disclaimer a[b-4yl06rhkez] {
    color: var(--accent-primary);
}

/* ===== Citation Sidebar ===== */
.citation-sidebar[b-4yl06rhkez] {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 0;
    overflow: hidden;
    background-color: var(--surface-bg);
    border-left: 1px solid var(--border-color);
    transition: width var(--transition-normal);
    z-index: 50;
    box-shadow: var(--shadow-lg);
}

.citation-sidebar.open[b-4yl06rhkez] {
    width: 380px;
}

/* ===== Feedback Dialog ===== */
.feedback-dialog[b-4yl06rhkez] {
    padding: 1.5rem;
    max-width: 400px;
}

.feedback-dialog h3[b-4yl06rhkez] {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.feedback-textarea[b-4yl06rhkez] {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9375rem;
    resize: none;
    min-height: 100px;
}

.feedback-textarea:focus[b-4yl06rhkez] {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.feedback-dialog-actions[b-4yl06rhkez] {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* ===== Animations ===== */
@keyframes fadeIn-b-4yl06rhkez {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .citation-sidebar.open[b-4yl06rhkez] {
        width: 100%;
        max-width: 400px;
    }

    .history-panel[b-4yl06rhkez] {
        width: 320px;
        left: -320px;
    }
}

@media (max-width: 640px) {
    .chat-header[b-4yl06rhkez] {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .header-brand[b-4yl06rhkez] {
        width: 100%;
        justify-content: center;
    }

    .header-controls[b-4yl06rhkez] {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .category-dropdown[b-4yl06rhkez],
    .model-dropdown[b-4yl06rhkez] {
        width: 100%;
    }

    .chat-messages[b-4yl06rhkez] {
        padding: 1rem;
        gap: 1rem;
    }

    .message-bubble[b-4yl06rhkez] {
        max-width: 95%;
    }

    .history-panel[b-4yl06rhkez] {
        width: 100%;
        left: -100%;
    }

    .chat-input-area[b-4yl06rhkez] {
        padding: 0.75rem 1rem 1rem;
    }

    .input-footer[b-4yl06rhkez] {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .input-footer-right[b-4yl06rhkez] {
        width: 100%;
        justify-content: space-between;
    }

    .action-btn[b-4yl06rhkez] {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }

    .citation-sidebar.open[b-4yl06rhkez] {
        width: 100%;
        max-width: none;
    }

    .welcome-title[b-4yl06rhkez] {
        font-size: 1.5rem;
    }

    .welcome-logo[b-4yl06rhkez] {
        width: 60px;
        height: 60px;
    }
}

/* ===== Settings Dialog ===== */
.settings-dialog[b-4yl06rhkez] {
    width: 480px;
    max-width: 90vw;
    background-color: var(--surface-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.settings-header[b-4yl06rhkez] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.settings-header h3[b-4yl06rhkez] {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.close-dialog-btn[b-4yl06rhkez] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 150ms ease;
}

.close-dialog-btn:hover[b-4yl06rhkez] {
    background-color: var(--secondary-bg);
    color: var(--text-primary);
}

.settings-content[b-4yl06rhkez] {
    padding: 0;
}

.settings-list[b-4yl06rhkez] {
    list-style: none;
    margin: 0;
    padding: 0;
}

.settings-item[b-4yl06rhkez] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 150ms ease;
}

.settings-item:last-child[b-4yl06rhkez] {
    border-bottom: none;
}

.settings-item:hover[b-4yl06rhkez] {
    background-color: var(--secondary-bg);
}

.settings-item-info[b-4yl06rhkez] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.settings-item-label[b-4yl06rhkez] {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

.settings-item-description[b-4yl06rhkez] {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* Theme Toggle Switch */
.theme-toggle[b-4yl06rhkez] {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

.theme-toggle input[b-4yl06rhkez] {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider[b-4yl06rhkez] {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    border-radius: 26px;
    transition: all 0.3s ease;
}

.toggle-slider[b-4yl06rhkez]:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-toggle input:checked + .toggle-slider[b-4yl06rhkez] {
    background-color: var(--accent-primary);
}

.theme-toggle input:checked + .toggle-slider[b-4yl06rhkez]:before {
    transform: translateX(22px);
}

.theme-toggle:hover .toggle-slider[b-4yl06rhkez] {
    background-color: #94a3b8;
}

.theme-toggle input:checked:hover + .toggle-slider[b-4yl06rhkez] {
    background-color: var(--accent-hover);
}

/* ===== Dark Mode Support for Settings & Feedback Dialogs ===== */
[data-theme="dark"] .settings-dialog[b-4yl06rhkez],
[data-theme="dark"] .feedback-dialog[b-4yl06rhkez] {
    background-color: var(--surface-bg);
}

[data-theme="dark"] .settings-header[b-4yl06rhkez] {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .feedback-dialog h3[b-4yl06rhkez],
[data-theme="dark"] .settings-header h3[b-4yl06rhkez] {
    color: var(--text-primary);
}

[data-theme="dark"] .feedback-textarea[b-4yl06rhkez] {
    background-color: var(--primary-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .feedback-textarea[b-4yl06rhkez]::placeholder {
    color: var(--text-muted);
}

[data-theme="dark"] .feedback-textarea:focus[b-4yl06rhkez] {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
}

[data-theme="dark"] .settings-item[b-4yl06rhkez] {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .settings-item-label[b-4yl06rhkez] {
    color: var(--text-primary);
}

[data-theme="dark"] .settings-item-description[b-4yl06rhkez] {
    color: var(--text-secondary);
}

/* ===== Follow-up Suggestion Chips ===== */
.suggestion-chips[b-4yl06rhkez] {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-top: 1rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--border-color);
    animation: fadeIn-b-4yl06rhkez 0.35s ease-out;
}

.suggestion-chips-label[b-4yl06rhkez] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.25rem;
}

.suggestion-chips-label i[b-4yl06rhkez] {
    font-size: 0.65rem;
}

.suggestion-chip[b-4yl06rhkez] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.875rem;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    text-align: left;
    line-height: 1.45;
    max-width: 520px;
    width: 100%;
}

.suggestion-chip:hover[b-4yl06rhkez] {
    border-color: var(--accent-primary);
    background-color: rgba(99, 102, 241, 0.04);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.suggestion-chip:active[b-4yl06rhkez] {
    transform: translateY(0);
    box-shadow: none;
}

.suggestion-chip-text[b-4yl06rhkez] {
    flex: 1;
}

.suggestion-chip-arrow[b-4yl06rhkez] {
    flex-shrink: 0;
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.15s ease, color 0.15s ease;
}

.suggestion-chip:hover .suggestion-chip-arrow[b-4yl06rhkez] {
    color: var(--accent-primary);
    transform: translateX(3px);
}

/* ===== Helpful Prompts Strip (Popular Questions — shown after first message) ===== */
.helpful-prompts-strip[b-4yl06rhkez] {
    padding-bottom: 0.625rem;
    animation: fadeIn-b-4yl06rhkez 0.3s ease-out;
}

.helpful-prompts-scroll[b-4yl06rhkez] {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.125rem 0.25rem 0.25rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.helpful-prompts-scroll[b-4yl06rhkez]::-webkit-scrollbar {
    display: none;
}

.helpful-prompt-pill[b-4yl06rhkez] {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    background-color: var(--surface-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-family: inherit;
    white-space: nowrap;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.helpful-prompt-pill:hover[b-4yl06rhkez] {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background-color: rgba(99, 102, 241, 0.05);
    transform: translateY(-1px);
}

.helpful-prompt-pill:active[b-4yl06rhkez] {
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .suggestion-chip[b-4yl06rhkez] {
        max-width: 100%;
    }

    .helpful-prompt-pill[b-4yl06rhkez] {
        max-width: 220px;
    }
}

/* /Chat/CitationViewer.razor.rz.scp.css */
/* Citation Panel */
.citation-panel[b-od0vswb4j4] {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.citation-content[b-od0vswb4j4] {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    overflow: hidden;
}

/* Citation Header */
.citation-header[b-od0vswb4j4] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.citation-header h4[b-od0vswb4j4] {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.citation-close-btn[b-od0vswb4j4] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background-color: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.citation-close-btn:hover[b-od0vswb4j4] {
    background-color: var(--secondary-bg);
    color: var(--text-primary);
}

.citation-back-btn[b-od0vswb4j4] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.citation-back-btn:hover[b-od0vswb4j4] {
    background-color: var(--secondary-bg);
    color: var(--text-primary);
}

/* Citation List */
.citation-list[b-od0vswb4j4] {
    flex: 1;
    overflow-y: auto;
}

.citation-group[b-od0vswb4j4] {
    margin-bottom: 1.5rem;
}

.citation-group-label[b-od0vswb4j4] {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* Citation Item */
.citation-item[b-od0vswb4j4] {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    width: 100%;
    padding: 0.625rem 0.75rem;
    margin: 0.25rem 0;
    text-align: left;
    text-decoration: none;
    color: var(--text-primary);
    background-color: transparent;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.citation-item:hover[b-od0vswb4j4] {
    background-color: var(--secondary-bg);
}

.citation-item.supplemental[b-od0vswb4j4] {
    cursor: default;
}

.citation-item.supplemental:hover[b-od0vswb4j4] {
    background-color: transparent;
}

.citation-ref[b-od0vswb4j4] {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.citation-id[b-od0vswb4j4] {
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.citation-title[b-od0vswb4j4] {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.citation-icon[b-od0vswb4j4] {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
}

/* Citation Detail */
.citation-detail[b-od0vswb4j4] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.citation-external-link[b-od0vswb4j4] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-primary);
    text-decoration: none;
    margin-bottom: 1rem;
}

.citation-external-link:hover[b-od0vswb4j4] {
    text-decoration: underline;
}

.citation-external-link i[b-od0vswb4j4] {
    font-size: 0.75rem;
}

.citation-detail-content[b-od0vswb4j4] {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.citation-detail-content img[b-od0vswb4j4] {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1rem 0;
}

.citation-detail-content h1[b-od0vswb4j4],
.citation-detail-content h2[b-od0vswb4j4],
.citation-detail-content h3[b-od0vswb4j4],
.citation-detail-content h4[b-od0vswb4j4] {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.citation-detail-content p[b-od0vswb4j4] {
    margin: 0.75rem 0;
}

.citation-detail-content ul[b-od0vswb4j4],
.citation-detail-content ol[b-od0vswb4j4] {
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}

.citation-detail-content li[b-od0vswb4j4] {
    margin: 0.25rem 0;
}

/* ===== Citation Modal ===== */
.citation-modal-overlay[b-od0vswb4j4] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    animation: fadeIn-b-od0vswb4j4 0.2s ease-out;
}

.citation-modal[b-od0vswb4j4] {
    background-color: var(--surface-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 95%;
    max-width: 1200px;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp-b-od0vswb4j4 0.3s ease-out;
}

.citation-modal-header[b-od0vswb4j4] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--secondary-bg);
}

.citation-modal-header h4[b-od0vswb4j4] {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.citation-modal-body[b-od0vswb4j4] {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.citation-modal-footer[b-od0vswb4j4] {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--secondary-bg);
}

.citation-modal-footer .citation-external-link[b-od0vswb4j4] {
    margin-bottom: 0;
}

.citation-loading[b-od0vswb4j4] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.citation-not-found[b-od0vswb4j4] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem;
    text-align: center;
    color: var(--text-muted);
}

.citation-not-found i[b-od0vswb4j4] {
    font-size: 2rem;
    color: var(--accent-warning, #f59e0b);
}

.citation-not-found p[b-od0vswb4j4] {
    margin: 0;
    font-size: 0.9375rem;
}

.citation-ticket-info[b-od0vswb4j4] {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.citation-ticket-info p[b-od0vswb4j4] {
    margin: 0.5rem 0;
    font-size: 0.9375rem;
    line-height: 1.6;
}

@keyframes fadeIn-b-od0vswb4j4 {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp-b-od0vswb4j4 {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Responsive */
@media (max-width: 640px) {
    .citation-modal[b-od0vswb4j4] {
        width: 100%;
        max-width: none;
        max-height: 90vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .citation-modal-overlay[b-od0vswb4j4] {
        align-items: flex-end;
    }

    .citation-modal-header[b-od0vswb4j4],
    .citation-modal-body[b-od0vswb4j4],
    .citation-modal-footer[b-od0vswb4j4] {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
/* /Chat/CustomDropdown.razor.rz.scp.css */
/* Custom Dropdown - Trigger Button */
.custom-dropdown[b-02bnixg4wu] {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.custom-dropdown .dropdown-trigger[b-02bnixg4wu] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    background-color: var(--surface-bg);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 150ms ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    min-width: 240px;
    max-width: 500px;
    text-align: left;
    white-space: nowrap;
}

/* Small variant */
.custom-dropdown.small .dropdown-trigger[b-02bnixg4wu] {
    gap: 6px;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 10px;
    min-width: 160px;
    max-width: 300px;
}

.custom-dropdown .dropdown-trigger:hover[b-02bnixg4wu] {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.custom-dropdown .dropdown-trigger:focus[b-02bnixg4wu] {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.custom-dropdown .dropdown-value[b-02bnixg4wu] {
    flex: 1;
}

.custom-dropdown .dropdown-arrow[b-02bnixg4wu] {
    color: var(--accent-primary);
    transition: transform 150ms ease;
}

.custom-dropdown.open .dropdown-arrow[b-02bnixg4wu] {
    transform: rotate(180deg);
}
/* /PrivacyPolicy/PrivacyPolicy.razor.rz.scp.css */
h4[b-q71j17at1s] {
    margin-top: 25px;
}

p[b-q71j17at1s] {
    margin-bottom: 0;
}

.last-updated[b-q71j17at1s] {
    font-style: italic;
    margin: 15px 0;
}

.dialog-actions[b-q71j17at1s] {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.action-btn[b-q71j17at1s] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 150ms ease;
    white-space: nowrap;
}

.action-btn.primary[b-q71j17at1s] {
    background-color: var(--accent-primary);
    color: white;
}

.action-btn.primary:hover[b-q71j17at1s] {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button.link-like[b-q71j17at1s] {
    background: none;
    color: var(--primary-color);
    padding: 0;
    border: none;
    text-decoration: underline;
    font-size: inherit;
    cursor: pointer;
}

/* Hover effect */
button.link-like:hover[b-q71j17at1s],
button.link-like:focus[b-q71j17at1s] {
    color: var(--primary-hover);
    text-decoration: none;
}

/* ===== Dark Mode Support for Privacy Policy ===== */
[data-theme="dark"] #privacy-policy h1[b-q71j17at1s],
[data-theme="dark"] #privacy-policy h4[b-q71j17at1s] {
    color: var(--text-primary);
}

[data-theme="dark"] #privacy-policy p[b-q71j17at1s] {
    color: var(--text-secondary);
}

[data-theme="dark"] #privacy-policy a[b-q71j17at1s] {
    color: var(--accent-primary);
}

[data-theme="dark"] #privacy-policy a:hover[b-q71j17at1s] {
    color: var(--accent-hover);
}

[data-theme="dark"] #privacy-policy .last-updated[b-q71j17at1s] {
    color: var(--text-muted);
}

[data-theme="dark"] .dialog-actions[b-q71j17at1s] {
    border-top-color: var(--border-color);
}
/* /Shared/MainLayout.razor.rz.scp.css */
/* App Layout */
.app-layout[b-jv7fr5d83d] {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-content[b-jv7fr5d83d] {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Admin Button */
a.admin-nav-button[b-jv7fr5d83d] {
    position: fixed;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 1000;
    background-color: var(--surface-bg);
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

a.admin-nav-button:hover[b-jv7fr5d83d] {
    background-color: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

a.admin-nav-button > *[b-jv7fr5d83d] {
    color: inherit;
}
/* /Shared/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-h6556j5bo0] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-h6556j5bo0] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-h6556j5bo0] {
    font-size: 1.1rem;
}

.oi[b-h6556j5bo0] {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

.nav-item[b-h6556j5bo0] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-h6556j5bo0] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-h6556j5bo0] {
        padding-bottom: 1rem;
    }

    .nav-item[b-h6556j5bo0]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-h6556j5bo0]  a.active {
    background-color: rgba(255,255,255,0.25);
    color: white;
}

.nav-item[b-h6556j5bo0]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-h6556j5bo0] {
        display: none;
    }

    .collapse[b-h6556j5bo0] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
    
    .nav-scrollable[b-h6556j5bo0] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
