/* QCR Dashboard Styles */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #fafafa;
    background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.15) 1px, transparent 0);
    background-size: 20px 20px;
    min-height: 100vh;
    color: #1e293b;
}

/* Header */
.header {
    background: white;
    border-bottom: 2px solid #e2e8f0;
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #FF6B6B;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-item {
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    color: #64748b;
}

.nav-item:hover {
    background: #f1f5f9;
    color: #334155;
}

.nav-item.active {
    background: #FF6B6B;
    color: white;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #FF6B6B;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Dashboard Header with Tabs */
.dashboard-header {
    margin-bottom: 40px;
}

.header-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.header-left {
    flex: 1;
}

.source-tabs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.tab-btn {
    background: white;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 140px;
    text-align: center;
}

.tab-btn:hover {
    border-color: #FF6B6B;
    color: #FF6B6B;
    background: #fff5f5;
}

.tab-btn.active {
    background: #FF6B6B;
    border-color: #FF6B6B;
    color: white;
}

.tab-btn.linkedin.active {
    background: #0077b5;
    border-color: #0077b5;
    color: white;
}

.tab-btn.linkedin:hover {
    border-color: #0077b5;
    color: #0077b5;
    background: #f0f8ff;
}

.data-source-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    color: #333;
    margin-bottom: 8px;
    font-size: 2rem;
    font-weight: 600;
}

.subtitle {
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* Section Styles */
.section {
    margin-bottom: 48px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-description {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Evidence Grid */
.evidence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.evidence-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s;
}

.evidence-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.evidence-metric {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FF6B6B;
    margin-bottom: 8px;
}

/* LinkedIn-specific evidence cards */
.linkedin-evidence-card .evidence-metric {
    color: #0077b5;
}

.evidence-label {
    font-size: 0.875rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.evidence-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.evidence-narrative {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 24px;
}

.chart-container {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    height: 400px;
    position: relative;
}

.chart-container canvas {
    height: 250px !important;
    max-height: 250px !important;
}

.chart-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.chart-insight {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

/* Growth Chart Container */
.growth-chart-container {
    background: white;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.growth-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.growth-chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.growth-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #64748b;
}

/* Research Maturity Pipeline */
.maturity-pipeline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
}

.pipeline-stage {
    flex: 1;
    padding: 12px;
    text-align: center;
    border-radius: 4px;
    position: relative;
}

.pipeline-stage::after {
    content: '→';
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
    font-size: 1.25rem;
}

.pipeline-stage:last-child::after {
    display: none;
}

.pipeline-stage.theoretical {
    background: #e0e7ff;
    border: 1px solid #c7d2fe;
}

.pipeline-stage.experimental {
    background: #dbeafe;
    border: 1px solid #bfdbfe;
}

.pipeline-stage.applied {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.pipeline-stage.commercial {
    background: #fef3c7;
    border: 1px solid #fde68a;
}

/* LinkedIn Professional Pipeline - Blue spectrum */
#professionalMaturityPipeline .pipeline-stage.theoretical {
    background: #dbeafe;
    border: 1px solid #3b82f6;
}

#professionalMaturityPipeline .pipeline-stage.experimental {
    background: #bfdbfe;
    border: 1px solid #2563eb;
}

#professionalMaturityPipeline .pipeline-stage.applied {
    background: #93c5fd;
    border: 1px solid #1d4ed8;
}

#professionalMaturityPipeline .pipeline-stage.commercial {
    background: #60a5fa;
    border: 1px solid #1e40af;
}

/* ArXiv Research Pipeline - Red spectrum */
#researchMaturityPipeline .pipeline-stage.theoretical {
    background: #ffebee;
    border: 1px solid #f87171;
}

#researchMaturityPipeline .pipeline-stage.experimental {
    background: #fecaca;
    border: 1px solid #f56565;
}

#researchMaturityPipeline .pipeline-stage.simulation {
    background: #fca5a5;
    border: 1px solid #ef4444;
}

#researchMaturityPipeline .pipeline-stage.proof-of-concept {
    background: #f87171;
    border: 1px solid #dc2626;
}

.pipeline-stage.simulation {
    background: #e0e7ff;
    border: 1px solid #c7d2fe;
}

