File size: 29,672 Bytes
61ea378
 
 
 
 
 
 
4a29551
 
61ea378
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d190883
 
 
 
 
 
 
 
 
 
 
 
 
61ea378
d190883
 
 
 
 
61ea378
d190883
 
 
 
 
61ea378
 
 
d190883
61ea378
d190883
61ea378
d190883
 
61ea378
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d190883
 
61ea378
 
 
 
 
 
 
 
 
 
 
 
 
d190883
 
61ea378
 
 
 
 
 
 
 
 
 
 
aa906d8
 
 
 
 
 
 
61ea378
 
aa906d8
61ea378
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d190883
 
61ea378
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d190883
 
61ea378
aa906d8
 
 
 
 
 
 
 
 
 
 
61ea378
aa906d8
61ea378
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d190883
 
61ea378
4a29551
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
aa906d8
61ea378
d190883
61ea378
d190883
 
c043e62
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61ea378
aa906d8
 
 
 
 
 
 
 
 
61ea378
 
4a29551
aa906d8
 
4a29551
61ea378
 
 
aa906d8
61ea378
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
aa906d8
 
 
 
61ea378
 
c043e62
 
 
61ea378
 
 
aa906d8
 
 
 
 
 
 
 
61ea378
 
aa906d8
61ea378
 
 
aa906d8
61ea378
 
 
aa906d8
 
 
61ea378
 
c043e62
d190883
 
c043e62
 
 
 
 
 
 
61ea378
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c043e62
 
 
 
 
 
 
 
 
 
 
 
 
 
61ea378
 
c043e62
d190883
 
c043e62
 
 
 
 
 
 
 
 
 
 
 
d190883
 
 
61ea378
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d190883
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61ea378
d190883
61ea378
 
 
4a29551
 
 
 
 
 
61ea378
4a29551
c043e62
 
 
 
61ea378
 
c043e62
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61ea378
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document Builder | MRZ Instant Estimates & Invoices</title>
    <link rel="icon" href="http://static.photos/black/32x32/1" type="image/x-icon">
    <link rel="manifest" href="/manifest.json">
<script src="https://cdn.tailwindcss.com"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <style>
        @media print {
            .no-print {
                display: none;
            }
            body {
                padding: 0;
                margin: 0;
                background: white;
            }
        }
        .draggable-handle {
            cursor: move;
        }
    </style>
</head>
<body class="bg-gray-50 min-h-screen">
    <div class="container mx-auto p-4 max-w-7xl">
        <header class="mb-8 flex flex-col md:flex-row justify-between items-start md:items-center gap-4">
            <div>
                <h1 class="text-3xl font-bold text-gray-800">Document Builder</h1>
                <p class="text-gray-600 mt-1">Create professional documents with our privacy-first tool</p>
            </div>
            <div class="flex flex-wrap gap-3">
                <button class="no-print px-5 py-2.5 bg-gradient-to-r from-gray-100 to-gray-200 hover:from-gray-200 hover:to-gray-300 text-gray-800 rounded-lg transition-all shadow-sm hover:shadow-md flex items-center">
                    <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z" />
                    </svg>
                    Preview
                </button>
                <button class="no-print px-5 py-2.5 bg-gradient-to-r from-blue-500 to-blue-600 hover:from-blue-600 hover:to-blue-700 text-white rounded-lg transition-all shadow-md hover:shadow-lg flex items-center">
                    <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4" />
                    </svg>
                    Export PDF
                </button>
                <button class="no-print px-5 py-2.5 bg-gradient-to-r from-red-500 to-red-600 hover:from-red-600 hover:to-red-700 text-white rounded-lg transition-all shadow-md hover:shadow-lg flex items-center">
                    <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />
                    </svg>
                    Reset All
                </button>
            </div>
        </header>
        <div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
            <!-- Document Form -->
            <div class="lg:col-span-2 space-y-8">
                <!-- Company Block -->
                <div class="bg-white p-8 rounded-xl shadow-lg border border-gray-100">
