NeuralVault / frontend /src /App.css
Gaurav711's picture
feat: NeuralVault 2.0 - Complete Free-Tier Groq & ML Explainability Architecture
62c290b
Raw
History Blame Contribute Delete
8.63 kB
/* NeuralVault - Global Component Styles */
.nv-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 24px;
}
.nv-section {
padding: 72px 0;
}
/* Nav */
.nv-nav {
position: sticky;
top: 0;
z-index: 50;
transition: background-color 0.3s ease, border-color 0.3s ease;
border-bottom: 1px solid transparent;
}
.nv-nav.scrolled {
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
background: rgba(10, 10, 15, 0.92);
border-bottom-color: var(--border);
}
/* Cards */
.nv-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 12px;
padding: 20px 24px;
transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.nv-card:hover {
transform: translateY(-3px);
border-color: var(--purple-l);
box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.65);
}
/* Buttons */
.nv-btn-primary {
background: linear-gradient(135deg, #7C3AED, #A855F7);
color: white;
border: none;
border-radius: 8px;
padding: 11px 22px;
font-weight: 600;
font-size: 14px;
font-family: var(--font-body);
cursor: pointer;
transition: opacity 0.2s ease, transform 0.1s ease;
display: inline-flex;
align-items: center;
gap: 8px;
}
.nv-btn-primary:hover {
opacity: 0.9;
}
.nv-btn-primary:active {
transform: scale(0.98);
}
.nv-btn-primary:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.nv-btn-ghost {
background: transparent;
border: 1px solid var(--border);
color: var(--text2);
border-radius: 8px;
padding: 11px 22px;
font-weight: 600;
font-size: 14px;
font-family: var(--font-body);
cursor: pointer;
transition: border-color 0.2s ease, color 0.2s ease;
display: inline-flex;
align-items: center;
gap: 8px;
}
.nv-btn-ghost:hover {
border-color: var(--text3);
color: var(--text);
}
/* Badge styles */
.nv-badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 3px 12px;
border-radius: 999px;
font-size: 11px;
font-weight: 500;
font-family: var(--font-body);
}
.nv-badge-purple {
background: rgba(124, 58, 237, 0.12);
color: var(--purple-l);
border: 1px solid rgba(124, 58, 237, 0.25);
}
.nv-badge-teal {
background: rgba(20, 184, 166, 0.12);
color: var(--teal);
border: 1px solid rgba(20, 184, 166, 0.25);
}
.nv-badge-amber {
background: rgba(245, 158, 11, 0.12);
color: var(--amber);
border: 1px solid rgba(245, 158, 11, 0.25);
}
.nv-badge-red {
background: rgba(239, 68, 68, 0.12);
color: var(--red);
border: 1px solid rgba(239, 68, 68, 0.25);
}
.nv-badge-green {
background: rgba(74, 222, 128, 0.12);
color: var(--green);
border: 1px solid rgba(74, 222, 128, 0.25);
}
.nv-badge-gray {
background: rgba(107, 107, 138, 0.12);
color: var(--text2);
border: 1px solid rgba(107, 107, 138, 0.25);
}
/* Terminal */
.nv-terminal {
background: #0D1117;
border: 1px solid var(--border);
border-radius: 10px;
overflow: hidden;
}
.nv-terminal-header {
display: flex;
align-items: center;
padding: 12px 16px;
background: rgba(28, 28, 40, 0.5);
border-bottom: 1px solid var(--border);
gap: 8px;
}
.nv-terminal-dot {
width: 8px;
height: 8px;
border-radius: 50%;
}
.nv-terminal-body {
padding: 16px;
font-family: var(--font-mono);
font-size: 12px;
line-height: 1.7;
min-height: 200px;
overflow-x: auto;
}
/* Code block */
.nv-code-block {
background: #0D1117;
border-left: 3px solid var(--purple);
border-radius: 0 8px 8px 0;
padding: 16px;
font-family: var(--font-mono);
font-size: 12px;
line-height: 1.7;
overflow-x: auto;
white-space: pre-wrap;
word-break: break-word;
}
/* Tab strip */
.nv-tabs {
display: flex;
gap: 4px;
padding: 4px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 10px;
overflow-x: auto;
}
.nv-tab {
padding: 8px 16px;
border-radius: 8px;
font-size: 13px;
font-weight: 500;
color: var(--text2);
cursor: pointer;
transition: background-color 0.2s ease, color 0.2s ease;
border: none;
background: transparent;
font-family: var(--font-body);
white-space: nowrap;
}
.nv-tab:hover {
color: var(--text);
}
.nv-tab.active {
background: var(--surface2);
color: var(--text);
}
/* Input */
.nv-input, .nv-textarea {
background: var(--surface2);
border: 1px solid var(--border);
border-radius: 8px;
color: var(--text);
padding: 10px 14px;
font-family: var(--font-body);
font-size: 14px;
width: 100%;
transition: border-color 0.2s ease;
outline: none;
}
.nv-input:focus, .nv-textarea:focus {
border-color: var(--purple);
}
.nv-textarea {
resize: vertical;
min-height: 80px;
}
/* Chip */
.nv-chip {
display: inline-flex;
align-items: center;
padding: 6px 12px;
background: var(--surface2);
border: 1px solid var(--border);
border-radius: 8px;
font-size: 12px;
color: var(--text2);
cursor: pointer;
transition: border-color 0.2s ease, color 0.2s ease;
font-family: var(--font-body);
}
.nv-chip:hover {
border-color: var(--purple);
color: var(--text);
}
/* Loading steps */
.nv-step {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 0;
font-size: 13px;
color: var(--text3);
font-family: var(--font-mono);
transition: color 0.3s ease;
}
.nv-step.active {
color: var(--text);
}
.nv-step.done {
color: var(--green);
}
/* Score bar */
.nv-score-bar {
height: 6px;
background: var(--surface2);
border-radius: 3px;
overflow: hidden;
}
.nv-score-fill {
height: 100%;
border-radius: 3px;
transition: width 0.5s ease;
}
/* Expandable */
.nv-expandable {
border: 1px solid var(--border);
border-radius: 12px;
overflow: hidden;
transition: border-color 0.2s ease;
}
.nv-expandable:hover {
border-color: var(--text3);
}
.nv-expandable-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 20px;
cursor: pointer;
background: var(--surface);
user-select: none;
}
.nv-expandable-content {
padding: 0 20px;
max-height: 0;
overflow: hidden;
transition: max-height 0.4s ease, padding 0.4s ease;
}
.nv-expandable.open .nv-expandable-content {
max-height: 2000px;
padding: 0 20px 20px;
}
/* Failure card */
.nv-failure-card {
background: var(--surface);
border: 1px solid var(--border);
border-left: 3px solid var(--red);
border-radius: 12px;
padding: 24px;
}
/* Animate in */
.nv-animate-in {
opacity: 0;
transform: translateY(12px);
transition: opacity 0.5s ease, transform 0.5s ease;
}
.nv-animate-in.visible {
opacity: 1;
transform: translateY(0);
}
/* Typewriter cursor */
@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}
.nv-cursor {
display: inline-block;
width: 8px;
height: 16px;
background: var(--green);
animation: blink 1s infinite;
vertical-align: text-bottom;
margin-left: 2px;
}
/* Spinner */
@keyframes spin {
to { transform: rotate(360deg); }
}
.nv-spinner {
width: 14px;
height: 14px;
border: 2px solid var(--border);
border-top-color: var(--purple);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
/* Mobile */
@media (max-width: 768px) {
.nv-container {
padding: 0 16px;
}
.nv-section {
padding: 48px 0;
}
}
/* Reduced motion: respect user preference */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
.nv-cursor {
animation: none;
opacity: 1;
}
.nv-spinner {
animation-duration: 1.5s !important;
}
.nv-card:hover {
transform: none;
}
.nv-animate-in {
opacity: 1;
transform: none;
}
}
/* Focus visible styles for keyboard navigation */
*:focus-visible {
outline: 2px solid var(--purple-l);
outline-offset: 2px;
border-radius: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
outline: 2px solid var(--purple-l);
outline-offset: 2px;
}
.nv-tab:focus-visible {
outline: 2px solid var(--purple-l);
outline-offset: -2px;
}
/* Skip to content link */
.skip-to-content {
position: absolute;
left: -9999px;
top: auto;
width: 1px;
height: 1px;
overflow: hidden;
z-index: 100;
background: var(--purple);
color: white;
padding: 12px 24px;
font-size: 14px;
font-weight: 600;
border-radius: 0 0 8px 0;
text-decoration: none;
}
.skip-to-content:focus {
position: fixed;
left: 0;
top: 0;
width: auto;
height: auto;
overflow: visible;
outline: 2px solid var(--purple-l);
outline-offset: 2px;
}