-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
666 lines (585 loc) · 31.8 KB
/
Copy pathindex.html
File metadata and controls
666 lines (585 loc) · 31.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<title>Stash — Your school papers, sorted</title>
<meta name="theme-color" content="#0A0F1E">
<link rel="manifest" href="manifest.json">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="toast" id="toast"></div>
<!-- ============ MARKETING SHELL (#landing, #pricing) ============ -->
<div id="marketingShell" class="marketing-shell hidden">
<header class="marketing-nav">
<a class="brand" href="#landing">
<svg width="28" height="28" viewBox="0 0 34 34" fill="none"><rect width="34" height="34" rx="9" fill="var(--accent)"/><path d="M9 11h16M9 17h16M9 23h10" stroke="var(--bg)" stroke-width="2.4" stroke-linecap="round"/></svg>
<span>Stash</span>
</a>
<nav class="marketing-links">
<a href="#landing">Home</a>
<a href="#pricing">Pricing</a>
</nav>
<div class="marketing-actions">
<a class="btn btn-ghost btn-sm" href="#login">Log in</a>
<a class="btn btn-primary btn-sm" href="#signup">Get started</a>
</div>
</header>
<!-- ---- LANDING ---- -->
<section class="view" id="view-landing">
<div class="hero">
<span class="hero-tag">Built for Nigerian campuses</span>
<h1>Every receipt, docket, and admin file — in one stash.</h1>
<p class="hero-sub">Scan your Remita slips, tag them by level and semester, and compile a clean clearance PDF in seconds. No more digging through screenshots at 11pm before submission.</p>
<div class="hero-actions">
<a class="btn btn-primary btn-lg" href="#signup">Create your vault</a>
<a class="btn btn-secondary btn-lg" href="#pricing">See pricing</a>
</div>
</div>
<div class="feature-grid">
<div class="feature-card">
<div class="feature-icon"><i data-ic="upload"></i></div>
<h3>Scan & auto-tag</h3>
<p>Snap a photo of any receipt or docket — Stash reads the RRR, amount and date for you.</p>
</div>
<div class="feature-card">
<div class="feature-icon"><i data-ic="stack"></i></div>
<h3>One-tap clearance</h3>
<p>Pick a semester's receipts and compile them into a single PDF ready for submission.</p>
</div>
<div class="feature-card">
<div class="feature-icon"><i data-ic="pin"></i></div>
<h3>Cafe quick-print</h3>
<p>Generate a short-lived PIN so any cyber cafe can print one file — no login needed.</p>
</div>
</div>
</section>
<!-- ---- PRICING ---- -->
<section class="view" id="view-pricing" hidden>
<div class="pricing-head">
<h1>Simple pricing for busy semesters</h1>
<p class="hero-sub">Start free. Upgrade only if you need more room or unlimited cafe PINs.</p>
</div>
<div class="pricing-grid" id="pricingGrid"></div>
<div class="section-divider"></div>
<div class="faq-section" id="landingFaqs">
<h2>Questions students ask</h2>
<div id="landingFaqList"></div>
</div>
</section>
<footer class="marketing-footer">
<span>© 2026 Stash. Made for students, by students.</span>
</footer>
</div>
<!-- ============ AUTH SHELL (#login, #signup) — split layout ============ -->
<div id="authShell" class="auth-shell hidden">
<section class="auth-panel">
<div class="auth-panel-inner">
<a class="brand" href="#landing">
<svg width="34" height="34" viewBox="0 0 34 34" fill="none"><rect width="34" height="34" rx="9" fill="var(--accent)"/><path d="M9 11h16M9 17h16M9 23h10" stroke="var(--bg)" stroke-width="2.4" stroke-linecap="round"/></svg>
<span>Stash</span>
</a>
<!-- ===== LOGIN VIEW ===== -->
<div class="view" id="view-login">
<h1>Welcome back</h1>
<p class="auth-sub">Sign in to reach your receipts, dockets, and admin files.</p>
<button type="button" class="btn btn-social" id="googleLoginBtn">
<svg width="18" height="18" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">
<path fill="#4285F4" d="M17.64 9.2c0-.64-.06-1.25-.16-1.84H9v3.48h4.84a4.14 4.14 0 0 1-1.8 2.72v2.26h2.9c1.7-1.57 2.7-3.88 2.7-6.62z"/>
<path fill="#34A853" d="M9 18c2.43 0 4.47-.8 5.96-2.18l-2.9-2.26c-.8.54-1.84.86-3.06.86-2.35 0-4.34-1.59-5.05-3.72H.94v2.33A9 9 0 0 0 9 18z"/>
<path fill="#FBBC05" d="M3.95 10.7A5.4 5.4 0 0 1 3.67 9c0-.59.1-1.16.28-1.7V4.97H.94A9 9 0 0 0 0 9c0 1.45.35 2.83.94 4.03l3.01-2.33z"/>
<path fill="#EA4335" d="M9 3.58c1.32 0 2.5.45 3.44 1.35l2.58-2.58C13.46.89 11.43 0 9 0A9 9 0 0 0 .94 4.97l3.01 2.33C4.66 5.17 6.65 3.58 9 3.58z"/>
</svg>
<span>Continue with Google (Demo)</span>
</button>
<div class="divider"><span>OR</span></div>
<form id="loginForm" novalidate>
<label class="field">
<span>Matric number or email</span>
<input type="text" id="loginId" placeholder="e.g. 20/1234 or you@school.edu" required>
</label>
<div class="password-row">
<label class="field-label" for="loginPassword">Password</label>
<button type="button" class="forgot-link" id="openForgotModal">Forgot password?</button>
</div>
<div class="password-field">
<input type="password" id="loginPassword" placeholder="••••••••" required>
<button type="button" class="pw-toggle" data-target="loginPassword" aria-label="Show password"><i data-ic="eye"></i></button>
</div>
<span class="field-error hidden" id="loginError">That matric number/email and password don't match.</span>
<label class="remember-row">
<input type="checkbox" id="rememberMe" checked>
<span>Remember me on this device</span>
</label>
<button type="submit" class="btn btn-primary btn-block">Log in</button>
</form>
<p class="auth-switch">New here? <a href="#signup">Create an account</a></p>
<a href="#print-portal" class="cafe-link">Need to print at a cafe? <span>Open Cafe Print →</span></a>
</div>
<!-- ===== SIGNUP VIEW ===== -->
<div class="view" id="view-signup" hidden>
<h1>Set up your stash</h1>
<p class="auth-sub">A few details so we can tag your documents correctly.</p>
<button type="button" class="btn btn-social" id="googleSignupBtn">
<svg width="18" height="18" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg">
<path fill="#4285F4" d="M17.64 9.2c0-.64-.06-1.25-.16-1.84H9v3.48h4.84a4.14 4.14 0 0 1-1.8 2.72v2.26h2.9c1.7-1.57 2.7-3.88 2.7-6.62z"/>
<path fill="#34A853" d="M9 18c2.43 0 4.47-.8 5.96-2.18l-2.9-2.26c-.8.54-1.84.86-3.06.86-2.35 0-4.34-1.59-5.05-3.72H.94v2.33A9 9 0 0 0 9 18z"/>
<path fill="#FBBC05" d="M3.95 10.7A5.4 5.4 0 0 1 3.67 9c0-.59.1-1.16.28-1.7V4.97H.94A9 9 0 0 0 0 9c0 1.45.35 2.83.94 4.03l3.01-2.33z"/>
<path fill="#EA4335" d="M9 3.58c1.32 0 2.5.45 3.44 1.35l2.58-2.58C13.46.89 11.43 0 9 0A9 9 0 0 0 .94 4.97l3.01 2.33C4.66 5.17 6.65 3.58 9 3.58z"/>
</svg>
<span>Continue with Google (Demo)</span>
</button>
<div class="divider"><span>OR</span></div>
<form id="signupForm" novalidate>
<label class="field"><span>Full name</span><input type="text" id="suName" placeholder="Adaeze Okafor" required></label>
<label class="field"><span>Matric number</span><input type="text" id="suMatric" placeholder="e.g. 20/1234" required></label>
<label class="field"><span>Level</span><select id="suLevel"></select></label>
<label class="field"><span>Email</span><input type="email" id="suEmail" placeholder="you@school.edu" required></label>
<label class="field">
<span>Password</span>
<div class="password-field">
<input type="password" id="suPassword" placeholder="Create a password" required minlength="6">
<button type="button" class="pw-toggle" data-target="suPassword" aria-label="Show password"><i data-ic="eye"></i></button>
</div>
</label>
<label class="field">
<span>Confirm password</span>
<div class="password-field">
<input type="password" id="suConfirmPassword" placeholder="Re-enter your password" required minlength="6">
<button type="button" class="pw-toggle" data-target="suConfirmPassword" aria-label="Show password"><i data-ic="eye"></i></button>
</div>
</label>
<span class="field-error hidden" id="signupError">Passwords don't match.</span>
<button type="submit" class="btn btn-primary btn-block">Create account</button>
</form>
<p class="auth-switch">Already registered? <a href="#login">Log in</a></p>
</div>
</div>
</section>
<aside class="auth-showcase">
<div class="showcase-card">
<div class="showcase-tag">Semester close-out</div>
<div class="showcase-title">Clearance packet ready in one tap</div>
<div class="showcase-body">
<div class="mini-doc"><span>ACC 102</span><small>Receipt · ₦8,500</small></div>
<div class="mini-doc"><span>AMS 104</span><small>Docket · Verified</small></div>
<div class="mini-doc"><span>Hostel fee</span><small>Receipt · ₦45,000</small></div>
</div>
<button class="showcase-btn" type="button">Compile 3 files → 1 PDF</button>
</div>
</aside>
</div>
<!-- ============ FORGOT PASSWORD MODAL ============ -->
<div class="modal-overlay hidden" id="forgotModal">
<div class="modal">
<button type="button" class="modal-close" id="closeForgotModal" aria-label="Close">×</button>
<h2>Reset your password</h2>
<p class="auth-sub">Enter the email or matric number tied to your account and we'll send a reset link.</p>
<form id="forgotForm" novalidate>
<label class="field"><span>Matric number or email</span><input type="text" id="forgotId" placeholder="e.g. 20/1234 or you@school.edu" required></label>
<button type="submit" class="btn btn-primary btn-block">Send reset link</button>
</form>
<p class="auth-hint hidden" id="forgotConfirmation">Check your inbox for a link to reset your password.</p>
</div>
</div>
<!-- ============ DELETE ACCOUNT MODAL ============ -->
<div class="modal-overlay hidden" id="deleteAccountModal">
<div class="modal">
<button type="button" class="modal-close" id="closeDeleteAccountModal" aria-label="Close">×</button>
<h2>Delete your account?</h2>
<p class="auth-sub">This permanently removes your profile and every document in your vault. This cannot be undone. Enter your password to confirm.</p>
<form id="deleteAccountForm" novalidate>
<label class="field">
<span>Password</span>
<div class="password-field">
<input type="password" id="deleteAccountPassword" placeholder="••••••••" required>
<button type="button" class="pw-toggle" data-target="deleteAccountPassword" aria-label="Show password"><i data-ic="eye"></i></button>
</div>
</label>
<span class="field-error hidden" id="deleteAccountError">That password isn't correct.</span>
<button type="submit" class="btn btn-danger btn-block">Permanently delete account</button>
</form>
</div>
</div>
<!-- ============ DOCUMENT PREVIEW / EDIT MODAL ============ -->
<div class="modal-overlay hidden" id="docModal">
<div class="modal modal-lg">
<div class="modal-mobile-header">
<button type="button" class="modal-back-btn" id="docModalBackBtn">← Documents</button>
</div>
<button type="button" class="modal-close" id="closeDocModal" aria-label="Close">×</button>
<div class="doc-modal-grid">
<div class="doc-preview-pane" id="docPreviewPane"></div>
<form class="doc-edit-pane" id="docEditForm" novalidate>
<label class="field">
<span>Document name <em class="detected-tag hidden" data-tag="name">suggested from document</em></span>
<input type="text" id="editName" required>
</label>
<button type="button" class="link-btn hidden" id="useOriginalNameBtn">Use original filename</button>
<p class="doc-modal-meta" id="docModalMeta"></p>
<p class="doc-detected-info hidden" id="docDetectedInfo"></p>
<div class="field-row">
<label class="field"><span>Reference type</span><select id="editReferenceType"></select></label>
<label class="field"><span>Reference number <em class="detected-tag hidden" data-tag="referenceNumber">detected</em></span><input type="text" id="editReferenceNumber" placeholder="\u2014"></label>
</div>
<div class="field-row">
<label class="field"><span>Amount (₦) <em class="detected-tag hidden" data-tag="amount">detected</em></span><input type="text" id="editAmount" placeholder="\u2014"></label>
<label class="field"><span>Date <em class="detected-tag hidden" data-tag="date">detected</em></span><input type="date" id="editDate"></label>
</div>
<div class="field-row">
<label class="field"><span>Category <em class="detected-tag hidden" data-tag="category">suggested</em></span><select id="editCategory"></select></label>
<label class="field"><span>Level <em class="detected-tag hidden" data-tag="level">detected</em></span><select id="editLevel"></select></label>
</div>
<div class="field-row">
<label class="field"><span>Semester <em class="detected-tag hidden" data-tag="semester">detected</em></span><select id="editSemester"></select></label>
<label class="field"><span>Course code (optional)</span><input type="text" id="editCourse"></label>
</div>
<div class="ocr-text-box hidden" id="ocrTextBox">
<div class="ocr-text-head">
<span class="field-label" id="ocrStatusLabel">Text detected on scan</span>
<div class="ocr-text-actions">
<button type="button" class="link-btn hidden" id="copyOcrTextBtn">Copy text</button>
<button type="button" class="link-btn hidden" id="rerunOcrBtn">Rerun OCR</button>
</div>
</div>
<textarea id="ocrTextContent" rows="4" placeholder="No text extracted yet."></textarea>
</div>
<div class="drop-actions">
<button type="button" class="btn btn-danger" id="deleteDocBtn">Delete</button>
<button type="button" class="btn btn-secondary" id="downloadDocBtn">Download</button>
<button type="button" class="btn btn-secondary" id="printDocBtn"><i data-ic="stack"></i>Print</button>
<button type="submit" class="btn btn-primary">Save changes</button>
</div>
</form>
</div>
</div>
</div>
<!-- ============ APP SHELL (all 8 tabs) ============ -->
<div id="appShell" class="app-shell hidden">
<aside class="sidebar" id="sidebar">
<div class="brand">
<svg width="28" height="28" viewBox="0 0 34 34" fill="none"><rect width="34" height="34" rx="9" fill="var(--accent)"/><path d="M9 11h16M9 17h16M9 23h10" stroke="var(--bg)" stroke-width="2.4" stroke-linecap="round"/></svg>
<span>Stash</span>
</div>
<nav class="nav">
<a class="nav-item" href="#dashboard" data-route="dashboard"><i data-ic="home"></i>Dashboard</a>
<a class="nav-item" href="#documents" data-route="documents"><i data-ic="folder"></i>My Documents</a>
<a class="nav-item" href="#upload" data-route="upload"><i data-ic="upload"></i>Scan & Upload</a>
<a class="nav-item" href="#clearance" data-route="clearance"><i data-ic="stack"></i>Clearance</a>
<a class="nav-item" href="#cafepin" data-route="cafepin"><i data-ic="pin"></i>Cafe Quick-Print</a>
<a class="nav-item" href="#profile" data-route="profile"><i data-ic="user"></i>Profile</a>
<a class="nav-item" href="#settings" data-route="settings"><i data-ic="gear"></i>Settings</a>
<a class="nav-item" href="#help" data-route="help"><i data-ic="help"></i>Help & Support</a>
</nav>
<div class="storage-mini">
<div class="storage-bar"><div class="storage-bar-fill" id="sidebarStorageFill"></div></div>
<span id="sidebarStorageText">0% of 2GB used</span>
</div>
<button class="btn btn-ghost btn-block" id="logoutBtn">Log out</button>
</aside>
<div class="scrim" id="scrim"></div>
<main class="main">
<header class="topbar">
<button class="icon-btn hamburger" id="openSidebarBtn"><i data-ic="menu"></i></button>
<div class="search">
<i data-ic="search"></i>
<input type="text" id="globalSearch" placeholder="Search receipts, dockets, courses…">
</div>
<button class="icon-btn theme-toggle" id="themeToggleBtn" title="Toggle day/night">
<i data-ic="sun" class="icon-sun"></i><i data-ic="moon" class="icon-moon"></i>
</button>
<button class="avatar avatar-btn" id="topAvatar" title="Go to profile">S</button>
</header>
<!-- ---- DASHBOARD ---- -->
<section class="view" id="view-dashboard" hidden>
<div class="view-head">
<h1 id="greeting">Good to see you</h1>
<p class="view-sub">Here's what's sitting in your vault right now.</p>
</div>
<div class="dash-grid">
<div class="panel ring-panel">
<svg viewBox="0 0 120 120" class="ring">
<circle cx="60" cy="60" r="50" class="ring-track"/>
<circle cx="60" cy="60" r="50" class="ring-fill" id="storageRing"/>
</svg>
<div class="ring-center"><strong id="ringPct">0%</strong><span id="ringSubLabel">of 2 GB</span></div>
<div class="ring-legend" id="ringLegend"></div>
</div>
<div class="panel stat-stack">
<div class="stat"><span class="stat-num" id="statTotal">0</span><span class="stat-label">Total documents</span></div>
<div class="stat"><span class="stat-num" id="statMonth">0</span><span class="stat-label">Added this month</span></div>
<div class="stat"><span class="stat-num" id="statFlagged">0</span><span class="stat-label">Selected for clearance</span></div>
</div>
<div class="panel quick-actions">
<h3>Quick actions</h3>
<a class="qa" href="#upload"><i data-ic="upload"></i>Scan or upload a file</a>
<a class="qa" href="#clearance"><i data-ic="stack"></i>Build clearance packet</a>
<a class="qa" href="#cafepin"><i data-ic="pin"></i>Cafe quick-print</a>
</div>
</div>
<div class="section-divider"></div>
<div>
<div class="section-head">
<h3>Recent activity</h3>
<a class="link-btn" href="#documents">See all</a>
</div>
<div class="doc-list" id="recentList"></div>
</div>
</section>
<!-- ---- DOCUMENTS ---- -->
<section class="view" id="view-documents" hidden>
<div class="view-head">
<h1>My Documents</h1>
<p class="view-sub">Everything you've saved, tagged and searchable. Click a document to preview or edit it.</p>
</div>
<div class="filter-row">
<select id="fLevel"><option value="">All levels</option></select>
<select id="fSemester"><option value="">All semesters</option></select>
<select id="fCategory"><option value="">All categories</option></select>
<select id="docSort">
<option value="newest">Newest first</option>
<option value="oldest">Oldest first</option>
<option value="name">Name (A–Z)</option>
<option value="amount">Amount (high–low)</option>
</select>
<label class="select-all-inline">
<input type="checkbox" id="selectAllDocs">
<span>Select all</span>
</label>
</div>
<div class="bulk-bar hidden" id="bulkBar">
<span id="bulkCount">0 selected</span>
<div class="bulk-bar-actions">
<button type="button" class="btn btn-secondary" id="bulkDownloadBtn">Download</button>
<button type="button" class="btn btn-danger" id="bulkDeleteBtn">Delete</button>
<button type="button" class="btn btn-ghost" id="bulkClearBtn">Clear selection</button>
</div>
</div>
<div class="doc-list" id="docList"></div>
<div class="empty-state hidden" id="docEmpty">
<i data-ic="folder" class="empty-icon"></i>
<h3 id="emptyStateTitle">Your Stash Vault is empty</h3>
<p>Click below to upload your first document.</p>
<a class="btn btn-primary" href="#upload">Upload a document</a>
</div>
</section>
<!-- ---- SCAN & UPLOAD ---- -->
<section class="view" id="view-upload" hidden>
<div class="view-head">
<h1>Scan & Upload</h1>
<p class="view-sub">Drop one or more files — Stash reads the details for you where it can.</p>
</div>
<p class="upload-capacity-line muted" id="uploadCapacityLine"></p>
<p class="storage-warning hidden" id="uploadStorageWarning"></p>
<div class="panel dropzone" id="dropzone">
<input type="file" id="fileInput" accept=".pdf,.jpg,.jpeg,.png,application/pdf,image/jpeg,image/png" multiple hidden>
<input type="file" id="cameraInput" accept="image/*" capture="environment" hidden>
<i data-ic="upload" class="drop-icon"></i>
<h3>Drag files here, or</h3>
<div class="dropzone-actions">
<button class="btn btn-primary" type="button" id="chooseFileBtn">Choose files</button>
<button class="btn btn-secondary" type="button" id="scanCameraBtn">Scan with camera</button>
</div>
<span class="drop-hint">PDF, JPG or PNG · up to 10MB each · multiple files at once</span>
</div>
<div class="panel upload-queue hidden" id="uploadQueue">
<h3>Processing…</h3>
<div id="uploadQueueList"></div>
</div>
</section>
<!-- ---- CLEARANCE ---- -->
<section class="view" id="view-clearance" hidden>
<div class="view-head">
<h1>Clearance</h1>
<p class="view-sub">See what's still missing, then compile a submission-ready packet from documents already in your vault.</p>
</div>
<div class="filter-row">
<select id="ceLevel"><option value="">All levels</option></select>
<select id="ceSemester"><option value="">All semesters</option></select>
</div>
<div class="panel requirements-panel">
<div class="section-head">
<h3>Requirements</h3>
<span id="reqPct" class="muted">0% complete</span>
</div>
<div class="storage-bar"><div class="storage-bar-fill" id="reqBarFill"></div></div>
<div id="requirementsList" class="requirements-list"></div>
</div>
<div class="panel" style="margin-top:14px;">
<div class="section-head">
<h3>Select documents to include</h3>
<span id="ceCount" class="muted">0 selected</span>
</div>
<div class="check-list" id="clearanceList"></div>
</div>
<div class="panel packet-order-panel hidden" id="packetOrderPanel" style="margin-top:14px;">
<div class="section-head">
<h3>Packet order</h3>
<span class="muted">Use the arrows to reorder</span>
</div>
<div id="packetOrderList"></div>
</div>
<button class="btn btn-primary btn-lg" id="compileBtn" type="button" style="margin-top:16px;"><i data-ic="stack"></i>Compile packet</button>
</section>
<!-- ---- CAFE QUICK-PRINT (generate PIN, logged in) ---- -->
<section class="view" id="view-cafepin" hidden>
<div class="view-head">
<h1>Cafe Quick-Print PIN</h1>
<p class="view-sub">Let a cyber cafe open one printable file — no login, expires fast.</p>
</div>
<div class="panel cafe-card">
<label class="field"><span>Choose a document</span><select id="cafeDocSelect"></select></label>
<button class="btn btn-primary" type="button" id="generatePinBtn">Generate PIN</button>
<div class="pin-result hidden" id="pinResult">
<div class="pin-display" id="pinDisplay">— — — —</div>
<p class="muted">Valid for <span id="pinTimer">10:00</span> · single use</p>
<div class="pin-link">
<input type="text" readonly id="pinLink">
<button class="btn btn-secondary" type="button" id="copyPinLinkBtn">Copy link</button>
</div>
</div>
</div>
</section>
<!-- ---- PROFILE ---- -->
<section class="view" id="view-profile" hidden>
<div class="view-head">
<h1>Profile</h1>
<p class="view-sub">Your details, used to tag documents automatically.</p>
</div>
<div class="panel profile-panel">
<div class="avatar-upload">
<div class="avatar avatar-lg" id="profileAvatar">S</div>
<label class="btn btn-secondary btn-sm">
Change photo
<input type="file" id="avatarInput" accept="image/*" hidden>
</label>
</div>
<form class="profile-form" id="profileForm" novalidate>
<label class="field"><span>Full name</span><input type="text" id="pName"></label>
<div class="field-row">
<label class="field"><span>Matric number</span><input type="text" id="pMatric"></label>
<label class="field"><span>Level</span><select id="pLevel"></select></label>
</div>
<label class="field"><span>Department</span><input type="text" id="pDepartment" placeholder="e.g. Accounting"></label>
<label class="field"><span>Email</span><input type="email" id="pEmail"></label>
<button type="submit" class="btn btn-primary">Save changes</button>
</form>
</div>
<div class="section-divider"></div>
<div class="panel storage-detail">
<div class="section-head">
<h3>Vault storage</h3>
<span class="muted" id="storageDetailText">0% used</span>
</div>
<div class="storage-bar"><div class="storage-bar-fill" id="profileStorageFill"></div></div>
<p class="storage-warning hidden" id="storageWarning"></p>
</div>
</section>
<!-- ---- SETTINGS ---- -->
<section class="view" id="view-settings" hidden>
<div class="view-head">
<h1>Settings</h1>
<p class="view-sub">Tune how Stash looks and behaves.</p>
</div>
<div class="panel settings-row">
<div><h3>Appearance</h3><p class="muted">Switch between night and daylight mode.</p></div>
<div class="segmented">
<button class="seg-btn" type="button" data-theme="dark" id="segDark">Night</button>
<button class="seg-btn" type="button" data-theme="light" id="segLight">Daylight</button>
</div>
</div>
<div class="panel settings-row">
<div><h3>Offline access</h3><p class="muted">Cache your files so they open even when campus network drops.</p></div>
<label class="switch"><input type="checkbox" id="offlineToggle"><span class="slider"></span></label>
</div>
<div class="panel settings-row">
<div><h3>Auto-fill from OCR</h3><p class="muted">Pre-fill RRR, amount and date when scanning receipts.</p></div>
<label class="switch"><input type="checkbox" id="ocrToggle"><span class="slider"></span></label>
</div>
<div class="section-divider"></div>
<div class="panel" style="margin-bottom:14px;">
<div class="section-head">
<h3>Change password</h3>
</div>
<form class="profile-form" id="changePasswordForm" novalidate>
<label class="field">
<span>Current password</span>
<div class="password-field">
<input type="password" id="cpCurrent" placeholder="••••••••" required>
<button type="button" class="pw-toggle" data-target="cpCurrent" aria-label="Show password"><i data-ic="eye"></i></button>
</div>
</label>
<label class="field">
<span>New password</span>
<div class="password-field">
<input type="password" id="cpNew" placeholder="At least 6 characters" required minlength="6">
<button type="button" class="pw-toggle" data-target="cpNew" aria-label="Show password"><i data-ic="eye"></i></button>
</div>
</label>
<label class="field">
<span>Confirm new password</span>
<div class="password-field">
<input type="password" id="cpConfirm" placeholder="Re-enter new password" required minlength="6">
<button type="button" class="pw-toggle" data-target="cpConfirm" aria-label="Show password"><i data-ic="eye"></i></button>
</div>
</label>
<span class="field-error hidden" id="changePasswordError">Something's not right — check the fields below.</span>
<button type="submit" class="btn btn-primary">Update password</button>
</form>
</div>
<div class="panel settings-row danger-row">
<div><h3>Clear local vault</h3><p class="muted">Remove all documents stored in this browser session.</p></div>
<button class="btn btn-danger" type="button" id="clearVaultBtn">Clear everything</button>
</div>
<div class="panel settings-row danger-row">
<div><h3>Delete account</h3><p class="muted">Permanently remove your profile and every document in your vault.</p></div>
<button class="btn btn-danger" type="button" id="deleteAccountBtn">Delete account</button>
</div>
</section>
<!-- ---- HELP & SUPPORT ---- -->
<section class="view" id="view-help" hidden>
<div class="view-head">
<h1>Help & Support</h1>
<p class="view-sub">Answers to what students ask us most.</p>
</div>
<div class="panel" id="appFaqList"></div>
<div class="panel" style="margin-top:16px;">
<h3 style="margin-bottom:14px;">Still stuck?</h3>
<form id="supportForm" novalidate>
<label class="field"><span>What's going on?</span><textarea id="supportMsg" rows="4" placeholder="Tell us what happened…" required></textarea></label>
<button class="btn btn-primary" type="submit">Send to support</button>
</form>
</div>
</section>
</main>
</div>
<!-- ============ CAFE PRINT PORTAL (#print-portal, public) ============ -->
<div id="printShell" class="cafe-shell hidden">
<div class="cafe-card">
<div class="brand">
<svg width="30" height="30" viewBox="0 0 34 34" fill="none"><rect width="34" height="34" rx="9" fill="var(--accent)"/><path d="M9 11h16M9 17h16M9 23h10" stroke="var(--bg)" stroke-width="2.4" stroke-linecap="round"/></svg>
<span>Stash Cafe Print</span>
</div>
<p class="auth-sub">Enter the 4-digit PIN given by the student to open their print-ready file. No login needed — the PIN expires automatically.</p>
<form id="cafePinForm" novalidate>
<label class="field"><span>4-digit PIN</span><input type="text" id="cafePinInput" inputmode="numeric" maxlength="4" placeholder="0000" required></label>
<button type="submit" class="btn btn-primary btn-block">Open document</button>
</form>
<span class="field-error hidden" id="cafePinError">That PIN is invalid or has expired.</span>
<div class="cafe-result hidden" id="cafeResult">
<div class="cafe-doc-preview" id="cafeDocPreview"></div>
<button class="btn btn-primary btn-block" id="cafePrintBtn" type="button">Print this document</button>
</div>
<a class="auth-switch" href="#login" style="display:block; margin-top:18px;">← Back to login</a>
</div>
<div id="printArea" class="print-area"></div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/tesseract.js@5/dist/tesseract.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
<script src="script.js"></script>
</body>
</html>