<h2 class="text-xl font-semibold mb-4 flex justify-between">
                        <span>Your Company</span>
                        <button class="text-sm text-blue-600 hover:text-blue-800">Edit</button>
                    </h2>
                    <div class="flex items-start gap-4">
                        <div class="w-24 h-24 bg-gray-200 rounded flex items-center justify-center">
                            <i data-feather="image" class="text-gray-400"></i>
                        </div>
                        <div class="flex-1">
                            <input type="text" class="w-full p-2 border-b mb-2 font-bold text-lg" placeholder="Company Name">
                            <input type="text" class="w-full p-2 border-b mb-2" placeholder="Tagline">
                            <div class="grid grid-cols-2 gap-2">
                                <input type="email" class="p-2 border-b" placeholder="Email">
                                <input type="tel" class="p-2 border-b" placeholder="Phone">
                            </div>
                            <input type="url" class="w-full p-2 border-b mt-2" placeholder="Website">
                            <textarea class="w-full p-2 border-b mt-2" placeholder="Address"></textarea>
                        </div>
                    </div>
                </div>
                <!-- Client Block -->
                <div class="bg-white p-8 rounded-xl shadow-lg border border-gray-100">
<h2 class="text-xl font-semibold mb-4">Client Information</h2>
                    <div class="space-y-4">
                        <div class="grid grid-cols-2 gap-4">
                            <input type="text" class="p-2 border-b" placeholder="Client Name">
                            <input type="text" class="p-2 border-b" placeholder="Company">
                        </div>
                        <div class="grid grid-cols-2 gap-4">
                            <input type="email" class="p-2 border-b" placeholder="Email">
                            <input type="tel" class="p-2 border-b" placeholder="Phone">
                        </div>
                        <textarea class="w-full p-2 border-b" placeholder="Address"></textarea>
                    </div>
                </div>
                <!-- Document Meta -->
                <div class="bg-white p-8 rounded-xl shadow-lg border border-gray-100">
<h2 class="text-xl font-semibold mb-4">Document Details</h2>
                    <div class="grid grid-cols-2 gap-4">
                        <div>
                            <label class="block text-sm text-gray-500 mb-1">Document Type</label>
                            <select class="w-full p-2 border rounded">
                                <option>Invoice</option>
                                <option>Estimate</option>
                                <option>Quote</option>
                            </select>
                        </div>
                        <div>
                            <label class="block text-sm text-gray-500 mb-1">Document Number</label>
                            <div class="flex">
                                <input type="text" class="flex-1 p-2 border rounded" value="MRZ-INV-2023-001">
                                <button class="ml-2 px-3 bg-gray-100 hover:bg-gray-200 rounded" title="Auto-increment">
                                    <i data-feather="refresh-cw" class="w-4 h-4"></i>
                                </button>
                            </div>
                            <p class="text-xs text-gray-500 mt-1">Pattern: MRZ-{TYPE}-{YYYY}-{NNNN}</p>
                        </div>
                    </div>
<div class="grid grid-cols-2 gap-4 mt-4">
                        <div>
                            <label class="block text-sm text-gray-500 mb-1">Date</label>
                            <input type="date" class="w-full p-2 border rounded">
                        </div>
                        <div>
                            <label class="block text-sm text-gray-500 mb-1">Due Date</label>
                            <input type="date" class="w-full p-2 border rounded">
                        </div>
                    </div>
                    <div class="mt-4">
                        <label class="block text-sm text-gray-500 mb-1">PO/Reference</label>
                        <input type="text" class="w-full p-2 border rounded" placeholder="Optional">
                    </div>
                </div>
                <!-- Currency Selector -->
                <div class="bg-white p-8 rounded-xl shadow-lg border border-gray-100">
