Spaces:
Paused

miracle / frontend /apps /customer /src /components /KnowledgeBase.module.css
dushyantsingh0
backend stabilisation
ef9f115
Raw History Blame Contribute Delete
11.7 kB
/* Customer Portal KB - Solid Professional Enterprise Theme */
.container {
padding: 48px 64px;
color: var(--text-main);
background: var(--bg-dark);
min-height: 100vh;
font-family: var(--font-sans);
position: relative;
overflow-x: hidden;
}
.searchHero {
margin-bottom: 64px;
text-align: center;
max-width: 1000px;
margin-inline: auto;
position: relative;
z-index: 10;
}
.searchHero h1 {
font-size: 48px;
font-weight: 900;
color: var(--text-main);
margin-bottom: 12px;
letter-spacing: -0.03em;
font-family: var(--font-heading);
line-height: 1.2;
background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
display: inline-block;
}
.description {
color: var(--text-muted);
font-size: 16px;
margin-bottom: 48px;
font-family: var(--font-sans);
font-weight: 500;
line-height: 1.6;
max-width: 640px;
margin-inline: auto;
}
.searchControls {
display: flex;
flex-direction: column;
gap: 48px;
align-items: center;
width: 100%;
}
.searchWrapper {
position: relative;
width: 100%;
max-width: 880px;
box-shadow: 0 20px 40px rgba(0,0,0,0.04);
border-radius: 12px;
}
.searchInput {
width: 100%;
padding: 16px 280px 16px 64px;
border-radius: 12px;
border: 1.5px solid var(--border-subtle);
font-size: 14px;
box-sizing: border-box;
outline: none;
background: var(--bg-card);
color: var(--text-main);
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
font-family: var(--font-sans);
font-weight: 600;
}
.searchInput:focus {
border-color: var(--primary);
box-shadow: 0 0 0 1px var(--primary), 0 20px 40px rgba(0,0,0,0.06);
transform: translateY(-2px);
}
.searchBtn {
position: absolute;
right: 8px;
top: 50%;
transform: translateY(-50%);
background: var(--primary);
color: #ffffff !important;
border: none;
padding: 10px 28px;
border-radius: 8px;
cursor: pointer;
font-size: 14px;
font-weight: 800;
transition: all 0.2s ease;
text-transform: uppercase;
letter-spacing: 0.1em;
font-family: var(--font-heading);
}
.searchBtn:hover {
filter: brightness(1.05);
transform: translateY(-50%) translateY(-1px);
box-shadow: 0 10px 20px rgba(124, 58, 237, 0.2);
}
.searchIcon {
position: absolute;
left: 36px;
top: 50%;
transform: translateY(-50%);
color: var(--primary);
opacity: 0.8;
}
.searchPulse {
position: absolute;
right: 152px;
top: 50%;
transform: translateY(-50%);
display: flex;
align-items: center;
gap: 10px;
font-size: 11px;
font-weight: 800;
color: var(--primary);
font-family: var(--font-mono);
letter-spacing: 0.15em;
background: none;
padding: 0;
border-radius: 0;
animation: pulseFade 1.5s infinite;
pointer-events: none;
}
@keyframes pulseFade {
0% { opacity: 0.6; }
50% { opacity: 1; }
100% { opacity: 0.6; }
}
.filterBar {
display: flex;
gap: 40px;
justify-content: center;
align-items: center;
}
.categorySelectWrapper {
display: flex;
align-items: center;
gap: 16px;
}
.categoryLabel {
font-size: 12px;
font-weight: 800;
color: var(--text-muted);
letter-spacing: 0.1em;
text-transform: uppercase;
}
.customSelect {
position: relative;
display: flex;
align-items: center;
}
.customSelect select {
appearance: none;
background: var(--bg-card);
border: 1px solid var(--border-subtle);
padding: 12px 48px 12px 24px;
border-radius: 16px;
font-size: 13px;
font-weight: 700;
color: var(--text-main);
cursor: pointer;
transition: all 0.2s ease;
min-width: 240px;
font-family: var(--font-heading);
}
.customSelect select:hover {
border-color: var(--primary);
}
.selectIcon {
position: absolute;
right: 20px;
pointer-events: none;
color: var(--primary);
}
/* AI Answer Spotlight - Solid High Contrast */
.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;
margin-bottom: 48px;
box-shadow:
0 10px 40px rgba(0, 0, 0, 0.04),
inset 0 0 50px rgba(124, 58, 237, 0.03);
position: relative;
overflow: hidden;
}
.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: 12px;
background: var(--primary-glow);
padding: 10px 20px;
border-radius: 12px;
color: var(--primary);
font-size: 11px;
font-weight: 900;
text-transform: uppercase;
letter-spacing: 0.12em;
}
.syntheticFlag {
font-size: 9px;
font-weight: 900;
color: var(--success);
background: var(--success-glow);
padding: 6px 14px;
border-radius: 8px;
font-family: var(--font-mono);
letter-spacing: 0.05em;
border: 1px solid rgba(52, 211, 153, 0.2);
}
.confidenceTag {
font-size: 9px;
font-weight: 900;
color: var(--primary);
background: var(--primary-glow);
padding: 6px 14px;
border-radius: 8px;
font-family: var(--font-mono);
border: 1px solid rgba(124, 58, 237, 0.2);
letter-spacing: 0.05em;
}
.answerText {
font-size: 17.5px;
line-height: 1.9;
color: var(--text-main);
margin: 0;
font-family: var(--font-sans);
font-weight: 500;
max-width: 100%;
}
.answerText p {
margin-bottom: 24px;
}
.answerText ul,
.answerText ol {
margin: 24px 0;
padding-left: 36px;
list-style-type: disc;
}
.answerText li {
margin-bottom: 12px;
padding-left: 10px;
}
.spotlightFooter {
margin-top: 32px;
padding-top: 28px;
border-top: 1px solid var(--border-subtle);
font-size: 11px;
font-weight: 800;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.12em;
}
/* Results Grid & Cards - Solid Material */
.resultsContainer {
max-width: 1400px;
margin: 0 auto;
}
.articlesGrid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
gap: 32px;
margin-top: 48px;
}
.articleCard {
background: var(--bg-card);
border: 1px solid var(--border-subtle);
border-radius: 12px;
padding: 32px;
cursor: pointer;
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
display: flex;
flex-direction: column;
height: 100%;
position: relative;
box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.articleCard:hover {
transform: translateY(-6px);
border-color: var(--primary);
box-shadow: var(--shadow-xl);
}
.cardHeader {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 40px;
}
.categoryBadge {
font-size: 10px;
font-weight: 800;
color: var(--primary);
text-transform: uppercase;
letter-spacing: 0.08em;
background: var(--primary-glow);
padding: 8px 16px;
border-radius: 8px;
}
.matchBadge {
font-size: 11px;
font-weight: 800;
padding: 10px 18px;
border-radius: 14px;
font-family: var(--font-mono);
}
.highMatch {
color: var(--success);
background: var(--success-glow);
}
.regularMatch {
color: var(--primary);
background: var(--primary-glow);
}
.articleTitle {
font-size: 22px;
font-weight: 800;
color: var(--text-main);
margin-bottom: 16px;
line-height: 1.4;
letter-spacing: -0.02em;
font-family: var(--font-heading);
}
.articleSnippet {
font-size: 14px;
color: var(--text-muted);
line-height: 1.7;
margin-bottom: 32px;
display: -webkit-box;
-webkit-line-clamp: 3;
line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
font-weight: 400;
}
.cardFooter {
display: flex;
justify-content: flex-end; /* Right align the metadata */
align-items: center;
border-top: 1px solid var(--border-subtle);
padding-top: 32px;
margin-top: auto;
}
.cardMetadata {
display: flex;
align-items: center;
gap: 24px;
}
.metaItem {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
font-weight: 700;
color: var(--text-muted);
font-family: var(--font-mono);
}
.readMore {
font-size: 14px;
font-weight: 800;
color: var(--primary);
text-transform: uppercase;
letter-spacing: 0.05em;
display: flex;
align-items: center;
gap: 12px;
transition: all 0.2s ease;
}
.articleCard:hover .readMore {
gap: 18px;
}
/* Article View Enhancements - Zen Mode Solid */
.articleDetail {
padding: 80px;
max-width: 1400px;
margin: 0 auto;
}
.zenArticleContainer {
background: var(--bg-card);
border-radius: 32px;
padding: 64px 80px;
border: 1px solid var(--border-subtle);
box-shadow: var(--shadow-xl);
margin-top: 32px;
position: relative;
max-width: 1000px;
margin-inline: auto;
}
.articleHeader {
margin-bottom: 48px;
border-bottom: 1px solid var(--border-subtle);
padding-bottom: 48px;
}
.articleMeta {
display: flex;
align-items: center;
gap: 32px;
margin-bottom: 40px;
}
.metaItem {
display: flex;
align-items: center;
gap: 12px;
font-size: 13px;
font-weight: 700;
color: var(--text-muted);
text-transform: uppercase;
font-family: var(--font-mono);
}
.articleDetail h1 {
font-size: 48px;
font-weight: 900;
color: var(--text-main);
line-height: 1.2;
letter-spacing: -0.03em;
margin-bottom: 32px;
}
.accentBar {
width: 120px;
height: 8px;
background: var(--primary);
border-radius: 4px;
}
.backBtn {
background: none;
border: none;
color: var(--primary);
font-weight: 800;
font-size: 15px;
cursor: pointer;
margin-bottom: 60px;
display: flex;
align-items: center;
gap: 16px;
transition: all 0.2s ease;
text-transform: uppercase;
letter-spacing: 0.1em;
}
.backBtn:hover {
transform: translateX(-8px);
}
.markdownContent {
font-size: 18px;
line-height: 1.8;
color: var(--text-main);
font-weight: 400;
max-width: 880px;
}
.loadingContainer {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 160px 0;
gap: 40px;
}
.spinner {
width: 72px;
height: 72px;
border: 6px solid var(--bg-hover);
border-top-color: var(--primary);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.assistanceSection {
margin-top: 80px;
padding: 64px 48px;
background: var(--bg-card);
border-radius: 32px;
text-align: center;
border: 1px solid var(--border-subtle);
box-shadow: var(--shadow-lg);
max-width: 1000px;
margin-inline: auto;
position: relative;
overflow: hidden;
}
.assistanceSection h3 {
font-size: 32px;
font-weight: 900;
color: var(--text-main);
margin-bottom: 16px;
letter-spacing: -0.02em;
}
.assistanceSection p {
font-size: 16px;
color: var(--text-muted);
margin-bottom: 48px;
max-width: 540px;
margin-inline: auto;
line-height: 1.7;
}
.newTicketBtn {
background: var(--primary);
color: #fff !important;
border: none;
padding: 18px 48px;
border-radius: 20px;
cursor: pointer;
font-weight: 900;
font-size: 15px;
box-shadow: 0 15px 30px var(--primary-glow);
transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
text-transform: uppercase;
letter-spacing: 0.15em;
display: inline-flex;
align-items: center;
gap: 12px;
}
.newTicketBtn:hover {
transform: translateY(-4px);
box-shadow: 0 20px 40px var(--primary-glow);
}