Spaces:
3SCError404
/
Paused

nexus / frontend /apps /customer /src /components /KnowledgeBase.module.css
dushyantsingh0
backend stabilization
e6dd383
Raw History Blame Contribute Delete
8 kB
/* Customer Portal KB Premium Styles - Enterprise Slate Theme */
.container {
padding: 32px 48px;
color: var(--text-main);
}
.searchHero {
margin-bottom: 48px;
}
.searchHero h1 {
font-size: 32px;
font-weight: 800;
color: var(--text-main);
margin-bottom: 8px;
letter-spacing: -0.02em;
font-family: var(--font-header);
}
.description {
color: var(--text-muted);
font-size: 15px;
margin-bottom: 32px;
}
.searchControls {
display: flex;
gap: 20px;
align-items: center;
flex-wrap: wrap;
}
.searchWrapper {
position: relative;
flex: 1;
min-width: 320px;
}
.searchInput {
width: 100%;
padding: 16px 20px 16px 52px;
border-radius: 16px;
border: 1px solid var(--border-subtle);
font-size: 16px;
box-sizing: border-box;
outline: none;
background: rgba(255, 255, 255, 0.03);
color: var(--text-main);
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
transition: all 0.2s;
}
.searchInput:focus {
border-color: var(--primary);
background: rgba(255, 255, 255, 0.05);
box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}
.searchBtn {
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
background: var(--brand-gradient);
color: #fff !important;
border: none;
padding: 8px 20px;
border-radius: 10px;
cursor: pointer;
font-size: 13px;
font-weight: 800;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 4px 12px rgba(109, 40, 217, 0.4);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.searchBtn:hover {
transform: translateY(-50%) scale(1.05);
box-shadow: 0 6px 20px rgba(109, 40, 217, 0.5);
filter: brightness(1.1);
}
.searchIcon {
position: absolute;
left: 20px;
top: 50%;
transform: translateY(-50%);
color: var(--text-muted);
opacity: 0.5;
}
.searchPulse {
position: absolute;
right: 150px;
top: 50%;
transform: translateY(-50%);
display: flex;
align-items: center;
gap: 8px;
font-size: 10px;
font-weight: 800;
color: var(--neural-accent-violet);
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { opacity: 0.6; }
50% { opacity: 1; }
100% { opacity: 0.6; }
}
.pulseIcon {
animation: rotate 2s linear infinite;
}
@keyframes rotate {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
/* AI Answer Spotlight - Refined Mission Violet Glassmorphism */
.aiSpotlight {
max-width: 1100px;
margin: 0 auto 48px;
background: rgba(124, 58, 237, 0.03);
backdrop-filter: blur(20px) saturate(160%);
border: 1px solid rgba(124, 58, 237, 0.15);
border-radius: 24px;
padding: 40px;
position: relative;
box-shadow:
0 30px 60px -12px rgba(124, 58, 237, 0.1),
0 18px 36px -18px rgba(0, 0, 0, 0.3);
}
.aiSpotlight::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 3px;
background: linear-gradient(90deg, transparent, #7C3AED, transparent);
border-radius: 24px 24px 0 0;
}
.spotlightHeader {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24px;
}
.spotlightBadge {
display: flex;
align-items: center;
gap: 10px;
background: rgba(124, 58, 237, 0.1);
padding: 8px 16px;
border-radius: 12px;
color: #7C3AED;
font-size: 11px;
font-weight: 900;
text-transform: uppercase;
letter-spacing: 0.1em;
}
.syntheticFlag {
font-size: 10px;
font-weight: 800;
color: var(--success);
background: rgba(16, 185, 129, 0.1);
padding: 4px 8px;
border-radius: 4px;
}
.answerText {
font-size: 17px;
line-height: 1.8;
color: var(--text-main);
margin: 0;
}
.answerText p {
margin-bottom: 16px;
}
.answerText p:last-child {
margin-bottom: 0;
}
.answerText ul, .answerText ol {
margin-bottom: 16px;
padding-left: 24px;
}
.answerText li {
margin-bottom: 8px;
}
.answerText strong {
color: var(--primary);
font-weight: 800;
}
.spotlightFooter {
margin-top: 24px;
padding-top: 20px;
border-top: 1px solid var(--border-subtle);
font-size: 11px;
font-weight: 700;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.1em;
opacity: 0.6;
}
/* Articles Grid */
.articlesGrid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
gap: 32px;
max-width: 1100px;
margin: 0 auto;
}
.articleCard {
background: var(--bg-card);
border: 1px solid var(--border-subtle);
border-radius: 20px;
padding: 32px;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
display: flex;
flex-direction: column;
height: 100%;
}
.articleCard:hover {
transform: translateY(-4px);
background: rgba(255, 255, 255, 0.02);
border-color: var(--primary);
box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.cardHeader {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
}
.categoryBadge {
font-size: 10px;
font-weight: 900;
color: var(--neural-accent-violet);
text-transform: uppercase;
letter-spacing: 0.12em;
}
.matchBadge {
font-size: 10px;
font-weight: 800;
padding: 2px 8px;
border-radius: 4px;
}
.highMatch {
color: var(--success);
background: rgba(16, 185, 129, 0.1);
}
.regularMatch {
color: var(--neural-accent-violet);
background: rgba(139, 92, 246, 0.08);
font-weight: 900;
}
.articleTitle {
font-size: 22px;
font-weight: 800;
color: var(--text-main);
margin-bottom: 12px;
line-height: 1.2;
}
.articleSnippet {
font-size: 15px;
color: var(--text-muted);
line-height: 1.6;
margin-bottom: 24px;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.cardFooter {
display: flex;
justify-content: space-between;
align-items: center;
border-top: 1px solid var(--border-subtle);
padding-top: 24px;
margin-top: auto;
}
.articleDate {
font-size: 12px;
color: var(--text-muted);
font-weight: 500;
opacity: 0.6;
}
.readMore {
font-size: 13px;
font-weight: 700;
color: var(--primary);
}
/* Category Nav */
.categoryNav {
display: flex;
gap: 12px;
margin-bottom: 40px;
border-bottom: 1px solid var(--border-subtle);
padding-bottom: 16px;
overflow-x: auto;
}
.navItem {
padding: 8px 0;
border: none;
background: none;
font-size: 14px;
font-weight: 600;
cursor: pointer;
margin-right: 24px;
white-space: nowrap;
color: var(--text-muted);
transition: all 0.2s;
}
.navItemActive {
color: var(--primary);
font-weight: 800;
border-bottom: 2px solid var(--primary);
}
/* Article View Enhancements - Zen Mode */
.articleDetail {
padding: 60px;
max-width: 1400px;
margin: 0 auto;
color: var(--text-main);
}
.zenArticleContainer {
background: #fff;
border-radius: 32px;
padding: 80px;
border: 1px solid rgba(124, 58, 237, 0.08);
box-shadow:
0 40px 100px -20px rgba(124, 58, 237, 0.08),
0 10px 20px -10px rgba(0, 0, 0, 0.05);
margin-top: 32px;
position: relative;
overflow: hidden;
}
.backBtn {
background: none;
border: none;
color: var(--primary);
font-weight: 700;
font-size: 14px;
cursor: pointer;
margin-bottom: 32px;
display: flex;
align-items: center;
gap: 8px;
transition: transform 0.2s;
}
.backBtn:hover {
transform: translateX(-4px);
}
.mermaidContainer {
margin: 48px 0;
background: rgba(124, 58, 237, 0.02);
padding: 40px;
border-radius: 20px;
border: 1px dashed rgba(124, 58, 237, 0.2);
overflow-x: auto;
display: flex;
justify-content: center;
transition: all 0.3s;
}
.mermaidContainer:hover {
background: rgba(124, 58, 237, 0.04);
border-color: rgba(124, 58, 237, 0.4);
}
.markdownContent {
font-size: 16px;
line-height: 1.8;
color: var(--text-main);
}
.markdownContent h1, .markdownContent h2, .markdownContent h3 {
color: var(--text-main);
font-family: var(--font-header);
margin-top: 40px;
margin-bottom: 16px;
}
.shimmerText {
animation: shimmer 1.5s infinite linear;
}
@keyframes shimmer {
0% { opacity: 0.5; }
50% { opacity: 1; }
100% { opacity: 0.5; }
}