.pipeline-stage.proof-of-concept {
    background: #dbeafe;
    border: 1px solid #bfdbfe;
}

.pipeline-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e3a5f;
}

.pipeline-label {
    font-size: 0.75rem;
    color: #4a5568;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Executive Chart Container */
.executive-chart-container {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.executive-chart-header {
    margin-bottom: 20px;
}

.executive-chart-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 8px;
}

.executive-chart-subtitle {
    font-size: 0.875rem;
    color: #718096;
    line-height: 1.4;
}

/* Competitive Analysis */
.competitive-analysis {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.competitive-header {
    background: #1e3a5f;
    color: white;
    padding: 16px 20px;
}

.competitive-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.competitive-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
}

.competitive-body {
    padding: 20px;
}

.market-share-item {
    margin-bottom: 12px;
}

.market-share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.framework-name {
    font-weight: 500;
    color: #2d3748;
}

.framework-percentage {
    font-weight: 600;
    color: #1e3a5f;
}

.market-share-bar {
    height: 8px;
    background: #f7fafc;
    border-radius: 4px;
    overflow: hidden;
}

.market-share-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    background: #FF6B6B;
}

.tech-category {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.tech-category:last-child {
    border-bottom: none;
}

.tech-category h4 {
    color: #1e3a5f;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.tech-leader {
    color: #4a5568;
    font-size: 0.875rem;
}

/* Two Column Grid */
.analysis-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); 
    gap: 24px; 
    margin-top: 32px;
}

/* Data Footer */
.data-footer {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-top: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.data-sources {
    font-size: 0.875rem;
    color: #64748b;
}

.update-info {
    font-size: 0.875rem;
    color: #64748b;
    text-align: right;
}

/* Action Buttons */
.action-buttons {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    gap: 12px;
    flex-direction: column;
    z-index: 50;
}

.query-data-btn, .reanalyze-btn {
    background: #FF6B6B;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    transition: all 0.2s;
}

.reanalyze-btn {
    background: #4ECDC4;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
}

.query-data-btn:hover {
    background: #FF5252;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
    transform: translateY(-1px);
}

.reanalyze-btn:hover {
    background: #26d0ce;
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.4);
    transform: translateY(-1px);
}

.query-data-btn:disabled, .reanalyze-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 32px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-content h3 {
    margin-bottom: 16px;
    color: #1e293b;
    font-size: 1.4rem;
}

.modal-content ul {
    margin: 16px 0;
    padding-left: 20px;
    color: #64748b;
}

.modal-content li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn.primary {
    background: #FF6B6B;
    color: white;
}

.modal-btn.primary:hover {
    background: #FF5252;
}

.modal-btn.secondary {
    background: #4ECDC4;
    color: white;
}

.modal-btn.secondary:hover {
    background: #26d0ce;
}

.modal-btn.cancel {
    background: #e2e8f0;
    color: #64748b;
}

.modal-btn.cancel:hover {
    background: #cbd5e1;
}

/* Chat Modal Styles */
.chat-modal-content {
    width: 1200px;
    max-height: 800px;
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 0 0 16px 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e293b;
}

.chat-close {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-close:hover {
    color: #1e293b;
}

.chat-messages {
    flex: 1;
    padding: 0;
    overflow-y: auto;
    max-height: 500px;
    min-height: 350px;
    margin-bottom: 24px;
}

.chat-message {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-message.user-message {
    background: #f1f5f9;
    margin-left: 40px;
    text-align: right;
}

.chat-message.ai-message {
    background: #f8fafc;
    margin-right: 40px;
    border: 1px solid #e2e8f0;
}

.chat-message strong {
    color: #1e293b;
}

.chat-input-container {
    padding: 20px 0 0 0;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
}

.chat-input-container input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
}

.chat-input-container input:focus {
    outline: none;
    border-color: #FF6B6B;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.1);
}

.chat-send-btn {
    background: #FF6B6B;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-send-btn:hover {
    background: #FF5252;
}

.chat-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.typing-indicator {
    animation: pulse 1.5s infinite;
    color: #3498db;
}

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

.chat-input-container input:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

/* Papers Page Styles */
.filter-container {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-container select {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    min-width: 180px;
    color: #1e293b;
}

.filter-container select:focus {
    outline: none;
    border-color: #FF6B6B;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.1);
}

.papers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
}

.paper-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s;
}

