Spaces:
Sleeping
Sleeping
Commit Β·
ca9ee10
1
Parent(s): 55e5697
UI optimizations and email template
Browse filesFiles changed (6)
- email_templates/confirm-signup.htmlAdded+80
- email_templates/reset-password.htmlAdded+80
- frontend/admin.html+105-15
- frontend/index.html+2-2
- frontend/script.js+22-6
- frontend/style.css+167
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980<!-- Supabase email template: "Confirm signup" Paste into: Supabase Dashboard β Authentication β Email Templates β Confirm signup --><table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#0f1117" style="background-color:#0f1117; padding:40px 16px;"> <tr> <td align="center">
<table width="600" cellpadding="0" cellspacing="0" border="0" style="max-width:600px; width:100%;">
<!-- Brand --> <tr> <td align="center" style="padding-bottom:26px;"> <span style="font-family:'Segoe UI', Arial, sans-serif; font-size:26px; font-weight:700; color:#e8eaf0; letter-spacing:1px;"> <span style="color:#76b900;">◆</span> Docent AI </span><br> <span style="font-family:'Segoe UI', Arial, sans-serif; font-size:12px; letter-spacing:3px; color:#8b90a8; text-transform:uppercase;"> University Policy Assistant </span> </td> </tr>
<!-- Card --> <tr> <td bgcolor="#1a1d27" style="background-color:#1a1d27; border:1px solid #2e3350; border-radius:16px; padding:40px 36px;"> <table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr> <td align="center" style="font-family:'Segoe UI', Arial, sans-serif; font-size:22px; font-weight:700; color:#ffffff; padding-bottom:14px;"> Confirm your email </td> </tr>
<tr> <td align="center" style="font-family:'Segoe UI', Arial, sans-serif; font-size:15px; line-height:24px; color:#b7bccf; padding-bottom:30px;"> Welcome to Docent AI! You're one click away from asking questions about university policies and getting answers grounded in official documents. Please confirm that this is your email address. </td> </tr>
<!-- Button --> <tr> <td align="center" style="padding-bottom:30px;"> <a href="{{ .ConfirmationURL }}" target="_blank" style="display:inline-block; background-color:#76b900; color:#000000; font-family:'Segoe UI', Arial, sans-serif; font-size:16px; font-weight:700; text-decoration:none; padding:14px 44px; border-radius:999px;"> Confirm my email </a> </td> </tr>
<!-- Divider --> <tr> <td style="border-top:1px solid #2e3350; padding-top:22px; font-family:'Segoe UI', Arial, sans-serif; font-size:12px; line-height:19px; color:#8b90a8;"> If the button doesn't work, copy and paste this link into your browser:<br> <a href="{{ .ConfirmationURL }}" target="_blank" style="color:#76b900; word-break:break-all;">{{ .ConfirmationURL }}</a> </td> </tr>
<tr> <td style="padding-top:18px; font-family:'Segoe UI', Arial, sans-serif; font-size:12px; line-height:19px; color:#8b90a8;"> If you didn't create a Docent AI account, you can safely ignore this email. </td> </tr>
</table> </td> </tr>
<!-- Footer --> <tr> <td align="center" style="padding-top:24px; font-family:'Segoe UI', Arial, sans-serif; font-size:11px; line-height:18px; color:#5d637d;"> Docent AI — ask, and the documents answer.<br> This is an automated message; please don't reply to this email. </td> </tr>
</table>
</td> </tr></table>1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980<!-- Supabase email template: "Reset password" Paste into: Supabase Dashboard β Authentication β Email Templates β Reset password --><table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#0f1117" style="background-color:#0f1117; padding:40px 16px;"> <tr> <td align="center">
<table width="600" cellpadding="0" cellspacing="0" border="0" style="max-width:600px; width:100%;">
<!-- Brand --> <tr> <td align="center" style="padding-bottom:26px;"> <span style="font-family:'Segoe UI', Arial, sans-serif; font-size:26px; font-weight:700; color:#e8eaf0; letter-spacing:1px;"> <span style="color:#76b900;">◆</span> Docent AI </span><br> <span style="font-family:'Segoe UI', Arial, sans-serif; font-size:12px; letter-spacing:3px; color:#8b90a8; text-transform:uppercase;"> University Policy Assistant </span> </td> </tr>
<!-- Card --> <tr> <td bgcolor="#1a1d27" style="background-color:#1a1d27; border:1px solid #2e3350; border-radius:16px; padding:40px 36px;"> <table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr> <td align="center" style="font-family:'Segoe UI', Arial, sans-serif; font-size:22px; font-weight:700; color:#ffffff; padding-bottom:14px;"> Reset your password </td> </tr>
<tr> <td align="center" style="font-family:'Segoe UI', Arial, sans-serif; font-size:15px; line-height:24px; color:#b7bccf; padding-bottom:30px;"> We received a request to reset the password for your Docent AI account. Click the button below to choose a new password. </td> </tr>
<!-- Button --> <tr> <td align="center" style="padding-bottom:30px;"> <a href="{{ .ConfirmationURL }}" target="_blank" style="display:inline-block; background-color:#76b900; color:#000000; font-family:'Segoe UI', Arial, sans-serif; font-size:16px; font-weight:700; text-decoration:none; padding:14px 44px; border-radius:999px;"> Reset my password </a> </td> </tr>
<!-- Divider --> <tr> <td style="border-top:1px solid #2e3350; padding-top:22px; font-family:'Segoe UI', Arial, sans-serif; font-size:12px; line-height:19px; color:#8b90a8;"> If the button doesn't work, copy and paste this link into your browser:<br> <a href="{{ .ConfirmationURL }}" target="_blank" style="color:#76b900; word-break:break-all;">{{ .ConfirmationURL }}</a> </td> </tr>
<tr> <td style="padding-top:18px; font-family:'Segoe UI', Arial, sans-serif; font-size:12px; line-height:19px; color:#8b90a8;"> If you didn't request a password reset, you can safely ignore this email — your password will stay unchanged. For security, this link can only be used once. </td> </tr>
</table> </td> </tr>
<!-- Footer --> <tr> <td align="center" style="padding-top:24px; font-family:'Segoe UI', Arial, sans-serif; font-size:11px; line-height:18px; color:#5d637d;"> Docent AI — ask, and the documents answer.<br> This is an automated message; please don't reply to this email. </td> </tr>
</table>
</td> </tr></table>216 unmodified lines217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285142 unmodified lines42842943036836943143243343443543643743843944059 unmodified lines5005015024355035045055065075085095105115125135145155165175185195205215225235245251 unmodified line5275285295305314495325335344525355364545375385395405415 unmodified lines5475485494665505515524695535545555569 unmodified lines5665675684855695705715724895735745755762 unmodified lines579580581582583584498499500501502585586587588589590591592593594595216 unmodified lines .confirm-btn.danger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } .confirm-hint { margin-top: 12px; text-align: center; font-size: .7rem; color: var(--text-muted); }
/* ββ Motion system (matches the chat app) ββ */ :root { --ease: cubic-bezier(.22, .61, .36, 1); }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } } @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } } @keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } } @keyframes bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } } @keyframes width-grow { from { width: 0; } } @keyframes spin { to { transform: rotate(360deg); } }
.topbar { animation: rise-in .45s var(--ease) both; } .page-head { animation: rise-in .45s var(--ease) both .06s; }
/* Stat cards and panels cascade in on every (re)render */ .card { animation: pop-in .45s var(--ease) both; } .card:nth-child(1) { animation-delay: .05s; } .card:nth-child(2) { animation-delay: .11s; } .card:nth-child(3) { animation-delay: .17s; } .card:nth-child(4) { animation-delay: .23s; } .card:nth-child(5) { animation-delay: .29s; } .panel { animation: rise-in .5s var(--ease) both .18s; } .two-col .panel:nth-child(2) { animation-delay: .26s; }
.card { transition: transform .18s var(--ease), box-shadow .18s var(--ease); } .card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
/* Chart bars grow up from the baseline, one after another */ .chart .bar { transform-origin: bottom; animation: bar-grow .55s var(--ease) both; } .chart .bar .n { animation: fade-in .3s var(--ease) both .5s; }
/* Cited-documents bars sweep to their width */ .hbar-fill { animation: width-grow .7s var(--ease) both .15s; } .qlist li, .doclist li { animation: rise-in .4s var(--ease) both; }
.btn { transition: background .2s, border-color .2s, color .2s, transform .16s var(--ease), box-shadow .16s var(--ease); } .btn:hover { transform: translateY(-1px); } .btn:active { transform: translateY(0) scale(.97); }
#refreshBtn.loading svg { animation: spin .7s linear infinite; }
.confirm-backdrop { animation: fade-in .25s var(--ease) both; } .confirm-card { animation: pop-in .28s var(--ease) both; }
/* Theme switch: colours sweep instead of snapping */ html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), fill .35s var(--ease), stroke .35s var(--ease) !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
.doclist { list-style: none; display: flex; flex-direction: column; gap: 7px; max-height: 280px; overflow-y: auto; padding-right: 4px; } .doclist li { font-size: .78rem; padding: 8px 11px; background: var(--surface2);142 unmodified lines localStorage.setItem('docent-theme', theme); themeBtn.innerHTML = theme === 'light' ? ICON_MOON : ICON_SUN; } themeBtn.addEventListener('click', () => applyTheme(document.documentElement.dataset.theme === 'light' ? 'dark' : 'light')); themeBtn.addEventListener('click', () => { // Sweep the colour change instead of snapping (class lives ~450ms) document.documentElement.classList.add('theme-anim'); clearTimeout(themeBtn._t); themeBtn._t = setTimeout(() => document.documentElement.classList.remove('theme-anim'), 450); applyTheme(document.documentElement.dataset.theme === 'light' ? 'dark' : 'light'); }); applyTheme(localStorage.getItem('docent-theme') || 'dark');
document.getElementById('refreshBtn').addEventListener('click', () => loadData());59 unmodified lines return `<div class="card${warn ? ' warn' : ''}"> <span class="tile">${icon}</span> <div> <div class="value">${value}</div> <div class="value" data-count="${value}">${value}</div> <div class="label">${label}</div> </div> </div>`; }
/* Stat numbers count up from 0 as their card lands */ function countUp(el) { const target = parseInt(el.dataset.count, 10); if (!Number.isFinite(target) || target <= 0) return; const dur = 700, t0 = performance.now(); const tick = (t) => { const p = Math.min(1, (t - t0) / dur); const eased = 1 - Math.pow(1 - p, 3); // ease-out cubic el.textContent = Math.round(target * eased); if (p < 1) requestAnimationFrame(tick); }; requestAnimationFrame(tick); }
function render(a, docs) { document.getElementById('statGrid').innerHTML = card('💬', 'Questions asked', a.total_questions ?? 0) +1 unmodified line card('📄', 'Documents', a.total_documents ?? 0) + card('🧩', 'Indexed chunks', a.total_chunks ?? 0) + card('❓', 'Unanswered', a.unanswered_count ?? 0, (a.unanswered_count ?? 0) > 0); document.querySelectorAll('#statGrid .value').forEach(countUp);
// Daily chart // Daily chart β bars rise one after another, left to right const daily = a.daily_questions || []; const max = Math.max(1, ...daily.map(d => d.count)); document.getElementById('chart').innerHTML = daily.map(d => ` document.getElementById('chart').innerHTML = daily.map((d, i) => ` <div class="col"> <div class="bar${d.count ? '' : ' zero'}" style="height:${Math.max(2, Math.round((d.count / max) * 100))}%" <div class="bar${d.count ? '' : ' zero'}" style="height:${Math.max(2, Math.round((d.count / max) * 100))}%; animation-delay:${i * 35}ms" title="${d.date}: ${d.count} question${d.count === 1 ? '' : 's'}"> ${d.count ? `<span class="n">${d.count}</span>` : ''} </div>5 unmodified lines const cited = a.top_documents || []; const cmax = Math.max(1, ...cited.map(d => d.citations)); document.getElementById('citedBars').innerHTML = cited.length ? cited.map(d => ` ? cited.map((d, i) => ` <div class="hbar-row"> <span class="hbar-name" title="${esc(d.file)}">${esc(d.file)}</span> <div class="hbar-track"><div class="hbar-fill" style="width:${Math.round((d.citations / cmax) * 100)}%"></div></div> <div class="hbar-track"><div class="hbar-fill" style="width:${Math.round((d.citations / cmax) * 100)}%; animation-delay:${150 + i * 80}ms"></div></div> <span class="hbar-count">${d.citations}</span> </div>`).join('') : '<p style="font-size:.8rem;color:var(--text-muted);font-style:italic">No citations yet.</p>';9 unmodified lines
// Documents document.getElementById('docCount').textContent = `${(docs || []).length} files`; document.getElementById('docList').innerHTML = (docs || []).map(d => `<li>${esc(d)}</li>`).join('') document.getElementById('docList').innerHTML = (docs || []).map((d, i) => `<li style="animation-delay:${Math.min(i * 40, 400)}ms">${esc(d)}</li>`).join('') || '<li style="border-left-color:var(--border);color:var(--text-muted);font-style:italic">No documents ingested</li>';
// Unanswered document.getElementById('unansweredList').innerHTML = (a.recent_unanswered || []).map(q => `<li>${esc(q)}</li>`).join('') document.getElementById('unansweredList').innerHTML = (a.recent_unanswered || []).map((q, i) => `<li style="animation-delay:${Math.min(i * 50, 400)}ms">${esc(q)}</li>`).join('') || '<li class="empty">None β every question found an answer in the documents.</li>';
document.getElementById('updatedAt').textContent = `Updated ${new Date().toLocaleTimeString()}`;2 unmodified lines }
async function loadData() { const refreshBtn = document.getElementById('refreshBtn'); refreshBtn.classList.add('loading'); try { const [aRes, dRes] = await Promise.all([authedFetch('/analytics'), authedFetch('/documents')]); if (!aRes.ok) throw new Error('Could not load analytics.'); const analytics = await aRes.json(); const docs = dRes.ok ? (await dRes.json()).documents : []; render(analytics, docs); const [aRes, dRes] = await Promise.all([authedFetch('/analytics'), authedFetch('/documents')]); if (!aRes.ok) throw new Error('Could not load analytics.'); const analytics = await aRes.json(); const docs = dRes.ok ? (await dRes.json()).documents : []; render(analytics, docs); } finally { refreshBtn.classList.remove('loading'); } }
async function boot() {30 unmodified lines3132333434353637184 unmodified lines22222322422522522622730 unmodified lines if (t) document.documentElement.dataset.theme = t; })(); </script> <link rel="stylesheet" href="/static/style.css?v=15" /> <link rel="stylesheet" href="/static/style.css?v=16" /> <script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script> <script src="https://cdn.jsdelivr.net/npm/pdfjs-dist@3.11.174/build/pdf.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/marked@12/marked.min.js"></script>184 unmodified lines </div> </div>
<script src="/static/script.js?v=20"></script> <script src="/static/script.js?v=21"></script></body></html>69 unmodified lines707172737475767778798081433 unmodified lines51551651751251851952052152252352452545 unmodified lines57157257356757457557657757857958071 unmodified lines65265365464565565665765865964764864966066166266366466566666766869 unmodified lines}
function toggleTheme() { // Briefly let every surface transition its colours so the switch sweeps // smoothly instead of snapping document.documentElement.classList.add('theme-anim'); clearTimeout(toggleTheme._t); toggleTheme._t = setTimeout(() => document.documentElement.classList.remove('theme-anim'), 450); applyTheme(document.documentElement.dataset.theme === 'light' ? 'dark' : 'light');}
433 unmodified lines sessionList.innerHTML = '<li class="session-empty">No conversations yet</li>'; return; } sessions.forEach(s => { sessions.forEach((s, i) => { const li = document.createElement('li'); li.className = 'session-item' + (s.id === currentSessionId ? ' active' : ''); li.dataset.id = s.id; li.style.animationDelay = Math.min(i * 25, 250) + 'ms'; // cascade in
const titleSpan = document.createElement('span'); titleSpan.className = 'session-title';45 unmodified lines if (msgs.length === 0) { resetMessages(); } else { msgs.forEach(m => appendMessage(m.role, m.content, m.sources || [], { id: m.id, feedback: m.feedback })); msgs.forEach((m, i) => { const row = appendMessage(m.role, m.content, m.sources || [], { id: m.id, feedback: m.feedback }); row.style.animationDelay = Math.min(i * 40, 360) + 'ms'; // history cascades in }); } scrollToBottom(); } catch {71 unmodified linesasync function deleteSession(sessionId) { if (!await confirmDialog('Delete this conversation? This cannot be undone.')) return;
// Optimistic: remove from the sidebar immediately, roll back if the API fails // Optimistic: slide the item out of the sidebar, roll back if the API fails const li = sessionList.querySelector(`.session-item[data-id="${sessionId}"]`); if (li) { li.classList.add('removing'); setTimeout(() => { if (li) li.remove(); if (!sessionList.querySelector('.session-item')) { sessionList.innerHTML = '<li class="session-empty">No conversations yet</li>'; li.remove(); if (!sessionList.querySelector('.session-item')) { sessionList.innerHTML = '<li class="session-empty">No conversations yet</li>'; clearAllBtn.classList.add('hidden'); } }, 180); } if (sessionId === currentSessionId) startNewChat();
23 unmodified lines242526272829301325 unmodified lines135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152423 unmodified lines --ok-text: #b6e26a; --radius: 12px; --font: 'Segoe UI', system-ui, sans-serif; --ease: cubic-bezier(.22, .61, .36, 1); /* calm "swift out" curve */}
[data-theme="light"] {1325 unmodified lines .pdf-page-label { min-width: 44px; font-size: .74rem; } .pdf-btn { width: 28px; height: 28px; }}
/* ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ Motion system β one easing curve, transform/opacity only. Entrances choreograph the page; micro-interactions give feedback. ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; }}@keyframes fade-in { from { opacity: 0; } to { opacity: 1; }}@keyframes slide-in-left { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; }}@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; }}@keyframes item-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; }}@keyframes item-out { to { opacity: 0; transform: translateX(-12px); }}@keyframes shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-3px); } 40%, 60% { transform: translateX(3px); }}@keyframes brand-in { from { opacity: 0; transform: rotate(-90deg) scale(.4); } to { opacity: 1; transform: none; }}
/* ββ Auth screen choreography ββ */.auth-overlay { animation: fade-in .4s var(--ease) both; }
.auth-card { animation: pop-in .5s var(--ease) both; }
/* Card contents cascade in, one beat apart */.auth-card > *, .auth-form > * { animation: rise-in .45s var(--ease) both; }.auth-card > :nth-child(1) { animation-delay: .08s; }.auth-card > :nth-child(2) { animation-delay: .14s; }.auth-card > :nth-child(3) { animation-delay: .20s; }.auth-card > :nth-child(4) { animation-delay: .26s; }.auth-form > :nth-child(1) { animation-delay: .30s; }.auth-form > :nth-child(2) { animation-delay: .34s; }.auth-form > :nth-child(3) { animation-delay: .38s; }.auth-form > :nth-child(4) { animation-delay: .42s; }.auth-form > :nth-child(5) { animation-delay: .46s; }.auth-form > :nth-child(6) { animation-delay: .50s; }.auth-form > :nth-child(7) { animation-delay: .52s; }.auth-form > :nth-child(8) { animation-delay: .54s; }
.auth-brand .logo-icon { animation: brand-in .7s var(--ease) both .1s; }
.auth-message { animation: rise-in .3s var(--ease) both; }.auth-message.error { animation: shake .45s var(--ease) both; }
.auth-submit { transition: background .2s, opacity .2s, transform .18s var(--ease), box-shadow .18s var(--ease); }.auth-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(118, 185, 0, .28);}.auth-submit:active:not(:disabled) { transform: translateY(0) scale(.98); }
/* ββ App entrance (plays once when the shell appears) ββ *//* Desktop only: on mobile the sidebar is an off-canvas drawer whose translateX(-100%) must never be pinned by an animation's fill mode */@media (min-width: 821px) { .app-shell .sidebar { animation: slide-in-left .45s var(--ease) both; }}.app-shell .chat-header { animation: rise-in .45s var(--ease) both .08s; }.app-shell .messages { animation: fade-in .5s var(--ease) both .16s; }.app-shell .input-bar { animation: rise-in .45s var(--ease) both .2s; }
/* ββ Sidebar life ββ */.session-item { animation: item-in .3s var(--ease) both; }.session-item.removing { /* !important beats the inline cascade delay set at render time */ animation: item-out .18s var(--ease) forwards; animation-delay: 0s !important; pointer-events: none;}
.btn-new-chat, .btn-analytics, .btn-upload, .btn-logout { transition: border-color .2s, background .2s, transform .16s var(--ease), box-shadow .16s var(--ease);}.btn-new-chat:hover, .btn-analytics:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0, 0, 0, .18);}.btn-new-chat:active, .btn-analytics:active { transform: translateY(0); }.btn-upload:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(118, 185, 0, .25); }.btn-upload:not(:disabled):active { transform: translateY(0); }
.drop-zone.dragover { animation: drop-pulse 1.1s ease-in-out infinite; }@keyframes drop-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(118, 185, 0, .35); } 50% { box-shadow: 0 0 0 7px rgba(118, 185, 0, 0); }}
.doc-list li { animation: item-in .3s var(--ease) both; }
/* ββ Messages & their trimmings ββ */.message { animation: rise-in .32s var(--ease) both; }
.sources, .feedback-bar, .ref-img-grid, .ref-img-label { animation: fade-in .4s var(--ease) both .05s;}.ref-img-wrapper { animation: pop-in .35s var(--ease) both; }.ref-img-wrapper:nth-child(2) { animation-delay: .06s; }.ref-img-wrapper:nth-child(3) { animation-delay: .12s; }.ref-img-wrapper:nth-child(4) { animation-delay: .18s; }
.source-tag { transition: border-color .15s, background .15s, transform .15s var(--ease); }.source-tag:hover { transform: translateY(-1px); }
/* Starter chips cascade under the welcome bubble */.starter-chip { animation: rise-in .4s var(--ease) both; }.starter-chip:nth-child(1) { animation-delay: .10s; }.starter-chip:nth-child(2) { animation-delay: .16s; }.starter-chip:nth-child(3) { animation-delay: .22s; }.starter-chip:nth-child(4) { animation-delay: .28s; }.starter-chip:nth-child(5) { animation-delay: .34s; }.starter-chip:hover { transform: translateY(-1px); }.starter-chip { transition: border-color .15s, background .15s, transform .15s var(--ease); }
/* ββ Header buttons: gentle lift, theme icon turns ββ */.header-btn { transition: border-color .2s, transform .16s var(--ease); }.header-btn:hover { transform: translateY(-1px); }.header-btn svg, .theme-fab svg { transition: transform .35s var(--ease); }.header-btn:hover svg, .theme-fab:hover svg { transform: rotate(40deg); }
.btn-send { transition: background .2s, transform .16s var(--ease), box-shadow .16s var(--ease); }.btn-send:hover:not(:disabled) { transform: scale(1.06); box-shadow: 0 4px 14px rgba(118, 185, 0, .3); }.btn-send:active:not(:disabled) { transform: scale(.92); }
/* ββ Modals: backdrop fades, panel pops ββ */.confirm-backdrop, .pdf-modal-backdrop, .sidebar-backdrop { animation: fade-in .25s var(--ease) both; }.confirm-card { animation: pop-in .28s var(--ease) both; }.pdf-modal-panel { animation: pop-in .32s var(--ease) both; }
/* ββ Toast: settle up with a soft overshoot ββ */.toast { transition: opacity .3s var(--ease), transform .3s var(--ease); }
/* ββ Theme switch: colours sweep instead of snapping (class lives ~450ms) ββ */html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), fill .35s var(--ease), stroke .35s var(--ease) !important;}
/* ββ Reduced motion: everything appears instantly ββ */@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }}email_templates/confirm-signup.htmlAdded+80
email_templates/reset-password.htmlAdded+80
frontend/admin.html+105-15
frontend/index.html+2-2
frontend/script.js+22-6
frontend/style.css+167