/* ============================================ NEET Biology Q&A — CSS Design System Theme: Study Environment + Gradient Trust ============================================ */ /* ── Reset & Variables ──────────────────────── */ *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; } :root { /* Classic Matte Blue Palette — Professional & Classy */ --bg-dark: #0f172a; /* Deep matte slate */ --bg-surface: #1e293b; /* Matte card bg */ --bg-card: #1e293b; --bg-card-hover: #334155; /* Accent colors (Solid matte instead of gradients) */ --color-primary: #2563eb; /* Classic Blue */ --color-secondary: #3b82f6; --color-tertiary: #1e40af; /* Deep Blue */ /* Re-map specific components to solid colors */ --gradient-primary: var(--color-primary); --gradient-classify: var(--color-primary); --gradient-answer: var(--color-secondary); --gradient-full: var(--color-tertiary); --gradient-text: var(--color-primary); --gradient-success: #15803d; --gradient-warning: #b45309; /* Text */ --text-primary: #f8fafc; --text-secondary: #cbd5e1; --text-muted: #94a3b8; /* Borders (Solid matte instead of neon glow) */ --border-subtle: #334155; --border-glow: #475569; /* Effects (Flat/Soft shadow instead of glassmorphism) */ --glass-bg: #1e293b; --glass-border: #334155; --glass-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1); /* Sizing */ --max-width: 820px; --radius-sm: 6px; --radius-md: 8px; --radius-lg: 12px; --radius-xl: 16px; /* Transitions */ --transition-fast: 0.15s ease; --transition-normal: 0.2s ease; --transition-slow: 0.3s ease; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg-dark); color: var(--text-primary); min-height: 100vh; overflow-x: hidden; line-height: 1.6; } /* ── Ambient Background Orbs (Disabled for professional look) ──────────────── */ .ambient-bg { display: none; } /* ── Navbar ───────────────────────────────── */ .navbar { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; background: rgba(10, 14, 26, 0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border); } .nav-brand { display: flex; align-items: center; gap: 10px; } .nav-icon { font-size: 1.5rem; } .nav-title { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; } .nav-status { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-muted); } .status-dot { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; animation: pulse 2s ease-in-out infinite; } .status-dot.online { background: #10b981; } .status-dot.offline { background: #ef4444; animation: none; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } } /* ── Gradient Text (Flattened to solid color) ────────────────────────── */ .gradient-text { color: var(--color-secondary); } /* ── Main Container ───────────────────────── */ .main-container { position: relative; z-index: 1; max-width: var(--max-width); margin: 0 auto; padding: 0 20px 60px; } /* ── Hero Section ─────────────────────────── */ .hero { text-align: center; padding: 48px 0 36px; } .hero-title { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 14px; } .hero-subtitle { font-size: 1rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto; line-height: 1.6; } /* ── Matte Card ───────────────────────────── */ .glass-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); box-shadow: var(--glass-shadow); transition: border-color var(--transition-normal); } .glass-card:hover { border-color: var(--border-glow); } /* ── Input Section ────────────────────────── */ .input-section { margin-bottom: 28px; } .input-card { padding: 24px; } .input-header { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; } .input-icon { font-size: 1.2rem; } .input-label { font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; } .question-textarea { width: 100%; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 16px; color: var(--text-primary); font-family: 'Inter', sans-serif; font-size: 1rem; line-height: 1.6; resize: vertical; transition: border-color var(--transition-normal), box-shadow var(--transition-normal); outline: none; } .question-textarea::placeholder { color: var(--text-muted); } .question-textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); } .input-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; flex-wrap: wrap; gap: 12px; } .char-count { font-size: 0.8rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; } /* ── Action Buttons ───────────────────────── */ .action-buttons { display: flex; gap: 10px; flex-wrap: wrap; } .btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border: none; border-radius: var(--radius-md); font-family: 'Inter', sans-serif; font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: all var(--transition-normal); color: white; position: relative; overflow: hidden; } .btn::before { content: ''; position: absolute; inset: 0; opacity: 0; background: rgba(0, 0, 0, 0.1); /* Darken instead of glowing light on hover */ transition: opacity var(--transition-fast); } .btn:hover::before { opacity: 1; } .btn:active { transform: translateY(1px); /* More solid matte feel */ } .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; } .btn:disabled::before { opacity: 0; } .btn-classify { background: var(--gradient-classify); } .btn-answer { background: var(--gradient-answer); } .btn-full { background: var(--gradient-full); } .btn-retry { background: var(--gradient-primary); margin-top: 12px; } .btn-icon { font-size: 1rem; } /* ── Loading Section ──────────────────────── */ .loading-section { margin-bottom: 28px; } .loader-card { padding: 32px; text-align: center; } .loader-spinner { width: 44px; height: 44px; margin: 0 auto 16px; border: 3px solid var(--border-subtle); border-top-color: var(--color-primary); border-radius: 50%; animation: spin 0.8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } .loader-text { font-size: 1rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 12px; } .loader-steps { display: flex; flex-direction: column; gap: 6px; font-size: 0.82rem; color: var(--text-muted); } .loader-step { display: flex; align-items: center; justify-content: center; gap: 6px; opacity: 0; animation: fadeIn 0.4s ease forwards; } .loader-step.done { color: #10b981; } @keyframes fadeIn { to { opacity: 1; } } /* ── Result Cards ─────────────────────────── */ .results-section { display: flex; flex-direction: column; gap: 20px; animation: slideUp 0.5s ease; } @keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .result-card { padding: 24px; animation: slideUp 0.5s ease; } .card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border-subtle); } .card-icon { font-size: 1.2rem; } .card-title { font-size: 1.1rem; font-weight: 700; flex: 1; } /* ── Confidence Badge ─────────────────────── */ .confidence-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; font-family: 'JetBrains Mono', monospace; } .confidence-high { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.25); } .confidence-medium { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.25); } .confidence-low { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.25); } /* ── Classification Content ───────────────── */ .classification-content { display: flex; flex-direction: column; gap: 14px; } .chapter-info { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: rgba(37, 99, 235, 0.05); /* very soft blue */ border-radius: var(--radius-md); border: 1px solid rgba(37, 99, 235, 0.15); } .chapter-info .label { font-size: 0.78rem; font-weight: 600; color: var(--color-secondary); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; } .chapter-info .value { font-size: 1rem; font-weight: 600; color: var(--text-primary); } .topics-list { display: flex; flex-direction: column; gap: 8px; } .topic-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--bg-surface); border-radius: var(--radius-sm); border: 1px solid var(--border-subtle); transition: background var(--transition-fast); } .topic-item:hover { background: var(--bg-card-hover); } .topic-name { display: flex; align-items: center; gap: 8px; } .topic-code { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; font-weight: 500; color: var(--color-secondary); background: rgba(37, 99, 235, 0.1); padding: 2px 8px; border-radius: 4px; } .topic-title { font-size: 0.9rem; color: var(--text-primary); } .topic-similarity { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--text-muted); } /* ── Answer Content ───────────────────────── */ .answer-content { font-size: 0.95rem; line-height: 1.8; color: var(--text-primary); white-space: pre-wrap; } /* ── Verification Badge ───────────────────── */ .verification-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 600; } .verified-true { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.25); } .verified-false { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.25); } /* ── Justification List ───────────────────── */ .justification-list { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 10px; } .justification-list li { counter-increment: step; display: flex; gap: 12px; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; padding: 10px 14px; background: rgba(0, 0, 0, 0.2); border-radius: var(--radius-sm); border-left: 3px solid; border-image: var(--gradient-primary) 1; } .justification-list li::before { content: counter(step); display: flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; background: var(--gradient-primary); color: white; border-radius: 50%; font-size: 0.72rem; font-weight: 700; flex-shrink: 0; } /* ── Sources List ─────────────────────────── */ .sources-list { display: flex; flex-direction: column; gap: 10px; } .source-item { padding: 14px; background: var(--bg-surface); border-radius: var(--radius-md); border: 1px solid var(--border-subtle); transition: border-color var(--transition-fast); } .source-item:hover { border-color: var(--border-glow); } .source-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; } .source-chapter { font-size: 0.78rem; font-weight: 600; color: var(--color-secondary); background: rgba(37, 99, 235, 0.1); padding: 2px 8px; border-radius: 4px; } .source-section { font-size: 0.78rem; color: var(--text-muted); } .source-similarity { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--text-muted); margin-left: auto; } .source-text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } /* ── Error Section ────────────────────────── */ .error-card { padding: 28px; text-align: center; border: 1px solid rgba(239, 68, 68, 0.25); } .error-icon { font-size: 2rem; display: block; margin-bottom: 10px; } .error-message { color: #f87171; font-size: 0.95rem; margin-bottom: 4px; } /* ── Footer ───────────────────────────────── */ .footer { position: relative; z-index: 1; text-align: center; padding: 24px; font-size: 0.82rem; color: var(--text-muted); border-top: 1px solid var(--glass-border); } /* ── Responsive ───────────────────────────── */ @media (max-width: 640px) { .hero-title { font-size: 1.6rem; } .hero-subtitle { font-size: 0.88rem; } .action-buttons { width: 100%; } .btn { flex: 1; justify-content: center; padding: 10px 12px; font-size: 0.82rem; } .input-footer { flex-direction: column; align-items: stretch; } .char-count { text-align: right; } .topic-item { flex-direction: column; align-items: flex-start; gap: 6px; } .source-similarity { margin-left: 0; } }