.paper-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.paper-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.4;
}

.paper-authors {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 12px;
}

.paper-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.paper-frameworks {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.framework-tag {
    background: #FF6B6B;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.paper-link {
    color: #FF6B6B;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.paper-link:hover {
    color: #FF5252;
    text-decoration: underline;
}

/* Analytics Page Styles */
.analytics-overview {
    margin-bottom: 32px;
}

.analysis-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.analytics-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.analytics-filters select {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    min-width: 180px;
    color: #1e293b;
}

.analytics-filters select:focus {
    outline: none;
    border-color: #FF6B6B;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.1);
}

.analytics-grid {
    display: grid;
    gap: 24px;
}

.analysis-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.paper-title-analytics {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    flex: 1;
    margin-right: 16px;
    line-height: 1.4;
}

.framework-tags-analytics {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.framework-tag-analytics {
    background: #FF6B6B;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.analysis-details {
    display: block;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.analysis-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.analysis-detail-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.analysis-detail-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.detail-card-header {
    margin-bottom: 12px;
}

.detail-card-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.detail-card-content {
    font-size: 0.875rem;
}

/* Badge Styles */
.framework-badge, .application-badge, .hardware-badge, .tool-badge, .advantage-badge {
    display: inline-block;
    padding: 4px 8px;
    margin: 2px 4px 2px 0;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.framework-badge {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.application-badge {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.hardware-badge {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.maturity-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
    margin-bottom: 8px;
}

.maturity-badge.theoretical {
    background: #e0e7ff;
    color: #3730a3;
}

.maturity-badge.experimental {
    background: #fef3c7;
    color: #92400e;
}

.maturity-badge.simulation {
    background: #ecfccb;
    color: #365314;
}

.maturity-badge.commercial {
    background: #fce7f3;
    color: #be185d;
}

.maturity-badge.unclassified {
    background: #f1f5f9;
    color: #64748b;
}

.no-data {
    color: #94a3b8;
    font-style: italic;
    font-size: 0.8rem;
}

.algorithm-info {
    margin-top: 8px;
    font-size: 0.8rem;
    color: #64748b;
}

.analysis-metadata {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.metadata-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.metadata-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.metadata-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e293b;
}

.tool-badge {
    background: #f3e8ff;
    color: #7c3aed;
    border: 1px solid #c4b5fd;
}

.advantage-badge {
    padding: 6px 12px;
    border-radius: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.advantage-badge.demonstrated-advantage {
    background: #d1fae5;
    color: #065f46;
}

.advantage-badge.potential-advantage {
    background: #fef3c7;
    color: #92400e;
}

.advantage-badge.no-advantage {
    background: #fee2e2;
    color: #991b1b;
}

.advantage-description, .tech-info, .qubit-info, .complexity-info {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #64748b;
}

.paper-info div {
    margin-bottom: 4px;
    font-size: 0.8rem;
    color: #64748b;
}

.detail-section {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
}

.detail-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.detail-content {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

.confidence-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.confidence-badge.high {
    background: #dcfce7;
    color: #166534;
}

.confidence-badge.medium {
    background: #fef3c7;
    color: #92400e;
}

.confidence-badge.low {
    background: #fecaca;
    color: #991b1b;
}

.toggle-details {
    background: none;
    border: none;
    color: #FF6B6B;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0;
    margin-top: 12px;
}

.toggle-details:hover {
    color: #FF5252;
    text-decoration: underline;
}

/* Analysis Card Containers */
.analysis-card-container {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.analysis-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.analysis-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 24px;
}

.analysis-insight {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #475569;
    margin-top: 20px;
    border-left: 4px solid #FF6B6B;
}

/* Framework Grid */
.framework-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.framework-item {
    text-align: center;
    padding: 20px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.framework-rank {
    font-size: 0.75rem;
    font-weight: 600;
    color: #FF6B6B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.framework-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.framework-count {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 4px;
}

.framework-percentage {
    font-size: 0.75rem;
    color: #64748b;
}

/* Technology Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.tech-category-card {
    text-align: center;
    padding: 20px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.tech-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.tech-category-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.tech-leader-name {
    font-size: 1rem;
    font-weight: 500;
    color: #FF6B6B;
    margin-bottom: 8px;
}

.tech-paper-count {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 4px;
}

.tech-dominance {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

/* Mobile Footer Buttons - Hidden on Desktop */
.mobile-footer-buttons {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .container {
        padding: 20px 16px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .section {
        width: 100%;
        overflow-x: hidden;
    }
    
    .dashboard-title {
        font-size: 2rem;
    }
    
    /* Mobile Navigation */
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 16px 24px;
        gap: 4px;
    }
    
    .nav.mobile-open {
        display: flex;
    }
    
    /* Hero Section Mobile */
    .header-content-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .source-tabs {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
    }
    
    /* Research Maturity Pipeline Mobile */
    .maturity-pipeline {
        flex-direction: column;
        gap: 12px;
        height: auto;
        overflow: visible;
    }
    
    .pipeline-stage {
        height: auto;
        min-height: auto;
        padding: 16px 12px;
        margin-bottom: 20px;
        overflow: visible;
    }
    
    .pipeline-stage::after {
        content: '↓';
        right: auto;
        top: auto;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.5rem;
    }
    
    .pipeline-stage:last-child::after {
        display: none;
    }
    
    .pipeline-stage:last-child {
        margin-bottom: 0;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .data-footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
        width: 100%;
        overflow: hidden;
    }
    
    .evidence-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100%;
        overflow: hidden;
    }
    
    .framework-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
        overflow: hidden;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100%;
        overflow: hidden;
    }
    
    /* Chart containers mobile sizing */
    .chart-container {
        height: auto;
        min-height: 250px;
        padding: 16px;
        width: 100%;
        max-width: 100%;
        overflow: visible;
        box-sizing: border-box;
    }
    
    .chart-container canvas {
        height: 180px !important;
        max-height: 180px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .growth-chart-container {
        padding: 16px;
        height: auto;
        min-height: 250px;
        overflow: visible;
    }
    
    .executive-chart-container {
        height: auto;
        min-height: 250px;
        padding: 16px;
        overflow: visible;
    }
    
    .chart-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .chat-modal-content {
        width: calc(100vw - 32px);
        max-height: 80vh;
    }
    
    /* Modal buttons mobile layout */
    .modal-buttons {
        flex-direction: column;
        gap: 8px;
        justify-content: stretch;
    }
    
    .modal-btn {
        width: 100%;
        text-align: center;
        font-size: 0.9rem;
        padding: 14px 16px;
        box-sizing: border-box;
    }
    
    .modal-content {
        width: calc(100vw - 32px);
        max-width: 500px;
        padding: 20px 16px;
        margin: 16px;
        box-sizing: border-box;
    }

    /* Hide floating action buttons on mobile */
    .action-buttons {
        display: none;
    }
    
    /* Show mobile footer buttons */
    .mobile-footer-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 20px 16px;
        background: white;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        position: sticky;
        bottom: 0;
        z-index: 50;
    }
    
    .mobile-footer-btn {
        width: 100%;
        padding: 16px;
        border: none;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        box-sizing: border-box;
    }
    
    .mobile-footer-btn.query-btn {
        background: #4ECDC4;
        color: white;
    }
    
    .mobile-footer-btn.query-btn:hover {
        background: #26d0ce;
    }
    
    .mobile-footer-btn.reanalyze-btn {
        background: #FF6B6B;
        color: white;
    }
    
    .mobile-footer-btn.reanalyze-btn:hover {
        background: #FF5252;
    }

    .filter-container {
        flex-direction: column;
    }

    .filter-container select {
        width: 100%;
        min-width: unset;
    }

    .analytics-filters {
        flex-direction: column;
    }

    .analytics-filters select {
        width: 100%;
        min-width: unset;
    }

    .papers-grid {
        grid-template-columns: 1fr;
    }

    .analysis-details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .analysis-metadata {
        flex-direction: column;
        gap: 8px;
    }

    .analysis-header {
        flex-direction: column;
        gap: 8px;
    }

    .paper-title-analytics {
        margin-right: 0;
    }
}