<h2 class="text-xl font-semibold mb-4">Currency & Formatting</h2>
                    <div class="grid grid-cols-2 gap-4">
                        <div>
                            <label class="block text-sm text-gray-500 mb-1">Currency</label>
                            <select class="w-full p-2 border rounded">
                                <option value="CAD">CAD - Canadian Dollar</option>
                                <option value="USD">USD - US Dollar</option>
                                <option value="EUR">EUR - Euro</option>
                                <option value="GBP">GBP - British Pound</option>
                                <option value="AED">AED - UAE Dirham</option>
                            </select>
                        </div>
                        <div>
                            <label class="block text-sm text-gray-500 mb-1">Tax Preset</label>
                            <select class="w-full p-2 border rounded">
                                <option value="HST">HST 13% (ON)</option>
                                <option value="GST">GST 5%</option>
                                <option value="PST">PST 7% (BC)</option>
                                <option value="VAT">VAT 20%</option>
                                <option value="custom">Custom Rate</option>
                            </select>
                        </div>
                    </div>
                </div>
                <!-- Line Items -->
                <div class="bg-white p-8 rounded-xl shadow-lg border border-gray-100">
<h2 class="text-xl font-semibold mb-4 flex justify-between">
                        <span>Line Items</span>
                        <div class="flex gap-2">
                            <button class="px-3 py-1 bg-blue-600 hover:bg-blue-700 text-white rounded text-sm">
                                <i data-feather="plus" class="w-4 h-4"></i> Add Item
                            </button>
                            <button class="px-3 py-1 bg-gray-200 hover:bg-gray-300 rounded text-sm">
                                <i data-feather="copy" class="w-4 h-4"></i> Duplicate
                            </button>
                            <button class="px-3 py-1 bg-gray-200 hover:bg-gray-300 rounded text-sm">
                                <i data-feather="type" class="w-4 h-4"></i> Description Only
                            </button>
                        </div>
                    </h2>
<div class="overflow-x-auto">
                        <table class="w-full">
                            <thead>
                                <tr class="border-b">
                                    <th class="text-left p-2">Item</th>
                                    <th class="text-left p-2">Description</th>
                                    <th class="text-left p-2">Qty</th>
                                    <th class="text-left p-2">Unit</th>
                                    <th class="text-left p-2">Unit Price</th>
                                    <th class="text-left p-2">Tax</th>
                                    <th class="text-left p-2">Discount</th>
                                    <th class="text-left p-2">Amount</th>
                                    <th class="text-left p-2"></th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr class="border-b">
                                    <td class="p-2"><input type="text" class="w-full p-1 border rounded" placeholder="Service/Product"></td>
                                    <td class="p-2"><textarea class="w-full p-1 border rounded" rows="1" placeholder="Description"></textarea></td>
                                    <td class="p-2"><input type="number" class="w-16 p-1 border rounded" value="1" min="1"></td>
                                    <td class="p-2"><input type="text" class="w-16 p-1 border rounded" value="hr"></td>
                                    <td class="p-2"><input type="number" class="w-24 p-1 border rounded" value="100.00" step="0.01"></td>
                                    <td class="p-2">
                                        <select class="w-full p-1 border rounded text-sm">
                                            <option>TX1 (13%)</option>
                                            <option>TX2 (5%)</option>
                                            <option>None</option>
                                        </select>
                                    </td>
                                    <td class="p-2"><input type="text" class="w-16 p-1 border rounded" placeholder="0%"></td>
                                    <td class="p-2">$100.00</td>
                                    <td class="p-2">
                                        <button class="text-gray-400 hover:text-gray-600">
                                            <i data-feather="x" class="w-4 h-4"></i>
                                        </button>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <!-- Notes & Terms -->
                <div class="bg-white p-8 rounded-xl shadow-lg border border-gray-100">
