/* ── Variables ────────────────────────────────────────────────── */ :root { --primary: #2563eb; --primary-dark: #1d4ed8; --accent: #10b981; --accent-light: #d1fae5; --bg: #f8fafc; --card: #ffffff; --text: #1e293b; --muted: #64748b; --border: #e2e8f0; --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06); --shadow: 0 4px 16px rgba(0,0,0,.10); --shadow-lg: 0 10px 40px rgba(0,0,0,.12); --radius: 12px; --radius-sm: 8px; } body { background: var(--bg); color: var(--text); font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 0.95rem; } /* ── Navbar ───────────────────────────────────────────────────── */ .oc-nav { background: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.2); padding: 0.6rem 0; } .text-accent { color: var(--accent) !important; } .btn-accent { background: var(--accent); color: #fff; border: none; } .btn-accent:hover { background: #059669; color: #fff; } /* ── Footer ───────────────────────────────────────────────────── */ .oc-footer { background: var(--text); color: #94a3b8; } /* ── Hero ─────────────────────────────────────────────────────── */ .hero-section { background: linear-gradient(135deg, #eff6ff 0%, #ecfdf5 100%); border-bottom: 1px solid var(--border); } .text-gradient { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .bg-accent-light { background: var(--accent-light); } .hero-visual { padding: 1.5rem; } .hero-pill { display: flex; align-items: center; gap: 0.5rem; background: #fff; border: 1px solid var(--border); border-radius: 50px; padding: 0.5rem 1rem; box-shadow: var(--shadow-sm); font-size: 0.88rem; font-weight: 500; animation: floatIn 0.4s ease forwards; } .hero-pill-icon { font-size: 1.2rem; } @keyframes floatIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } /* ── Stats bar ────────────────────────────────────────────────── */ .stat-num { font-size: 2rem; font-weight: 800; line-height: 1; } .stat-lbl { font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; } /* ── Domain cards (landing) ───────────────────────────────────── */ .domain-card { border-radius: var(--radius) !important; transition: transform 0.2s, box-shadow 0.2s; cursor: default; } .domain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow) !important; } .domain-icon { font-size: 2.5rem; } /* ── How it works steps ───────────────────────────────────────── */ .step-card { padding: 1.5rem; } .step-num { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; background: var(--primary); color: #fff; border-radius: 50%; font-weight: 700; font-size: 1.1rem; margin: 0 auto 1rem; } /* ── Auth cards ───────────────────────────────────────────────── */ .auth-card { border-radius: var(--radius) !important; } .auth-icon-wrap { width: 3.5rem; height: 3.5rem; background: #eff6ff; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto; } /* ── Profile tabs ─────────────────────────────────────────────── */ .profile-tabs .nav-link { color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm) !important; padding: 0.5rem 0.9rem; font-size: 0.85rem; font-weight: 500; transition: all 0.15s; } .profile-tabs .nav-link.active, .profile-tabs .nav-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); } .profile-section { border-radius: var(--radius) !important; } .section-title { font-weight: 700; font-size: 1rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--border); margin-bottom: 0 !important; } .info-box { background: #eff6ff; border-radius: var(--radius-sm); padding: 0.75rem 1rem; font-size: 0.85rem; } /* Condition / intolerance checkboxes */ .condition-check, .intol-check, .activity-check { background: #f8fafc; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.6rem 0.8rem; margin: 0; cursor: pointer; transition: background 0.15s, border-color 0.15s; } .condition-check:has(.form-check-input:checked), .intol-check:has(.form-check-input:checked), .activity-check:has(.form-check-input:checked) { background: #eff6ff; border-color: var(--primary); } .condition-check .form-check-input, .intol-check .form-check-input, .activity-check .form-check-input { margin-top: 0.1rem; } .condition-check label, .intol-check label, .activity-check label { cursor: pointer; font-size: 0.875rem; } /* Activity level radio cards */ .activity-level-card { display: block; text-align: center; padding: 1rem 0.75rem; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: all 0.15s; background: #fff; user-select: none; } .activity-level-card input { display: none; } .activity-level-card:hover { border-color: var(--primary); background: #eff6ff; } .activity-level-card.selected { border-color: var(--primary); background: #eff6ff; } .act-icon { font-size: 1.75rem; margin-bottom: 0.25rem; } .act-label { font-size: 0.875rem; } .act-desc { font-size: 0.75rem; } /* Goal cards */ .goal-card { display: block; padding: 1rem; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: all 0.15s; background: #fff; user-select: none; text-align: center; } .goal-card input { display: none; } .goal-card:hover { border-color: var(--accent); background: #f0fdf4; } .goal-card.selected { border-color: var(--accent); background: #f0fdf4; } .goal-icon { font-size: 1.75rem; margin-bottom: 0.3rem; } .goal-title { font-size: 0.875rem; } .goal-desc { font-size: 0.75rem; } /* ── Dashboard ────────────────────────────────────────────────── */ .profile-summary-bar { border-radius: var(--radius) !important; } .avatar-circle { width: 2.75rem; height: 2.75rem; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; } .profile-badge { display: inline-flex; align-items: center; background: var(--bg); border: 1px solid var(--border); border-radius: 50px; padding: 0.25rem 0.7rem; font-size: 0.8rem; font-weight: 500; } .profile-badge-success { border-color: #86efac; background: #f0fdf4; color: #166534; } .profile-badge-warning { border-color: #fcd34d; background: #fffbeb; color: #92400e; } .profile-badge-danger { border-color: #fca5a5; background: #fef2f2; color: #991b1b; } .profile-badge-info { border-color: #93c5fd; background: #eff6ff; color: #1e40af; } .completeness-bar { height: 6px; border-radius: 3px; } /* Evidence badges */ .evidence-badge { display: inline-block; padding: 0.2rem 0.55rem; border-radius: 50px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em; } .ev-A { background: #dcfce7; color: #166534; } .ev-B { background: #fef9c3; color: #854d0e; } .ev-C { background: #ffedd5; color: #9a3412; } /* Domain section header */ .domain-header { border-bottom: 2px solid var(--border); padding-bottom: 0.75rem; } .domain-icon-lg { font-size: 2rem; } /* Recommendation cards */ .rec-card { border-radius: var(--radius) !important; cursor: pointer; transition: transform 0.18s, box-shadow 0.18s; } .rec-card:hover { transform: translateY(-3px); box-shadow: var(--shadow) !important; } .rec-icon { font-size: 1.5rem; } .rec-icon-lg { font-size: 2.5rem; } .rec-summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-clamp: 3; overflow: hidden; } /* Tag pills */ .tag-pill { display: inline-block; background: var(--bg); border: 1px solid var(--border); border-radius: 50px; padding: 0.15rem 0.55rem; font-size: 0.7rem; color: var(--muted); } .tag-pill-lg { font-size: 0.8rem; padding: 0.25rem 0.7rem; } /* Modal */ .rec-detail-box { background: #f8fafc; border-radius: var(--radius-sm); padding: 1rem; line-height: 1.7; } .source-box { background: #eff6ff; border-radius: var(--radius-sm); padding: 0.75rem 1rem; font-size: 0.85rem; } /* Empty state */ .empty-state { max-width: 400px; margin: 0 auto; } .empty-icon { font-size: 4rem; } /* ── Forms ────────────────────────────────────────────────────── */ .form-control, .form-select { border-radius: var(--radius-sm); border-color: var(--border); font-size: 0.9rem; } .form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.15); } .input-group-text { border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important; } .input-group .form-control { border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important; } /* ── Buttons ──────────────────────────────────────────────────── */ .btn-primary { background: var(--primary); border-color: var(--primary); border-radius: var(--radius-sm); } .btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); } .btn-outline-primary { color: var(--primary); border-color: var(--primary); border-radius: var(--radius-sm); } .btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); } /* ── Admin layout ─────────────────────────────────────────────── */ .admin-layout { display: flex; min-height: calc(100vh - 120px); gap: 0; } .admin-sidebar { width: 220px; flex-shrink: 0; background: var(--text); padding: 1.25rem 0; display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,.08); } .admin-sidebar-brand { color: #94a3b8; font-size: 0.75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 0 1.25rem 1rem; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: .5rem; } .admin-nav { list-style: none; padding: 0; margin: 0; flex: 1; } .admin-nav li { padding: 0 .5rem; } .admin-nav-link { display: flex; align-items: center; gap: .7rem; color: #94a3b8; text-decoration: none; padding: .6rem .75rem; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 500; transition: background .15s, color .15s; } .admin-nav-link:hover { background: rgba(255,255,255,.08); color: #e2e8f0; } .admin-nav-link.active { background: var(--primary); color: #fff; } .admin-nav-link i { width: 1.1rem; text-align: center; opacity: .8; } .admin-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; border-radius: 50px; font-size: .7rem; font-weight: 700; background: rgba(255,255,255,.15); color: #e2e8f0; } .admin-badge-danger { background: #dc2626; color: #fff; } .admin-sidebar-footer { padding: .5rem; border-top: 1px solid rgba(255,255,255,.08); margin-top: .5rem; } .admin-main { flex: 1; padding: 1.75rem 2rem; overflow-x: auto; background: var(--bg); } .admin-page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.75rem; gap: 1rem; flex-wrap: wrap; } .admin-page-title { font-size: 1.5rem; font-weight: 800; margin: 0; } /* Admin stat cards */ .admin-stat-card { display: flex; align-items: center; gap: 1rem; background: #fff; border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); } .admin-stat-icon { width: 2.75rem; height: 2.75rem; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; } .admin-stat-num { font-size: 1.75rem; font-weight: 800; line-height: 1; } .admin-stat-total { font-size: 1rem; color: var(--muted); font-weight: 400; } .admin-stat-lbl { font-size: .78rem; color: var(--muted); margin-top: .2rem; } /* Status list */ .admin-status-list li { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--border); font-size: .875rem; } .admin-status-list li:last-child { border-bottom: none; } /* Tables */ .admin-table th { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 2px solid var(--border); padding: .75rem 1rem; } .admin-table td { padding: .75rem 1rem; vertical-align: middle; } /* Domain badge in review */ .admin-domain-badge { background: #eff6ff; color: var(--primary); font-size: .75rem; font-weight: 600; } /* Review card */ .review-card { transition: box-shadow .15s; } .review-card:hover { box-shadow: var(--shadow) !important; } /* Admin check pills (checkboxes styled as tags) */ .admin-check-pill { display: inline-flex; align-items: center; gap: .3rem; background: #f8fafc; border: 1px solid var(--border); border-radius: 50px; padding: .2rem .6rem; font-size: .75rem; cursor: pointer; transition: background .12s, border-color .12s; user-select: none; } .admin-check-pill:has(input:checked) { background: #eff6ff; border-color: var(--primary); color: var(--primary); } .admin-check-pill input { display: none; } /* Tag pill variants */ .tag-pill-warn { background: #fff7ed; border-color: #fed7aa; color: #9a3412; } .tag-pill-blue { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; } .tag-pill-red { background: #fef2f2; border-color: #fecaca; color: #991b1b; } .tag-pill-green { background: #f0fdf4; border-color: #bbf7d0; color: #166534; } /* Domain divider in library */ .admin-domain-divider { font-size: .9rem; font-weight: 700; color: var(--muted); padding: 1rem 0 .4rem; border-bottom: 2px solid var(--border); margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .04em; } /* Admin note */ .admin-note { background: #fffbeb; border-radius: var(--radius-sm); padding: .35rem .6rem; border: 1px solid #fde68a; } /* ── Crawl log terminal ───────────────────────────────────────── */ .crawl-log-box { background: #0f172a; border-radius: var(--radius-sm); padding: .75rem 1rem; font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace; font-size: .78rem; max-height: 280px; overflow-y: auto; line-height: 1.6; } .crawl-log-line { color: #94a3b8; } .crawl-log-line.log-ok { color: #4ade80; } .crawl-log-line.log-err { color: #f87171; } .crawl-log-line.log-ai { color: #a78bfa; } /* ── Responsive ───────────────────────────────────────────────── */ @media (max-width: 768px) { .profile-tabs { gap: 0.25rem !important; } .profile-tabs .nav-link { font-size: 0.78rem; padding: 0.4rem 0.65rem; } .hero-section { padding: 2rem 0; } .display-4 { font-size: 2rem; } }