/* ── ReCR Human Eval · Mistral-Inspired Dark Purple Theme ────────── */ :root { --bg: #0B0B12; --surface: #111119; --card: #16161F; --card-hover: #1C1C28; --border: #252535; --border-light: #2F2F42; --primary: #7C3AED; --primary-hover:#6D28D9; --primary-soft: rgba(124, 58, 237, 0.12); --accent: #A78BFA; --text: #F3F4F6; --text-2: #C4C7CF; --text-3: #8B8FA3; --success: #10B981; --success-soft: rgba(16, 185, 129, 0.12); --warning: #F59E0B; --error: #EF4444; --radius: 10px; --radius-sm: 6px; --radius-lg: 16px; --shadow: 0 4px 24px rgba(0,0,0,.35); --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; } * { margin: 0; padding: 0; box-sizing: border-box; } html { font-size: 15px; } body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; } a { color: var(--accent); text-decoration: none; } a:hover { color: var(--primary); } /* ── Navbar ──────────────────────────────────────────────────────── */ .navbar { display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; height: 56px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; } .nav-brand { font-weight: 700; font-size: 1.05rem; color: var(--text); display: flex; align-items: center; gap: 0.5rem; } .brand-icon { color: var(--primary); font-size: 1.2rem; } .nav-links { display: flex; align-items: center; gap: 1.5rem; font-size: 0.9rem; } .nav-links a { color: var(--text-2); transition: color .15s; } .nav-links a:hover { color: var(--text); } .nav-user { color: var(--accent); font-weight: 500; } .nav-logout { color: var(--text-3) !important; } /* ── Container ───────────────────────────────────────────────────── */ .container { max-width: 1280px; margin: 0 auto; padding: 2rem 1.5rem; } /* ── Flash messages ──────────────────────────────────────────────── */ .flash-container { max-width: 1280px; margin: 1rem auto 0; padding: 0 1.5rem; } .flash { padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 0.5rem; } .flash-error { background: rgba(239,68,68,.12); color: #FCA5A5; border: 1px solid rgba(239,68,68,.2); } .flash-success { background: var(--success-soft); color: #6EE7B7; border: 1px solid rgba(16,185,129,.2); } /* ── Buttons ─────────────────────────────────────────────────────── */ .btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.6rem 1.4rem; border: none; border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all .15s; text-decoration: none; } .btn-primary { background: var(--primary); color: #fff; } .btn-primary:hover { background: var(--primary-hover); color: #fff; } .btn-primary:disabled { opacity: 0.4; cursor: not-allowed; } .btn-secondary { background: var(--card); color: var(--text-2); border: 1px solid var(--border); } .btn-secondary:hover { background: var(--card-hover); color: var(--text); } .btn-full { width: 100%; } .btn-lg { padding: 0.8rem 2rem; font-size: 1rem; } /* ── Auth page ───────────────────────────────────────────────────── */ .auth-wrapper { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 140px); } .auth-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 3rem; width: 100%; max-width: 440px; box-shadow: var(--shadow); } .auth-header { text-align: center; margin-bottom: 2rem; } .auth-icon { font-size: 2rem; color: var(--primary); display: block; margin-bottom: 0.75rem; } .auth-header h1 { font-size: 1.4rem; font-weight: 700; } .auth-subtitle { color: var(--text-3); font-size: 0.9rem; margin-top: 0.3rem; } .form-group { margin-bottom: 1.5rem; } .form-group label { display: block; font-size: 0.85rem; color: var(--text-2); margin-bottom: 0.4rem; font-weight: 500; } .form-group input { width: 100%; padding: 0.7rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-family: var(--font); font-size: 0.95rem; outline: none; transition: border-color .15s; } .form-group input:focus { border-color: var(--primary); } .auth-note { color: var(--text-3); font-size: 0.8rem; margin-top: 1.5rem; text-align: center; line-height: 1.5; } /* ── Guide page ──────────────────────────────────────────────────── */ .guide-page { max-width: 860px; margin: 0 auto; } .guide-page h1 { font-size: 1.8rem; margin-bottom: 0.5rem; } .guide-intro { color: var(--text-2); font-size: 1rem; margin-bottom: 2rem; } .guide-section { margin-bottom: 2rem; } .guide-section h2 { font-size: 1.15rem; color: var(--accent); margin-bottom: 0.75rem; } .guide-section p { color: var(--text-2); margin-bottom: 0.75rem; } .rating-guide { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); } .rating-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; } .rating-card h3 { font-size: 0.95rem; color: var(--primary); margin-bottom: 0.5rem; } .rating-card p { font-size: 0.85rem; color: var(--text-3); margin-bottom: 0.5rem; } .rating-card ul { list-style: none; font-size: 0.82rem; color: var(--text-2); } .rating-card li { padding: 0.15rem 0; } .rating-card li strong { color: var(--text); } .guide-tips { list-style: none; } .guide-tips li { padding: 0.3rem 0; color: var(--text-2); font-size: 0.95rem; } .guide-tips li::before { content: "→ "; color: var(--primary); font-weight: 600; } .guide-cta { text-align: center; margin-top: 2.5rem; } /* ── Dashboard ───────────────────────────────────────────────────── */ .dashboard-page { max-width: 960px; margin: 0 auto; } .dashboard-header { margin-bottom: 2rem; } .dashboard-header h1 { font-size: 1.6rem; } .dashboard-subtitle { color: var(--text-3); } .progress-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 2rem; margin-bottom: 2rem; } .progress-stats { display: flex; gap: 3rem; margin-bottom: 1rem; } .stat { display: flex; flex-direction: column; } .stat-value { font-size: 1.6rem; font-weight: 700; color: var(--primary); } .stat-label { font-size: 0.8rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; } .progress-bar-wrapper { height: 6px; background: var(--surface); border-radius: 3px; overflow: hidden; } .progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 3px; transition: width .3s; } .progress-pct { font-size: 0.8rem; color: var(--text-3); margin-top: 0.5rem; } .dashboard-actions { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; } .complete-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.5rem; background: var(--success-soft); border-radius: var(--radius-sm); color: #6EE7B7; font-weight: 500; } .complete-icon { font-size: 1.2rem; } .prompt-list h2 { font-size: 1.1rem; margin-bottom: 1rem; } .prompt-grid { display: flex; flex-direction: column; gap: 0.4rem; } .prompt-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--text-2); transition: all .15s; } .prompt-item:hover { background: var(--card-hover); color: var(--text); border-color: var(--border-light); } .prompt-item.done { border-left: 3px solid var(--success); } .prompt-num { color: var(--text-3); font-weight: 600; min-width: 2.5rem; } .prompt-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .prompt-check { color: var(--success); font-weight: 700; } /* ── Evaluate page ───────────────────────────────────────────────── */ .eval-page { max-width: 1400px; margin: 0 auto; } .eval-progress { position: relative; height: 4px; background: var(--surface); border-radius: 2px; margin-bottom: 1.5rem; overflow: hidden; } .eval-progress-bar { height: 100%; background: var(--primary); border-radius: 2px; transition: width .3s; } .eval-progress-text { position: absolute; right: 0; top: 8px; font-size: 0.75rem; color: var(--text-3); } .prompt-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; } .prompt-badge { display: inline-block; padding: 0.15rem 0.6rem; font-size: 0.7rem; background: var(--primary-soft); color: var(--accent); border-radius: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; } .prompt-full-text { font-size: 0.95rem; color: var(--text-2); line-height: 1.55; } /* Compare grid (pairwise) */ .compare-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr 1fr; margin-bottom: 1.5rem; } .compare-col { background: var(--card); border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, box-shadow .2s; } .compare-col.winner { border-color: var(--primary); box-shadow: 0 0 16px rgba(124,58,237,.2); } .compare-header { display: flex; align-items: center; justify-content: center; padding: 0.6rem 1rem; border-bottom: 1px solid var(--border); } .compare-label { font-weight: 700; font-size: 0.95rem; color: var(--accent); } .video-wrapper { position: relative; background: #000; } .video-wrapper video { width: 100%; display: block; max-height: 360px; object-fit: contain; } /* Preference buttons */ .pref-section { text-align: center; padding: 1.5rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1.5rem; } .pref-section h3 { font-size: 1rem; margin-bottom: 1rem; color: var(--text-2); } .pref-buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; } .pref-btn { padding: 0.7rem 2rem; border: 2px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: var(--radius-sm); font-family: var(--font); font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all .15s; min-width: 160px; } .pref-btn:hover { border-color: var(--primary); color: var(--text); background: var(--primary-soft); } .pref-btn.active { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 0 12px rgba(124,58,237,.3); } .pref-tie { min-width: 100px; } /* Info card */ .info-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; } .info-card h3 { font-size: 1rem; color: var(--accent); margin-bottom: 0.75rem; } .info-card p { font-size: 0.88rem; color: var(--text-2); margin-bottom: 0.5rem; } .info-card ol { font-size: 0.88rem; color: var(--text-2); padding-left: 1.5rem; } .info-card li { margin-bottom: 0.3rem; } .task-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.25rem; } .task-card h3 { font-size: 0.95rem; color: var(--primary); margin-bottom: 0.4rem; } .task-card p { font-size: 0.88rem; color: var(--text-2); } /* Win matrix cells */ .win-matrix td { text-align: center; font-size: 0.82rem; } .cell-diag { color: var(--text-3); } .cell-win { color: var(--success); font-weight: 600; } .cell-loss { color: var(--error); } /* Rating buttons */ .rating-group { padding: 0.75rem 1rem; } .rating-row { display: flex; align-items: center; justify-content: space-between; padding: 0.25rem 0; } .rating-dim { font-size: 0.75rem; color: var(--text-3); font-weight: 500; min-width: 100px; } .rating-buttons { display: flex; gap: 0.3rem; } .rate-btn { width: 32px; height: 28px; border: 1px solid var(--border); background: var(--surface); color: var(--text-3); border-radius: 4px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all .12s; font-family: var(--font); } .rate-btn:hover { border-color: var(--primary); color: var(--text); background: var(--primary-soft); } .rate-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 0 8px rgba(124,58,237,.3); } /* Eval nav */ .eval-nav { display: flex; align-items: center; justify-content: space-between; padding: 1.5rem 0; border-top: 1px solid var(--border); } /* ── Complete page ───────────────────────────────────────────────── */ .complete-page { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 200px); } .complete-card { text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 3rem 4rem; max-width: 500px; } .complete-icon-lg { font-size: 3rem; color: var(--success); margin-bottom: 1rem; } .complete-card h1 { font-size: 1.6rem; margin-bottom: 0.75rem; } .complete-card p { color: var(--text-2); font-size: 0.95rem; margin-bottom: 0.5rem; } .complete-note { color: var(--text-3); font-size: 0.85rem; } .complete-actions { margin-top: 2rem; } /* ── Admin page ──────────────────────────────────────────────────── */ .admin-page { max-width: 1100px; margin: 0 auto; } .admin-page h1 { font-size: 1.6rem; margin-bottom: 2rem; } .admin-section { margin-bottom: 2.5rem; } .admin-section h2 { font-size: 1.1rem; color: var(--accent); margin-bottom: 0.75rem; } .section-note { font-size: 0.82rem; color: var(--text-3); margin-bottom: 1rem; } .table-wrapper { overflow-x: auto; } table { width: 100%; border-collapse: collapse; font-size: 0.88rem; } thead th { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 2px solid var(--border); color: var(--text-3); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; } tbody td { padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--border); } tbody tr:hover { background: var(--card-hover); } .mini-progress { height: 4px; width: 100px; background: var(--surface); border-radius: 2px; overflow: hidden; } .mini-bar { height: 100%; background: var(--primary); border-radius: 2px; } .best-grid { display: flex; flex-direction: column; gap: 0.6rem; } .best-item { display: flex; align-items: center; gap: 1rem; } .best-name { min-width: 180px; font-size: 0.88rem; color: var(--text-2); } .best-bar-wrapper { flex: 1; height: 20px; background: var(--surface); border-radius: 4px; overflow: hidden; } .best-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 4px; } .best-pct { font-size: 0.8rem; color: var(--text-3); min-width: 80px; text-align: right; } .bt-bar-wrapper { height: 16px; background: var(--surface); border-radius: 4px; overflow: hidden; width: 200px; } .bt-bar { height: 100%; background: var(--primary); border-radius: 4px; } .export-buttons { display: flex; gap: 1rem; flex-wrap: wrap; } /* ── Footer ──────────────────────────────────────────────────────── */ .footer { text-align: center; padding: 2rem; color: var(--text-3); font-size: 0.75rem; border-top: 1px solid var(--border); margin-top: 3rem; } /* ── Responsive ──────────────────────────────────────────────────── */ @media (max-width: 900px) { .compare-grid { grid-template-columns: 1fr; } .pref-buttons { flex-direction: column; align-items: center; } .pref-btn { width: 100%; max-width: 300px; } } @media (max-width: 768px) { .navbar { padding: 0 1rem; } .container { padding: 1.5rem 1rem; } .progress-stats { gap: 1.5rem; } .auth-card { padding: 2rem 1.5rem; margin: 1rem; } .eval-nav { flex-wrap: wrap; gap: 0.5rem; } }