<h2 class="text-xl font-semibold mb-4">Notes & Terms</h2>
                    <textarea class="w-full p-3 border rounded h-32" placeholder="Additional notes or terms and conditions..."></textarea>
        <div class="mt-4 space-y-2">
            <label class="flex items-center">
                <input type="checkbox" class="mr-2">
                <span>Include signature field</span>
            </label>
            <label class="flex items-center">
                <input type="checkbox" class="mr-2">
                <span>Include "Generated with MRZ Instant Docs" footer</span>
            </label>
            <div class="flex items-center mt-2">
                <label class="mr-4 flex items-center">
                    <input type="radio" name="language" class="mr-2" checked>
                    <span>English</span>
                </label>
                <label class="flex items-center">
                    <input type="radio" name="language" class="mr-2">
                    <span>Français</span>
                </label>
            </div>
            <div class="mt-4">
                <label class="block text-sm text-gray-500 mb-1">Terms & Conditions</label>
                <textarea class="w-full p-3 border rounded h-24" placeholder="Enter custom terms (plain text only)"></textarea>
                <p class="text-xs text-gray-500 mt-1">Note: No default terms are provided</p>
            </div>
        </div>
</div>
</div>
            <!-- Preview & Settings -->
            <div class="space-y-8">
                <!-- Document Preview -->
                <div class="bg-white p-8 rounded-xl shadow-lg border border-gray-100 sticky top-4">
<div class="flex justify-between items-center mb-4">
                        <h2 class="text-xl font-semibold">Document Preview</h2>
                        <div class="flex gap-2">
                            <button class="px-3 py-1 bg-gray-200 hover:bg-gray-300 rounded text-sm">
                                <i data-feather="file-text" class="w-4 h-4"></i> Minimal
                            </button>
                            <button class="px-3 py-1 bg-gray-200 hover:bg-gray-300 rounded text-sm">
                                <i data-feather="file" class="w-4 h-4"></i> Classic
                            </button>
                            <button class="px-3 py-1 bg-gray-200 hover:bg-gray-300 rounded text-sm">
                                <i data-feather="grid" class="w-4 h-4"></i> Compact
                            </button>
                        </div>
                    </div>
                    <div class="border-2 border-dashed border-gray-300 p-4 min-h-[400px] relative">
                        <div class="absolute inset-0 flex items-center justify-center pointer-events-none opacity-10">
                            <span class="text-4xl font-bold rotate-45">DRAFT</span>
                        </div>
<div class="flex justify-between items-start mb-6">
                            <div>
                                <div class="flex items-start gap-2 mb-2">
                                    <div class="w-16 h-16 bg-gray-200 rounded flex items-center justify-center">
                                        <i data-feather="image" class="text-gray-400"></i>
                                    </div>
                                    <div>
                                        <h3 class="text-lg font-bold">COMPANY NAME</h3>
                                        <p class="text-sm text-gray-600">123 Business Ave, Toronto, ON</p>
                                    </div>
                                </div>
                            </div>
                            <div class="text-right">
                                <div class="inline-block px-3 py-1 bg-yellow-100 text-yellow-800 rounded-full text-sm mb-1" data-status="draft">
                                    Draft
                                </div>
<h3 class="text-lg font-bold">INVOICE</h3>
                                <p class="text-sm text-gray-600">MRZ-INV-2023-001</p>
                            </div>
                        </div>
