Spaces:
Paused

miracle / frontend /apps /internal /src /components /KnowledgeBase.module.css
dushyantsingh0
backend stabilisation
ef9f115
Raw History Blame Contribute Delete
32.7 kB
.container { padding: 48px 64px; background-color: var(--bg-dark); min-height: calc(100vh - 120px); display: flex; flex-direction: column; gap: 48px; } /* 1. Mission Banner */ .missionBanner { background: #7c3aed; /* Fallback */ background: radial-gradient(circle at top right, #7c3aed, #4f46e5), var(--hero-mesh, none); background-size: 200% 200%; animation: meshGradient 20s ease infinite; border-radius: 12px; padding: 64px 40px; color: white; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15); position: relative; overflow: visible; display: flex; flex-direction: column; align-items: flex-start; text-align: left; } @keyframes meshGradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } .bannerContent { position: relative; z-index: 1; max-width: 1000px; width: 100%; display: flex; flex-direction: column; align-items: flex-start; overflow: visible; } .headerBadge { display: inline-block; font-size: 10px; font-weight: 900; background: rgba(255, 255, 255, 0.2); padding: 4px 10px; border-radius: 4px; margin-bottom: 24px; letter-spacing: 0.1em; } .headerMainRow { display: flex; align-items: center; justify-content: flex-start; gap: 32px; margin-bottom: 16px; width: 100%; } .missionBanner h1 { font-size: 44px; font-weight: 950; letter-spacing: -0.04em; margin: 0; text-transform: uppercase; background: linear-gradient(to bottom, #ffffff 30%, rgba(255, 255, 255, 0.85)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } .description { font-size: 19px; color: rgba(255, 255, 255, 0.9); margin-bottom: 48px; font-weight: 500; max-width: 800px; } /* Search Controls */ .searchControls { display: flex; gap: 16px; align-items: center; width: 100%; max-width: 1000px; } .searchWrapper { position: relative; flex: 1; } .searchIcon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, 0.5); } .searchWrapper input { width: 100%; background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 12px; padding: 16px 180px 16px 64px; color: white; font-size: 17px; outline: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); } .searchWrapper input::placeholder { color: rgba(255, 255, 255, 0.6); } .searchWrapper input:focus { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25); transform: translateY(-2px); } .searchPulse { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 900; color: #10B981; background: rgba(16, 185, 129, 0.1); padding: 6px 12px; border-radius: 8px; letter-spacing: 0.05em; border: 1px solid rgba(16, 185, 129, 0.2); } .pulseIcon { animation: spin 2s linear infinite; color: #10B981; } .newIntelBtn { background: var(--bg-card); color: var(--primary); border: none; padding: 12px 24px; border-radius: 8px; font-weight: 800; cursor: pointer; display: flex; align-items: center; gap: 10px; text-transform: uppercase; font-size: 12px; } /* AI Suggestions */ .suggestions { display: flex; align-items: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; } .sLabel { font-size: 10px; font-weight: 900; color: rgba(255, 255, 255, 0.6); letter-spacing: 0.1em; white-space: nowrap; } .sChip { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: white; padding: 6px 14px; border-radius: 20px; font-size: 11px; font-weight: 700; cursor: pointer; transition: all 0.2s; white-space: nowrap; } .sChip:hover { background: rgba(255, 255, 255, 0.25); border-color: rgba(255, 255, 255, 0.5); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } /* Category Select Dropdown (Internal) */ .categoryDropdownRow { margin: 0; display: flex; justify-content: flex-start; position: relative; z-index: 100; } .categorySelectWrapper { display: flex; align-items: center; gap: 16px; background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); padding: 8px 8px 8px 20px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.15); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); } .categoryLabel { font-size: 10px; font-weight: 900; color: rgba(255, 255, 255, 0.7); letter-spacing: 0.1em; text-transform: uppercase; } .customSelect { position: relative; display: flex; align-items: center; } .customSelect select { appearance: none; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.2); padding: 10px 42px 10px 16px; border-radius: 12px; font-size: 13px; font-weight: 700; color: white; cursor: pointer; transition: all 0.3s ease; min-width: 220px; outline: none; } .customSelect select:hover { border-color: white; background: rgba(255, 255, 255, 0.15); } .customSelect select option { background-color: var(--bg-card); color: var(--text-main); } .selectIcon { position: absolute; right: 14px; pointer-events: none; color: rgba(255, 255, 255, 0.5); transition: all 0.3s ease; } .customSelect:hover .selectIcon { color: var(--primary); transform: translateY(2px); } /* Articles Grid */ .contentArea { flex: 1; display: flex; flex-direction: row; gap: 32px; overflow: visible; } .mainLibrary { flex: 1; display: flex; flex-direction: column; } .articlesGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; } .articleCard { background: var(--bg-card); backdrop-filter: blur(8px); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 24px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; gap: 16px; } .articleCard:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: var(--primary); background: var(--bg-hover); } .cardHeader { display: flex; justify-content: space-between; align-items: center; } .typeBadge { display: flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 900; color: var(--primary); background: var(--primary-glow); padding: 4px 10px; border-radius: 6px; } .statusDot { width: 8px; height: 8px; border-radius: 50%; } .statusDot.live { background: #34D399; } .statusDot.draft { background: #94A3B8; } .matchBadge { display: flex; align-items: center; gap: 4px; font-size: 9px; font-weight: 950; padding: 4px 10px; border-radius: 6px; letter-spacing: 0.05em; text-transform: uppercase; } .highMatch { background: rgba(16, 185, 129, 0.1); color: #059669; } .regularMatch { background: rgba(99, 102, 241, 0.1); color: #4F46E5; } .cardBody h3 { font-size: 20px; font-weight: 800; color: var(--text-main); margin: 12px 0 10px; } .catBadge { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; } .snippet { font-size: 14px; color: var(--text-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .cardFooter { display: flex; justify-content: flex-end; padding-top: 20px; border-top: 1px solid var(--bg-hover); } .telemetry { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; } .telemetry span { font-size: 10px; font-weight: 800; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; } /* Pagination */ .pagination { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 40px; padding: 20px; } .pageBtn { background: var(--bg-card); border: 1px solid var(--border-subtle); width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; } .pageBtn:hover:not(:disabled) { background: var(--bg-hover); color: var(--primary); transform: translateY(-2px); } .pageBtn:disabled { opacity: 0.3; cursor: not-allowed; } .pageInfo { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 900; color: var(--text-muted); letter-spacing: 0.1em; } .pageNum { color: var(--text-main); font-size: 14px; min-width: 1.2em; text-align: center; } /* Dossier Side Drawer */ .drawerBackdrop { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(4px); z-index: 1000; } .dossierDrawer { position: fixed; top: 0; right: 0; width: 50%; height: 100%; background: var(--bg-card); z-index: 1001; box-shadow: -20px 0 50px rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; } /* Compact Dossier Header */ .dossierHeader { padding: 24px 32px; border-bottom: 1px solid var(--border-subtle); background: var(--bg-hover); flex-shrink: 0; } .metaTop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; } .headerRight { display: flex; align-items: center; gap: 16px; } .metaLabel { font-size: 9px; font-weight: 900; color: var(--primary); letter-spacing: 0.2em; opacity: 0.6; } .closeDrawer { background: none; border: none; cursor: pointer; color: var(--text-muted); transition: 0.2s; padding: 4px; } .closeDrawer:hover { color: var(--text-main); transform: rotate(90deg); } .titleViewRow, .titleEditRow { display: flex; justify-content: space-between; align-items: center; gap: 20px; } .dossierHeader h2 { font-size: 24px; font-weight: 800; color: var(--text-main); letter-spacing: -0.01em; margin: 0; flex: 1; } .statusBadge { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; padding: 4px 10px; border-radius: 8px; white-space: nowrap; } .badgeLive { background: var(--success-glow); color: var(--success); } .badgeDraft { background: var(--bg-hover); color: var(--text-muted); } .deployInsightBtn { background: var(--primary); color: white; border: none; padding: 6px 14px; border-radius: 8px; font-weight: 800; font-size: 11px; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.2s; } .deployInsightBtn:hover { background: #4F46E5; transform: translateY(-2px); } .editTitleInput { background: var(--bg-card); border: 1px solid var(--border-subtle); font-size: 18px; font-weight: 700; flex: 1; color: var(--text-main); outline: none; padding: 8px 16px; border-radius: 8px; } .deployBtn { background: var(--primary); color: white; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 800; font-size: 12px; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all 0.2s; min-width: 100px; justify-content: center; } .btnSuccess { background: var(--success) !important; } .btnError { background: var(--error) !important; } .modeToggle { background: var(--bg-hover); padding: 2px; border-radius: 8px; display: flex; } .modeBtn { padding: 4px 10px; border-radius: 6px; border: none; background: none; font-size: 10px; font-weight: 800; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; gap: 4px; } .modeBtn.activeMode { background: var(--bg-card); color: var(--text-main); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); } /* Compact Editor Toolbar */ .compactToolbar { padding: 12px 32px; display: flex; gap: 24px; background: var(--bg-card); border-bottom: 1px solid var(--border-subtle); align-items: center; flex-shrink: 0; } .toolbarGroup { display: flex; align-items: center; gap: 8px; } .toolbarGroup label { font-size: 9px; font-weight: 900; color: var(--text-muted); margin: 0; } .toolbarGroup select { padding: 4px 8px; border-radius: 6px; border: 1px solid var(--border-subtle); font-size: 11px; font-weight: 600; } .miniToggles { display: flex; gap: 4px; background: var(--bg-hover); padding: 2px; border-radius: 6px; } .miniToggle { padding: 4px 8px; border-radius: 4px; border: none; background: none; font-size: 9px; font-weight: 800; cursor: pointer; display: flex; align-items: center; gap: 4px; color: var(--text-muted); } .miniToggle.activeToggle { background: var(--bg-card); color: var(--primary); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); } .miniRetract { margin-left: auto; background: none; border: none; color: #EF4444; font-size: 10px; font-weight: 800; cursor: pointer; display: flex; align-items: center; gap: 6px; opacity: 0.7; } .miniRetract:hover { opacity: 1; } .autoDraftBtn { background: var(--primary-glow); color: var(--primary); border: 1px solid var(--primary-subtle, rgba(124, 58, 237, 0.2)); padding: 4px 10px; border-radius: 6px; font-size: 9px; font-weight: 800; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); text-transform: uppercase; letter-spacing: 0.02em; } .autoDraftBtn:hover:not(:disabled) { background: var(--primary); color: white; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2); } .autoDraftBtn:disabled { opacity: 0.6; cursor: not-allowed; } .btnPulse { animation: btnPulseAnim 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; } @keyframes btnPulseAnim { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } /* Fixed Layout Containers */ .dossierBody { flex: 1; display: flex; flex-direction: column; overflow: hidden; position: relative; } .viewInterface, .editInterface { flex: 1; display: flex; flex-direction: column; overflow: hidden; } .viewScrollArea, .editScrollArea { flex: 1; overflow-y: auto; padding: 32px; background: var(--bg-card); } .telemetryBar { display: flex; gap: 32px; background: var(--bg-hover); padding: 12px 32px; border-bottom: 1px solid var(--border-subtle); flex-shrink: 0; } .telItem label { display: block; font-size: 8px; font-weight: 900; color: var(--text-muted); margin-bottom: 2px; } .telItem span { font-size: 11px; font-weight: 700; color: var(--text-main); } .markdownContent { line-height: 1.8; color: var(--text-main); font-size: 16px; max-width: 900px; margin: 0 auto; } .markdownContent h1, .markdownContent h2, .markdownContent h3 { color: var(--text-main); font-weight: 900; letter-spacing: -0.02em; margin-top: 48px; margin-bottom: 24px; } .markdownContent h1 { font-size: 32px; border-bottom: 1px solid var(--border-subtle); padding-bottom: 16px; } .markdownContent h2 { font-size: 24px; } .markdownContent h3 { font-size: 19px; } .markdownContent p { margin-bottom: 28px; font-size: 17px; line-height: 1.85; color: var(--text-main); opacity: 0.95; } .markdownContent ul, .markdownContent ol { margin-bottom: 32px; padding-left: 24px; } .markdownContent li { margin-bottom: 12px; color: var(--text-main); } .markdownContent blockquote { border-left: 4px solid var(--primary); background: var(--bg-hover); padding: 24px 32px; border-radius: 0 16px 16px 0; margin: 32px 0; font-style: italic; font-size: 18px; color: var(--text-main); } .editArea { width: 100%; height: 100%; border: none; resize: none; font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 14px; line-height: 1.6; outline: none; background: var(--bg-hover); } /* Empty/Loading */ .emptyState { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--bg-card-glass); border-radius: 20px; border: 1px dashed var(--border-subtle); padding: 40px; text-align: center; min-height: 300px; } .loadingPulse { width: 40px; height: 40px; background: var(--primary); border-radius: 50%; animation: pulseS 2s infinite; } @keyframes pulseS { 0% { transform: scale(0.9); opacity: 0.6; } 50% { transform: scale(1.1); opacity: 0.2; } 100% { transform: scale(0.9); opacity: 0.6; } } /* Draft Sidebar */ .draftSidebar { width: 280px; background: var(--bg-card-glass); backdrop-filter: blur(8px); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); display: flex; flex-direction: column; max-height: calc(100vh - 350px); position: sticky; top: 40px; overflow: hidden; } .sidebarHeader { padding: 20px; border-bottom: 1px solid var(--border-subtle); display: flex; align-items: center; gap: 10px; } .sidebarHeader h3 { font-size: 11px; font-weight: 900; color: var(--text-main); letter-spacing: 0.1em; margin: 0; flex: 1; } .clearDrafts { background: none; border: none; font-size: 9px; font-weight: 800; color: var(--primary); cursor: pointer; opacity: 0.7; } .clearDrafts:hover { opacity: 1; } .draftList { overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 12px; } .draftItem { background: white; border: 1px solid var(--border-subtle); padding: 16px; border-radius: 12px; cursor: pointer; transition: all 0.2s; } .draftItem:hover { border-color: var(--primary); transform: translateX(4px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); } .draftTitle { font-size: 13px; font-weight: 700; color: var(--text-main); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .draftMeta { display: flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 800; color: var(--success); } .mermaidContainer { margin: 32px 0; background: var(--bg-hover); padding: 32px; border-radius: 20px; border: 1px solid var(--border-subtle); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02); display: flex; justify-content: center; position: relative; overflow: hidden; min-height: 100px; } .mermaidLoading { width: 100%; height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--text-muted); } .loaderPulse { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--primary); border-top-color: transparent; animation: spin 1s linear infinite; } .mermaidError { width: 100%; background: var(--error-glow); border: 1px solid #FECACA; border-radius: 16px; padding: 32px; color: var(--error); } .errorHeader { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; } .errorBadge { background: var(--error-glow); color: var(--error); padding: 4px 10px; border-radius: 6px; font-size: 10px; font-weight: 900; letter-spacing: 0.1em; } .errorTitle { font-size: 16px; font-weight: 800; margin: 0; } .errorMessage { font-size: 14px; line-height: 1.6; margin-bottom: 24px; opacity: 0.8; } .rawSchemaToggle { background: var(--bg-card); border: 1px solid var(--error-glow); color: var(--error); padding: 8px 16px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 8px; } .rawSchemaToggle:hover { background: #FEE2E2; } .rawSchemaBox { margin-top: 16px; background: var(--bg-panel); color: var(--text-main); padding: 24px; border-radius: 12px; font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-x: auto; border: 1px solid rgba(255, 255, 255, 0.05); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2); } .spin { animation: spin 1s linear infinite; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .editorOverlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; animation: fadeIn 0.3s ease-out; border-radius: 8px; } .overlayText { font-size: 14px; font-weight: 800; color: var(--primary); letter-spacing: 0.1em; text-transform: uppercase; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } /* 5. AI Insight Block */ .aiInsightBox { background: var(--bg-hover); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 24px; margin-bottom: 32px; position: relative; overflow: hidden; } .aiInsightBox::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--primary); } .insightHeader { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; } .insightLabel { font-size: 10px; font-weight: 900; color: var(--primary); letter-spacing: 0.1em; text-transform: uppercase; } .insightText { font-size: 15px; line-height: 1.6; color: var(--text-main); font-weight: 500; font-style: italic; } /* 6. AI Growth Center Enhancements */ .headerTabs { display: flex; gap: 4px; background: rgba(255, 255, 255, 0.1); padding: 4px; border-radius: 12px; width: fit-content; border: 1px solid rgba(255, 255, 255, 0.1); } .tab { padding: 8px 20px; border-radius: 8px; border: none; background: none; color: rgba(255, 255, 255, 0.6); font-size: 11px; font-weight: 800; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 8px; } .tab.activeTab { background: var(--bg-card); color: var(--primary); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } .growthGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(450px, 1fr)); gap: 32px; flex: 1; } .growthGrid>.emptyState { grid-column: 1 / -1; } .insightCard { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 24px; position: relative; overflow: hidden; transition: all 0.3s; } .insightCard::after { content: ''; position: absolute; top: 0; right: 0; width: 100px; height: 100px; background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.05) 0%, transparent 70%); pointer-events: none; } .insightContent h3 { font-size: 20px; font-weight: 800; color: var(--text-main); margin-bottom: 8px; } .insightHeaderRow { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; } .insightType { font-size: 10px; font-weight: 900; color: var(--primary); text-transform: uppercase; letter-spacing: 0.1em; } .insightDept { font-size: 9px; font-weight: 800; color: var(--primary); background: var(--primary-glow); padding: 2px 8px; border-radius: 4px; } .reasoningBox { background: var(--bg-hover); padding: 16px; border-radius: 12px; border-left: 3px solid var(--primary); } .reasoningLabel { display: block; font-size: 10px; font-weight: 900; color: var(--text-muted); margin-bottom: 6px; } .reasoningText { font-size: 13px; color: var(--text-main); line-height: 1.5; font-style: italic; } .confidenceSection { display: flex; flex-direction: column; gap: 8px; } .confHeader { display: flex; justify-content: space-between; align-items: center; } .confHeader label { font-size: 10px; font-weight: 900; color: var(--text-muted); } .confValue { font-size: 12px; font-weight: 800; color: var(--primary); } .confMeter { height: 6px; background: var(--border-subtle); border-radius: 3px; overflow: hidden; } .confFill { height: 100%; background: linear-gradient(to right, #818CF8, #6366F1); border-radius: 3px; } .insightActions { display: flex; gap: 12px; margin-top: auto; } .applyBtn { flex: 2; background: var(--primary); color: white; border: none; padding: 12px; border-radius: 10px; font-weight: 800; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s; } .applyBtn:hover { background: #4F46E5; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2); } .dismissBtn { flex: 1; background: var(--bg-hover); color: var(--text-muted); border: none; padding: 12px; border-radius: 10px; font-weight: 800; font-size: 11px; cursor: pointer; transition: all 0.2s; } .dismissBtn:hover { background: var(--border-subtle); color: var(--text-muted); } .sourceTag { font-size: 9px; font-weight: 700; color: var(--text-muted); background: var(--bg-hover); padding: 2px 6px; border-radius: 4px; } /* AI Answer Spotlight */ .resultsContainer { display: flex; flex-direction: column; gap: 32px; width: 100%; } .aiSpotlight { background: var(--bg-card); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--border-subtle); border-radius: 24px; padding: 48px; position: relative; overflow: hidden; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03), inset 0 0 40px rgba(124, 58, 237, 0.02); margin-bottom: 32px; } .aiSpotlight::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--primary), #818CF8); } .aiSpotlight::after { content: ''; position: absolute; top: -50%; right: -10%; width: 300px; height: 300px; background: radial-gradient(circle, rgba(124, 58, 237, 0.05) 0%, transparent 70%); pointer-events: none; } .spotlightHeader { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; } .spotlightBadge { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 900; color: var(--primary); background: var(--primary-glow); padding: 8px 16px; border-radius: 8px; letter-spacing: 0.1em; text-transform: uppercase; } .syntheticLag { font-size: 9px; font-weight: 900; color: var(--success); background: var(--success-glow); padding: 4px 10px; border-radius: 6px; letter-spacing: 0.05em; border: 1px solid rgba(52, 211, 153, 0.2); } .answerText { font-size: 16.5px; line-height: 1.9; color: var(--text-main); font-weight: 500; margin: 0; max-width: 100%; letter-spacing: -0.01em; } .answerText p { margin-bottom: 24px; } .answerText ul, .answerText ol { margin: 32px 0; padding-left: 36px; list-style-type: disc; } .answerText li { margin-bottom: 16px; padding-left: 12px; color: var(--text-main); line-height: 1.8; } .spotlightFooter { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border-subtle); font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; } /* History Drawer Styles */ .historyContainer { padding: 32px; background: var(--bg-card); height: 100%; overflow-y: auto; } .historyHeader { display: flex; align-items: center; gap: 12px; color: var(--primary); margin-bottom: 8px; } .historyHeader h3 { font-size: 20px; font-weight: 800; margin: 0; } .historySub { font-size: 13px; color: var(--text-muted); margin-bottom: 32px; } .timelineList { display: flex; flex-direction: column; position: relative; border-left: 2px solid var(--border-subtle); margin-left: 14px; padding-left: 30px; gap: 32px; } .timelineNode { position: relative; display: flex; flex-direction: column; } .nodeDot { position: absolute; left: -38px; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--bg-card); border: 2px solid var(--primary); display: flex; align-items: center; justify-content: center; font-size: 8px; color: var(--primary); font-weight: 900; } .nodeContent { background: var(--bg-hover); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 16px 20px; transition: all 0.2s; } .nodeContent:hover { background: var(--bg-card); border-color: var(--primary); box-shadow: 0 4px 12px rgba(0,0,0,0.05); } .nodeHeader { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; } .nodeVersion { font-size: 14px; font-weight: 900; color: var(--text-main); } .nodeDate { font-size: 11px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.05em; } .nodeMeta { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-main); margin-bottom: 20px; } .restoreBtn { background: var(--bg-card); border: 1px solid var(--border-subtle); color: var(--text-main); padding: 8px 16px; border-radius: 6px; font-size: 11px; font-weight: 800; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: all 0.2s; } .restoreBtn:hover { background: var(--primary); color: white; border-color: var(--primary); } /* File Upload / Dropdown Styles */ .newIntelDropdownWrapper { position: relative; z-index: 50; } .newIntelDropdown { position: absolute; top: calc(100% + 8px); right: 0; width: 260px; background: var(--bg-card); border-radius: 12px; padding: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); border: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 4px; } .intelOption { background: none; border: none; text-align: left; padding: 12px; border-radius: 8px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 800; color: var(--text-main); transition: all 0.2s; } .intelOption span { font-size: 11px; font-weight: 500; color: var(--text-muted); } .intelOption:hover { background: var(--bg-hover); color: var(--primary); } .historyActions { display: flex; gap: 8px; margin-top: 12px; } .compareBtn { background: rgba(99, 102, 241, 0.1); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.2); padding: 4px 12px; border-radius: 6px; font-size: 10px; font-weight: 800; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: all 0.2s; } .compareBtn:hover { background: rgba(99, 102, 241, 0.2); transform: translateY(-1px); } .diffView { display: flex; flex-direction: column; gap: 16px; font-family: 'JetBrains Mono', 'Fira Code', monospace; } .diffHeader { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; background: rgba(255, 255, 255, 0.05); border-radius: 8px; font-size: 11px; font-weight: 800; color: var(--text-muted); } .exitDiff { background: none; border: 1px solid var(--border-subtle); color: var(--text-muted); padding: 2px 8px; border-radius: 4px; font-size: 9px; cursor: pointer; } .exitDiff:hover { color: var(--text-main); border-color: var(--text-muted); } .diffLines { display: flex; flex-direction: column; background: #0d1117; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-subtle); } .diffLine { display: flex; gap: 12px; padding: 2px 16px; font-size: 13px; line-height: 1.5; } .diffLine pre { margin: 0; white-space: pre-wrap; word-break: break-all; } .diffMarker { width: 12px; display: inline-block; text-align: center; opacity: 0.5; user-select: none; } .diffLine.added { background: rgba(46, 160, 67, 0.25); color: #7ee787; border-left: 4px solid #3fb950; } .diffLine.removed { background: rgba(248, 81, 73, 0.25); color: #ff7b72; text-decoration: line-through; border-left: 4px solid #f85149; } .diffLine.unchanged { color: #8b949e; border-left: 4px solid transparent; } .noChangesMsg { padding: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: var(--text-muted); text-align: center; } .noChangesMsg span { font-size: 14px; font-weight: 600; max-width: 300px; }
.container {
padding: 48px 64px;
background-color: var(--bg-dark);
min-height: calc(100vh - 120px);
display: flex;
flex-direction: column;
gap: 48px;
}
/* 1. Mission Banner */
.missionBanner {
background: #7c3aed; /* Fallback */
background: radial-gradient(circle at top right, #7c3aed, #4f46e5), var(--hero-mesh, none);
background-size: 200% 200%;
animation: meshGradient 20s ease infinite;
border-radius: 12px;
padding: 64px 40px;
color: white;
box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
position: relative;
overflow: visible;
display: flex;
flex-direction: column;
align-items: flex-start;
text-align: left;
}
@keyframes meshGradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
.bannerContent {
position: relative;
z-index: 1;
max-width: 1000px;
width: 100%;
display: flex;
flex-direction: column;
align-items: flex-start;
overflow: visible;
}
.headerBadge {
display: inline-block;
font-size: 10px;
font-weight: 900;
background: rgba(255, 255, 255, 0.2);
padding: 4px 10px;
border-radius: 4px;
margin-bottom: 24px;
letter-spacing: 0.1em;
}
.headerMainRow {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 32px;
margin-bottom: 16px;
width: 100%;
}
.missionBanner h1 {
font-size: 44px;
font-weight: 950;
letter-spacing: -0.04em;
margin: 0;
text-transform: uppercase;
background: linear-gradient(to bottom, #ffffff 30%, rgba(255, 255, 255, 0.85));
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.description {
font-size: 19px;
color: rgba(255, 255, 255, 0.9);
margin-bottom: 48px;
font-weight: 500;
max-width: 800px;
}
/* Search Controls */
.searchControls {
display: flex;
gap: 16px;
align-items: center;
width: 100%;