<div class="grid grid-cols-2 gap-4 mb-6">
                            <div>
                                <h4 class="font-semibold text-gray-700">Bill To:</h4>
                                <p class="text-sm">Client Name<br>Client Company<br>Client Address</p>
                            </div>
                            <div>
                                <h4 class="font-semibold text-gray-700">Details:</h4>
                                <p class="text-sm">
                                    Date: 2023-11-15<br>
                                    Due Date: 2023-12-15<br>
                                    PO: 12345
                                </p>
                            </div>
                        </div>
                        <table class="w-full mb-4">
                            <thead>
                                <tr class="border-b">
                                    <th class="text-left p-2">Item</th>
                                    <th class="text-right p-2">Qty</th>
                                    <th class="text-right p-2">Unit Price</th>
                                    <th class="text-right p-2">Amount</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr class="border-b">
                                    <td class="p-2">Consulting Services</td>
                                    <td class="p-2 text-right">1</td>
                                    <td class="p-2 text-right">$100.00</td>
                                    <td class="p-2 text-right">$100.00</td>
                                </tr>
                                <tr class="border-b">
                                    <td class="p-2" colspan="3" class="text-right">Shipping & Handling</td>
                                    <td class="p-2 text-right">$15.00</td>
                                </tr>
                            </tbody>
                        </table>
                        <div class="flex justify-end mt-6">
                            <div class="w-72 bg-gray-50 p-4 rounded">
<div class="flex justify-between py-1">
                                    <span>Subtotal:</span>
                                    <span>$100.00</span>
                                </div>
                                <div class="flex justify-between py-1">
                                    <span>Discount (10%):</span>
                                    <span>-$10.00</span>
                                </div>
                                <div class="flex justify-between py-1">
                                    <span>Shipping:</span>
                                    <span>$15.00</span>
                                </div>
                                <div class="flex justify-between py-1">
                                    <span>Tax (13%):</span>
                                    <span>$13.65</span>
                                </div>
                                <div class="flex justify-between py-1 font-bold border-t mt-2 pt-2">
                                    <span>Total:</span>
                                    <span>$118.65</span>
                                </div>
                            </div>
                        </div>
                        <div class="mt-6 pt-4 border-t text-xs text-gray-500">
                            Generated with MRZ Instant Docs — No data stored
                        </div>
                    </div>
                </div>
                <!-- Branding & Templates -->
                <div class="bg-white p-8 rounded-xl shadow-lg border border-gray-100">
<h2 class="text-xl font-semibold mb-4">Branding & Templates</h2>
                    <div class="mb-4">
                        <label class="flex items-center">
                            <input type="checkbox" class="mr-2">
                            <span>Show watermark</span>
                        </label>
                    </div>
<div class="space-y-4">
                        <div>
                            <label class="block text-sm text-gray-500 mb-1">Primary Color</label>
                            <input type="color" class="w-full h-10" value="#3b82f6">
                        </div>
                        <div>
                            <label class="block text-sm text-gray-500 mb-1">Accent Color</label>
                            <input type="color" class="w-full h-10" value="#10b981">
                        </div>
                        <div>
                            <label class="block text-sm text-gray-500 mb-1">Theme</label>
                            <select class="w-full p-2 border rounded">
                                <option>Light</option>
                                <option>Dark</option>
                            </select>
                        </div>
                        <div>
                            <label class="block text-sm text-gray-500 mb-1">Font</label>
                            <select class="w-full p-2 border rounded">
                                <option>System Default</option>
                                <option>Roboto</option>
                                <option>Open Sans</option>
                                <option>Montserrat</option>
                            </select>
                        </div>
                        <div class="mt-4">
                            <label class="block text-sm text-gray-500 mb-1">Tax Presets</label>
                            <div class="flex gap-2">
                                <button class="px-3 py-1 bg-gray-200 hover:bg-gray-300 rounded text-sm">
                                    HST 13%
                                </button>
                                <button class="px-3 py-1 bg-gray-200 hover:bg-gray-300 rounded text-sm">
                                    GST 5%
                                </button>
                                <button class="px-3 py-1 bg-gray-200 hover:bg-gray-300 rounded text-sm">
                                    PST 7%
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- Stamp Options -->
                <div class="bg-white p-8 rounded-xl shadow-lg border border-gray-100">
<h2 class="text-xl font-semibold mb-4">Stamp Options</h2>
                    <div class="grid grid-cols-3 gap-2">
                        <button class="px-3 py-2 bg-red-100 hover:bg-red-200 rounded text-sm">
                            <i data-feather="check-circle" class="w-4 h-4"></i> PAID
                        </button>
                        <button class="px-3 py-2 bg-green-100 hover:bg-green-200 rounded text-sm">
                            <i data-feather="thumbs-up" class="w-4 h-4"></i> APPROVED
                        </button>
                        <button class="px-3 py-2 bg-yellow-100 hover:bg-yellow-200 rounded text-sm">
                            <i data-feather="edit" class="w-4 h-4"></i> DRAFT
                        </button>
                    </div>
                </div>
                <!-- QR Code Option -->
                <div class="bg-white p-8 rounded-xl shadow-lg border border-gray-100">
<h2 class="text-xl font-semibold mb-4">QR Code</h2>
                    <div class="space-y-4">
                        <div>
                            <label class="flex items-center">
                                <input type="checkbox" class="mr-2">
                                <span>Include QR Code</span>
                            </label>
                        </div>
                        <div>
                            <label class="block text-sm text-gray-500 mb-1">Link URL</label>
                            <input type="url" class="w-full p-2 border rounded" placeholder="https://">
                        </div>
                        <div class="flex justify-center">
                            <div class="w-32 h-32 bg-gray-200 flex items-center justify-center">
                                <i data-feather="image" class="text-gray-400"></i>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <footer class="mt-16 pt-8 pb-6 border-t border-gray-200 text-center">
            <div class="max-w-2xl mx-auto">
                <p class="text-gray-600 mb-2">Analyze. Strategize. Realize. — Canadian Innovation. Global Impact.</p>
                <p class="text-gray-500 text-sm">This document was created locally in your browser. MRZ stores nothing.</p>
                <div class="mt-4 flex justify-center space-x-6">
                    <a href="#" class="text-gray-400 hover:text-gray-500">
                        <span class="sr-only">Privacy Policy</span>
                        <svg class="h-6 w-6" fill="currentColor" viewBox="0 0 24 24">
                            <path fill-rule="evenodd" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z" clip-rule="evenodd" />
                        </svg>
                    </a>
                    <a href="#" class="text-gray-400 hover:text-gray-500">
                        <span class="sr-only">Terms of Service</span>
                        <svg class="h-6 w-6" fill="currentColor" viewBox="0 0 24 24">
                            <path fill-rule="evenodd" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z" clip-rule="evenodd" />
                        </svg>
                    </a>
                </div>
            </div>
        </footer>
</div>
    <script>
        feather.replace();
        
        // Show tooltip on first visit
        if (!localStorage.getItem('visited')) {
            alert("Close tab to erase all data");
            localStorage.setItem('visited', 'true');
        }

        // Initialize functionality
document.addEventListener('DOMContentLoaded', function() {
            // Template buttons
            document.querySelectorAll('[data-template]').forEach(btn => {
                btn.addEventListener('click', () => {
                    // Template selection logic
                });
            });

            // Stamp buttons
            document.querySelectorAll('[data-stamp]').forEach(btn => {
                btn.addEventListener('click', () => {
                    // Stamp application logic
                });
            });

            // Tax preset buttons
            document.querySelectorAll('[data-tax-preset]').forEach(btn => {
                btn.addEventListener('click', () => {
                    // Tax preset logic
                });
            });

            // Mobile PDF share
            if (navigator.share) {
                const shareBtn = document.createElement('button');
                shareBtn.className = 'no-print px-4 py-2 bg-purple-600 hover:bg-purple-700 text-white rounded-lg transition';
                shareBtn.innerHTML = '<i data-feather="share-2"></i> Share PDF';
                document.querySelector('header div.flex').prepend(shareBtn);
                feather.replace();
                
                shareBtn.addEventListener('click', () => {
                    navigator.share({
                        title: 'Generated Document',
                        text: 'Check out this document',
                        url: window.location.href
                    });
                });
            }
        });
    </script>
</body>
</html>