Neuluke commited on
Commit
ca6a5a3
·
verified ·
1 Parent(s): 16cf505

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. index.html +1313 -19
index.html CHANGED
@@ -1,19 +1,1313 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="UTF-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <title>Program Creation Wizard - Admin Portal</title>
8
+ <style>
9
+ :root {
10
+ --primary-color: #4F46E5;
11
+ --primary-hover: #4338CA;
12
+ --primary-light: #EEF2FF;
13
+ --secondary-color: #6B7280;
14
+ --success-color: #10B981;
15
+ --error-color: #EF4444;
16
+ --warning-color: #F59E0B;
17
+ --border-color: #E5E7EB;
18
+ --bg-primary: #FFFFFF;
19
+ --bg-secondary: #F9FAFB;
20
+ --bg-tertiary: #F3F4F6;
21
+ --text-primary: #111827;
22
+ --text-secondary: #6B7280;
23
+ --text-tertiary: #9CA3AF;
24
+ --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
25
+ --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
26
+ --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
27
+ --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
28
+ }
29
+
30
+ * {
31
+ margin: 0;
32
+ padding: 0;
33
+ box-sizing: border-box;
34
+ }
35
+
36
+ body {
37
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
38
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
39
+ min-height: 100vh;
40
+ color: var(--text-primary);
41
+ line-height: 1.6;
42
+ }
43
+
44
+ /* Header */
45
+ .header {
46
+ background: var(--bg-primary);
47
+ padding: 1rem 2rem;
48
+ box-shadow: var(--shadow-sm);
49
+ display: flex;
50
+ justify-content: space-between;
51
+ align-items: center;
52
+ }
53
+
54
+ .logo {
55
+ display: flex;
56
+ align-items: center;
57
+ gap: 0.75rem;
58
+ }
59
+
60
+ .logo-icon {
61
+ width: 32px;
62
+ height: 32px;
63
+ background: var(--primary-color);
64
+ border-radius: 8px;
65
+ display: flex;
66
+ align-items: center;
67
+ justify-content: center;
68
+ color: white;
69
+ font-weight: bold;
70
+ }
71
+
72
+ .logo-text {
73
+ font-size: 1.25rem;
74
+ font-weight: 600;
75
+ color: var(--text-primary);
76
+ }
77
+
78
+ .user-info {
79
+ display: flex;
80
+ align-items: center;
81
+ gap: 1rem;
82
+ }
83
+
84
+ .user-avatar {
85
+ width: 40px;
86
+ height: 40px;
87
+ border-radius: 50%;
88
+ background: linear-gradient(135deg, #667eea, #764ba2);
89
+ display: flex;
90
+ align-items: center;
91
+ justify-content: center;
92
+ color: white;
93
+ font-weight: 600;
94
+ }
95
+
96
+ /* Main Container */
97
+ .main-container {
98
+ display: flex;
99
+ height: calc(100vh - 64px);
100
+ background: var(--bg-secondary);
101
+ }
102
+
103
+ /* Sidebar */
104
+ .sidebar {
105
+ width: 280px;
106
+ background: var(--bg-primary);
107
+ border-right: 1px solid var(--border-color);
108
+ padding: 2rem 0;
109
+ overflow-y: auto;
110
+ }
111
+
112
+ .sidebar-header {
113
+ padding: 0 1.5rem;
114
+ margin-bottom: 2rem;
115
+ }
116
+
117
+ .sidebar-title {
118
+ font-size: 0.875rem;
119
+ font-weight: 600;
120
+ color: var(--text-secondary);
121
+ text-transform: uppercase;
122
+ letter-spacing: 0.05em;
123
+ margin-bottom: 1rem;
124
+ }
125
+
126
+ .step-indicator {
127
+ margin-bottom: 0.5rem;
128
+ }
129
+
130
+ .step-item {
131
+ display: flex;
132
+ align-items: center;
133
+ padding: 0.75rem 1.5rem;
134
+ cursor: pointer;
135
+ transition: var(--transition);
136
+ position: relative;
137
+ }
138
+
139
+ .step-item:hover {
140
+ background: var(--bg-secondary);
141
+ }
142
+
143
+ .step-item.active {
144
+ background: var(--primary-light);
145
+ }
146
+
147
+ .step-item.completed {
148
+ color: var(--success-color);
149
+ }
150
+
151
+ .step-number {
152
+ width: 32px;
153
+ height: 32px;
154
+ border-radius: 50%;
155
+ border: 2px solid var(--border-color);
156
+ display: flex;
157
+ align-items: center;
158
+ justify-content: center;
159
+ font-weight: 600;
160
+ font-size: 0.875rem;
161
+ margin-right: 1rem;
162
+ transition: var(--transition);
163
+ }
164
+
165
+ .step-item.active .step-number {
166
+ background: var(--primary-color);
167
+ color: white;
168
+ border-color: var(--primary-color);
169
+ }
170
+
171
+ .step-item.completed .step-number {
172
+ background: var(--success-color);
173
+ color: white;
174
+ border-color: var(--success-color);
175
+ }
176
+
177
+ .step-text {
178
+ flex: 1;
179
+ }
180
+
181
+ .step-title {
182
+ font-weight: 500;
183
+ color: var(--text-primary);
184
+ font-size: 0.875rem;
185
+ }
186
+
187
+ .step-subtitle {
188
+ font-size: 0.75rem;
189
+ color: var(--text-tertiary);
190
+ }
191
+
192
+ /* Content Area */
193
+ .content-area {
194
+ flex: 1;
195
+ padding: 2rem;
196
+ overflow-y: auto;
197
+ }
198
+
199
+ .content-header {
200
+ margin-bottom: 2rem;
201
+ }
202
+
203
+ .content-title {
204
+ font-size: 1.875rem;
205
+ font-weight: 700;
206
+ color: var(--text-primary);
207
+ margin-bottom: 0.5rem;
208
+ }
209
+
210
+ .content-description {
211
+ color: var(--text-secondary);
212
+ font-size: 1rem;
213
+ }
214
+
215
+ /* Card */
216
+ .card {
217
+ background: var(--bg-primary);
218
+ border-radius: 12px;
219
+ box-shadow: var(--shadow-md);
220
+ padding: 1.5rem;
221
+ margin-bottom: 1.5rem;
222
+ }
223
+
224
+ .card-header {
225
+ margin-bottom: 1.5rem;
226
+ padding-bottom: 1rem;
227
+ border-bottom: 1px solid var(--border-color);
228
+ }
229
+
230
+ .card-title {
231
+ font-size: 1.125rem;
232
+ font-weight: 600;
233
+ color: var(--text-primary);
234
+ }
235
+
236
+ /* Form Elements */
237
+ .form-group {
238
+ margin-bottom: 1.5rem;
239
+ }
240
+
241
+ .form-row {
242
+ display: grid;
243
+ grid-template-columns: 1fr 1fr;
244
+ gap: 1rem;
245
+ }
246
+
247
+ .form-label {
248
+ display: block;
249
+ font-size: 0.875rem;
250
+ font-weight: 500;
251
+ color: var(--text-primary);
252
+ margin-bottom: 0.5rem;
253
+ }
254
+
255
+ .required {
256
+ color: var(--error-color);
257
+ }
258
+
259
+ .form-input,
260
+ .form-select,
261
+ .form-textarea {
262
+ width: 100%;
263
+ padding: 0.625rem 0.875rem;
264
+ border: 1px solid var(--border-color);
265
+ border-radius: 8px;
266
+ font-size: 0.875rem;
267
+ transition: var(--transition);
268
+ background: var(--bg-primary);
269
+ }
270
+
271
+ .form-input:focus,
272
+ .form-select:focus,
273
+ .form-textarea:focus {
274
+ outline: none;
275
+ border-color: var(--primary-color);
276
+ box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
277
+ }
278
+
279
+ .form-textarea {
280
+ resize: vertical;
281
+ min-height: 100px;
282
+ }
283
+
284
+ .helper-text {
285
+ font-size: 0.75rem;
286
+ color: var(--text-tertiary);
287
+ margin-top: 0.25rem;
288
+ }
289
+
290
+ .error-text {
291
+ font-size: 0.75rem;
292
+ color: var(--error-color);
293
+ margin-top: 0.25rem;
294
+ }
295
+
296
+ .form-input.error {
297
+ border-color: var(--error-color);
298
+ }
299
+
300
+ /* Radio Group */
301
+ .radio-group {
302
+ display: flex;
303
+ gap: 1.5rem;
304
+ margin-top: 0.5rem;
305
+ }
306
+
307
+ .radio-option {
308
+ display: flex;
309
+ align-items: center;
310
+ cursor: pointer;
311
+ }
312
+
313
+ .radio-input {
314
+ width: 20px;
315
+ height: 20px;
316
+ margin-right: 0.5rem;
317
+ cursor: pointer;
318
+ }
319
+
320
+ .radio-label {
321
+ font-size: 0.875rem;
322
+ color: var(--text-primary);
323
+ cursor: pointer;
324
+ }
325
+
326
+ /* Buttons */
327
+ .button-group {
328
+ display: flex;
329
+ justify-content: space-between;
330
+ margin-top: 2rem;
331
+ padding-top: 1.5rem;
332
+ border-top: 1px solid var(--border-color);
333
+ }
334
+
335
+ .btn {
336
+ padding: 0.625rem 1.25rem;
337
+ border-radius: 8px;
338
+ font-size: 0.875rem;
339
+ font-weight: 500;
340
+ border: none;
341
+ cursor: pointer;
342
+ transition: var(--transition);
343
+ display: inline-flex;
344
+ align-items: center;
345
+ gap: 0.5rem;
346
+ }
347
+
348
+ .btn-primary {
349
+ background: var(--primary-color);
350
+ color: white;
351
+ }
352
+
353
+ .btn-primary:hover:not(:disabled) {
354
+ background: var(--primary-hover);
355
+ transform: translateY(-1px);
356
+ box-shadow: var(--shadow-md);
357
+ }
358
+
359
+ .btn-secondary {
360
+ background: var(--bg-tertiary);
361
+ color: var(--text-primary);
362
+ border: 1px solid var(--border-color);
363
+ }
364
+
365
+ .btn-secondary:hover:not(:disabled) {
366
+ background: var(--bg-secondary);
367
+ }
368
+
369
+ .btn:disabled {
370
+ opacity: 0.5;
371
+ cursor: not-allowed;
372
+ }
373
+
374
+ /* Summary */
375
+ .summary-item {
376
+ display: flex;
377
+ justify-content: space-between;
378
+ padding: 0.75rem 0;
379
+ border-bottom: 1px solid var(--border-color);
380
+ }
381
+
382
+ .summary-label {
383
+ font-size: 0.875rem;
384
+ color: var(--text-secondary);
385
+ }
386
+
387
+ .summary-value {
388
+ font-size: 0.875rem;
389
+ font-weight: 500;
390
+ color: var(--text-primary);
391
+ }
392
+
393
+ /* Bonus Preview */
394
+ .bonus-preview {
395
+ background: linear-gradient(135deg, var(--primary-light), #F0F4FF);
396
+ border-radius: 12px;
397
+ padding: 1.5rem;
398
+ margin-top: 1.5rem;
399
+ border: 1px solid rgba(79, 70, 229, 0.2);
400
+ }
401
+
402
+ .bonus-preview-title {
403
+ font-size: 1rem;
404
+ font-weight: 600;
405
+ color: var(--primary-color);
406
+ margin-bottom: 1rem;
407
+ display: flex;
408
+ align-items: center;
409
+ gap: 0.5rem;
410
+ }
411
+
412
+ .info-icon {
413
+ width: 20px;
414
+ height: 20px;
415
+ background: var(--primary-color);
416
+ color: white;
417
+ border-radius: 50%;
418
+ display: inline-flex;
419
+ align-items: center;
420
+ justify-content: center;
421
+ font-size: 0.75rem;
422
+ font-weight: bold;
423
+ }
424
+
425
+ .bonus-calculation {
426
+ background: white;
427
+ border-radius: 8px;
428
+ padding: 1rem;
429
+ margin-top: 0.75rem;
430
+ }
431
+
432
+ .calculation-line {
433
+ display: flex;
434
+ justify-content: space-between;
435
+ padding: 0.5rem 0;
436
+ font-size: 0.875rem;
437
+ }
438
+
439
+ .calculation-line.total {
440
+ border-top: 2px solid var(--border-color);
441
+ margin-top: 0.5rem;
442
+ padding-top: 0.75rem;
443
+ font-weight: 600;
444
+ color: var(--primary-color);
445
+ }
446
+
447
+ /* Success Screen */
448
+ .success-container {
449
+ text-align: center;
450
+ padding: 3rem;
451
+ }
452
+
453
+ .success-icon {
454
+ width: 80px;
455
+ height: 80px;
456
+ background: var(--success-color);
457
+ border-radius: 50%;
458
+ display: inline-flex;
459
+ align-items: center;
460
+ justify-content: center;
461
+ margin-bottom: 1.5rem;
462
+ animation: successPulse 0.6s ease-out;
463
+ }
464
+
465
+ @keyframes successPulse {
466
+ 0% {
467
+ transform: scale(0);
468
+ opacity: 0;
469
+ }
470
+
471
+ 50% {
472
+ transform: scale(1.1);
473
+ }
474
+
475
+ 100% {
476
+ transform: scale(1);
477
+ opacity: 1;
478
+ }
479
+ }
480
+
481
+ .success-icon::before {
482
+ content: '✓';
483
+ color: white;
484
+ font-size: 2.5rem;
485
+ font-weight: bold;
486
+ }
487
+
488
+ .success-title {
489
+ font-size: 1.875rem;
490
+ font-weight: 700;
491
+ color: var(--text-primary);
492
+ margin-bottom: 0.5rem;
493
+ }
494
+
495
+ .success-message {
496
+ color: var(--text-secondary);
497
+ margin-bottom: 2rem;
498
+ }
499
+
500
+ .success-details {
501
+ background: var(--bg-secondary);
502
+ border-radius: 12px;
503
+ padding: 1.5rem;
504
+ margin-bottom: 2rem;
505
+ text-align: left;
506
+ }
507
+
508
+ /* Responsive */
509
+ @media (max-width: 768px) {
510
+ .sidebar {
511
+ display: none;
512
+ }
513
+
514
+ .form-row {
515
+ grid-template-columns: 1fr;
516
+ }
517
+ }
518
+
519
+ /* Loading State */
520
+ .loading {
521
+ display: inline-block;
522
+ width: 16px;
523
+ height: 16px;
524
+ border: 2px solid rgba(255, 255, 255, 0.3);
525
+ border-radius: 50%;
526
+ border-top-color: white;
527
+ animation: spin 0.6s linear infinite;
528
+ }
529
+
530
+ @keyframes spin {
531
+ to {
532
+ transform: rotate(360deg);
533
+ }
534
+ }
535
+
536
+ /* Date Range Input */
537
+ .date-range-group {
538
+ display: grid;
539
+ grid-template-columns: 1fr 1fr;
540
+ gap: 1rem;
541
+ }
542
+
543
+ /* Currency Input */
544
+ .currency-input-wrapper {
545
+ position: relative;
546
+ }
547
+
548
+ .currency-prefix {
549
+ position: absolute;
550
+ left: 12px;
551
+ top: 50%;
552
+ transform: translateY(-50%);
553
+ color: var(--text-secondary);
554
+ font-size: 0.875rem;
555
+ }
556
+
557
+ .currency-input {
558
+ padding-left: 28px;
559
+ }
560
+
561
+ /* Step Content */
562
+ .step-content {
563
+ display: none;
564
+ animation: fadeIn 0.3s ease-out;
565
+ }
566
+
567
+ .step-content.active {
568
+ display: block;
569
+ }
570
+
571
+ @keyframes fadeIn {
572
+ from {
573
+ opacity: 0;
574
+ transform: translateY(10px);
575
+ }
576
+
577
+ to {
578
+ opacity: 1;
579
+ transform: translateY(0);
580
+ }
581
+ }
582
+
583
+ /* Built with anycoder link */
584
+ .built-with {
585
+ color: var(--text-secondary);
586
+ font-size: 0.75rem;
587
+ text-decoration: none;
588
+ transition: color 0.3s;
589
+ }
590
+
591
+ .built-with:hover {
592
+ color: var(--primary-color);
593
+ }
594
+ </style>
595
+ </head>
596
+
597
+ <body>
598
+ <!-- Header -->
599
+ <header class="header">
600
+ <div class="logo">
601
+ <div class="logo-icon">P</div>
602
+ <div class="logo-text">Program Admin Portal</div>
603
+ </div>
604
+ <div class="user-info">
605
+ <span style="color: var(--text-secondary); font-size: 0.875rem;">Administrator</span>
606
+ <div class="user-avatar">JD</div>
607
+ </div>
608
+ </header>
609
+
610
+ <!-- Main Container -->
611
+ <div class="main-container">
612
+ <!-- Sidebar -->
613
+ <aside class="sidebar">
614
+ <div class="sidebar-header">
615
+ <h2 class="sidebar-title">Program Creation</h2>
616
+ <div style="color: var(--text-tertiary); font-size: 0.75rem;">Token Program Wizard</div>
617
+ </div>
618
+ <div class="step-indicator">
619
+ <div class="step-item active" data-step="1">
620
+ <div class="step-number">1</div>
621
+ <div class="step-text">
622
+ <div class="step-title">Program Information</div>
623
+ <div class="step-subtitle">Basic details</div>
624
+ </div>
625
+ </div>
626
+ <div class="step-item" data-step="2">
627
+ <div class="step-number">2</div>
628
+ <div class="step-text">
629
+ <div class="step-title">Token Purchase</div>
630
+ <div class="step-subtitle">Purchase window</div>
631
+ </div>
632
+ </div>
633
+ <div class="step-item" data-step="3">
634
+ <div class="step-number">3</div>
635
+ <div class="step-text">
636
+ <div class="step-title">Bonus Configuration</div>
637
+ <div class="step-subtitle">Incentive setup</div>
638
+ </div>
639
+ </div>
640
+ <div class="step-item" data-step="4">
641
+ <div class="step-number">4</div>
642
+ <div class="step-text">
643
+ <div class="step-title">Summary & Preview</div>
644
+ <div class="step-subtitle">Review details</div>
645
+ </div>
646
+ </div>
647
+ <div class="step-item" data-step="5">
648
+ <div class="step-number">5</div>
649
+ <div class="step-text">
650
+ <div class="step-title">Success</div>
651
+ <div class="step-subtitle">Program created</div>
652
+ </div>
653
+ </div>
654
+ </div>
655
+ <div style="padding: 0 1.5rem; margin-top: 2rem;">
656
+ <a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" class="built-with">Built with
657
+ anycoder</a>
658
+ </div>
659
+ </aside>
660
+
661
+ <!-- Content Area -->
662
+ <main class="content-area">
663
+ <!-- Step 1: Program Information -->
664
+ <div class="step-content active" id="step1">
665
+ <div class="content-header">
666
+ <h1 class="content-title">Program Information</h1>
667
+ <p class="content-description">Enter the basic details for your token program</p>
668
+ </div>
669
+
670
+ <div class="card">
671
+ <div class="card-header">
672
+ <h2 class="card-title">Basic Details</h2>
673
+ </div>
674
+ <form id="programInfoForm">
675
+ <div class="form-group">
676
+ <label class="form-label">
677
+ Program Name <span class="required">*</span>
678
+ </label>
679
+ <input type="text" class="form-input" id="programName" placeholder="e.g., Summer Token Program 2024" required>
680
+ <div class="helper-text">Choose a descriptive name for your program</div>
681
+ </div>
682
+
683
+ <div class="form-group">
684
+ <label class="form-label">
685
+ Program Description <span class="required">*</span>
686
+ </label>
687
+ <textarea class="form-textarea" id="programDescription" placeholder="Describe the purpose and objectives of this program..." required></textarea>
688
+ <div class="helper-text">Provide a clear description for administrators</div>
689
+ </div>
690
+
691
+ <div class="form-row">
692
+ <div class="form-group">
693
+ <label class="form-label">
694
+ Program Modality <span class="required">*</span>
695
+ </label>
696
+ <select class="form-select" id="programModality" required>
697
+ <option value="">Select modality</option>
698
+ <option value="ANR">ANR</option>
699
+ <option value="Token" selected>Token</option>
700
+ <option value="Incentives">Incentives</option>
701
+ <option value="Social Aid">Social Aid</option>
702
+ </select>
703
+ </div>
704
+
705
+ <div class="form-group">
706
+ <label class="form-label">
707
+ CUIT <span class="required">*</span>
708
+ </label>
709
+ <input type="text" class="form-input" id="cuit" placeholder="30-12345678-9" required>
710
+ <div class="helper-text">Tax identification number</div>
711
+ </div>
712
+ </div>
713
+
714
+ <div class="form-group">
715
+ <label class="form-label">
716
+ Validity Period <span class="required">*</span>
717
+ </label>
718
+ <div class="date-range-group">
719
+ <div>
720
+ <input type="date" class="form-input" id="validityStart" required>
721
+ <div class="helper-text">Start date</div>
722
+ </div>
723
+ <div>
724
+ <input type="date" class="form-input" id="validityEnd" required>
725
+ <div class="helper-text">End date</div>
726
+ </div>
727
+ </div>
728
+ </div>
729
+
730
+ <div class="form-row">
731
+ <div class="form-group">
732
+ <label class="form-label">
733
+ Program CBU <span class="required">*</span>
734
+ </label>
735
+ <input type="text" class="form-input" id="programCBU" placeholder="0000000000000000000000" required>
736
+ <div class="helper-text">Unique banking code</div>
737
+ </div>
738
+
739
+ <div class="form-group">
740
+ <label class="form-label">
741
+ Bank Account <span class="required">*</span>
742
+ </label>
743
+ <select class="form-select" id="bankAccount" required>
744
+ <option value="">Select account</option>
745
+ <option value="Banco Galicia - 123-456789/0">Banco Galicia - 123-456789/0</option>
746
+ <option value="Banco Macro - 987-654321/0">Banco Macro - 987-654321/0</option>
747
+ <option value="BBVA Francés - 456-789123/0">BBVA Francés - 456-789123/0</option>
748
+ <option value="Santander Río - 789-123456/0">Santander Río - 789-123456/0</option>
749
+ </select>
750
+ </div>
751
+ </div>
752
+ </form>
753
+ </div>
754
+
755
+ <div class="button-group">
756
+ <button class="btn btn-secondary" disabled>
757
+ ← Back
758
+ </button>
759
+ <button class="btn btn-primary" onclick="nextStep()">
760
+ Next →
761
+ </button>
762
+ </div>
763
+ </div>
764
+
765
+ <!-- Step 2: Token Purchase Window -->
766
+ <div class="step-content" id="step2">
767
+ <div class="content-header">
768
+ <h1 class="content-title">Token Purchase Window</h1>
769
+ <p class="content-description">Configure the purchase period and limits for tokens</p>
770
+ </div>
771
+
772
+ <div class="card">
773
+ <div class="card-header">
774
+ <h2 class="card-title">Purchase Configuration</h2>
775
+ </div>
776
+ <form id="purchaseForm">
777
+ <div class="form-group">
778
+ <label class="form-label">
779
+ Token Purchase Period <span class="required">*</span>
780
+ </label>
781
+ <div class="date-range-group">
782
+ <div>
783
+ <input type="date" class="form-input" id="purchaseStart" required>
784
+ <div class="helper-text">Purchase start date</div>
785
+ </div>
786
+ <div>
787
+ <input type="date" class="form-input" id="purchaseEnd" required>
788
+ <div class="helper-text">Purchase end date</div>
789
+ </div>
790
+ </div>
791
+ </div>
792
+
793
+ <div class="card-header" style="margin-top: 2rem;">
794
+ <h2 class="card-title">Purchase Limits</h2>
795
+ </div>
796
+
797
+ <div class="form-row">
798
+ <div class="form-group">
799
+ <label class="form-label">
800
+ Minimum Amount <span class="required">*</span>
801
+ </label>
802
+ <div class="currency-input-wrapper">
803
+ <span class="currency-prefix">$</span>
804
+ <input type="number" class="form-input currency-input" id="minAmount" placeholder="100.00" min="1" step="0.01" required>
805
+ </div>
806
+ <div class="helper-text">Minimum purchase amount in USD</div>
807
+ </div>
808
+
809
+ <div class="form-group">
810
+ <label class="form-label">
811
+ Maximum Amount <span class="required">*</span>
812
+ </label>
813
+ <div class="currency-input-wrapper">
814
+ <span class="currency-prefix">$</span>
815
+ <input type="number" class="form-input currency-input" id="maxAmount" placeholder="10000.00" min="1" step="0.01" required>
816
+ </div>
817
+ <div class="helper-text">Maximum purchase amount in USD</div>
818
+ </div>
819
+ </div>
820
+
821
+ <div class="form-group">
822
+ <label class="form-label">
823
+ Token Value
824
+ </label>
825
+ <input type="text" class="form-input" value="1 Token = $1.00 USD" readonly style="background: var(--bg-secondary);">
826
+ <div class="helper-text">Fixed conversion rate for this program</div>
827
+ </div>
828
+ </form>
829
+ </div>
830
+
831
+ <div class="button-group">
832
+ <button class="btn btn-secondary" onclick="previousStep()">
833
+ ← Back
834
+ </button>
835
+ <button class="btn btn-primary" onclick="nextStep()">
836
+ Next →
837
+ </button>
838
+ </div>
839
+ </div>
840
+
841
+ <!-- Step 3: Bonus Configuration -->
842
+ <div class="step-content" id="step3">
843
+ <div class="content-header">
844
+ <h1 class="content-title">Bonus Configuration</h1>
845
+ <p class="content-description">Set up bonus incentives for token purchases</p>
846
+ </div>
847
+
848
+ <div class="card">
849
+ <div class="card-header">
850
+ <h2 class="card-title">Bonus Type</h2>
851
+ </div>
852
+ <form id="bonusForm">
853
+ <div class="form-group">
854
+ <label class="form-label">
855
+ Select Bonus Type <span class="required">*</span>
856
+ </label>
857
+ <div class="radio-group">
858
+ <label class="radio-option">
859
+ <input type="radio" name="bonusType" value="percentage" class="radio-input" checked>
860
+ <span class="radio-label">Percentage Bonus</span>
861
+ </label>
862
+ <label class="radio-option">
863
+ <input type="radio" name="bonusType" value="fixed" class="radio-input">
864
+ <span class="radio-label">Fixed Token Bonus</span>
865
+ </label>
866
+ </div>
867
+ <div class="helper-text">Choose how the bonus will be calculated</div>
868
+ </div>
869
+
870
+ <div id="percentageBonusSection" class="form-group">
871
+ <label class="form-label">
872
+ Bonus Percentage <span class="required">*</span>
873
+ </label>
874
+ <div style="position: relative;">
875
+ <input type="number" class="form-input" id="bonusPercentage" placeholder="20" min="0" max="100" step="0.1" required>
876
+ <span style="position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--text-secondary);">%</span>
877
+ </div>
878
+ <div class="helper-text">Percentage of tokens added as bonus (e.g., 20% means 20 extra tokens per 100
879
+ purchased)</div>
880
+ </div>
881
+
882
+ <div id="fixedBonusSection" class="form-group" style="display: none;">
883
+ <label class="form-label">
884
+ Fixed Bonus Tokens <span class="required">*</span>
885
+ </label>
886
+ <input type="number" class="form-input" id="fixedBonusTokens" placeholder="50" min="1" required>
887
+ <div class="helper-text">Fixed number of bonus tokens added to every purchase</div>
888
+ </div>
889
+
890
+ <div class="form-group">
891
+ <label class="form-label">
892
+ Bonus Application
893
+ </label>
894
+ <select class="form-select" id="bonusApplication">
895
+ <option value="all">All purchases</option>
896
+ <option value="min-amount">Purchases above minimum</option>
897
+ <option value="threshold">Purchases above threshold</option>
898
+ </select>
899
+ <div class="helper-text">When should the bonus be applied</div>
900
+ </div>
901
+ </form>
902
+ </div>
903
+
904
+ <div class="button-group">
905
+ <button class="btn btn-secondary" onclick="previousStep()">
906
+ ← Back
907
+ </button>
908
+ <button class="btn btn-primary" onclick="nextStep()">
909
+ Next →
910
+ </button>
911
+ </div>
912
+ </div>
913
+
914
+ <!-- Step 4: Summary & Preview -->
915
+ <div class="step-content" id="step4">
916
+ <div class="content-header">
917
+ <h1 class="content-title">Summary & Bonus Preview</h1>
918
+ <p class="content-description">Review all program details before creation</p>
919
+ </div>
920
+
921
+ <div class="card">
922
+ <div class="card-header">
923
+ <h2 class="card-title">Program Summary</h2>
924
+ </div>
925
+ <div id="summaryContent">
926
+ <!-- Summary will be populated by JavaScript -->
927
+ </div>
928
+ </div>
929
+
930
+ <div class="card">
931
+ <div class="card-header">
932
+ <h2 class="card-title">Bonus Preview Calculation</h2>
933
+ </div>
934
+ <div class="bonus-preview">
935
+ <div class="bonus-preview-title">
936
+ <span class="info-icon">i</span>
937
+ Example Calculation
938
+ </div>
939
+ <div id="bonusCalculation">
940
+ <!-- Bonus calculation will be populated by JavaScript -->
941
+ </div>
942
+ </div>
943
+ </div>
944
+
945
+ <div class="button-group">
946
+ <button class="btn btn-secondary" onclick="previousStep()">
947
+ ← Back
948
+ </button>
949
+ <button class="btn btn-primary" onclick="createProgram()">
950
+ Confirm & Create Program
951
+ </button>
952
+ </div>
953
+ </div>
954
+
955
+ <!-- Step 5: Success -->
956
+ <div class="step-content" id="step5">
957
+ <div class="success-container">
958
+ <div class="success-icon"></div>
959
+ <h1 class="success-title">Program Successfully Created!</h1>
960
+ <p class="success-message">Your token program has been created and is ready to be managed.</p>
961
+
962
+ <div class="success-details">
963
+ <h3 style="margin-bottom: 1rem; font-size: 1.125rem;">Program Details</h3>
964
+ <div id="successDetails">
965
+ <!-- Success details will be populated by JavaScript -->
966
+ </div>
967
+ </div>
968
+
969
+ <div style="display: flex; gap: 1rem; justify-content: center;">
970
+ <button class="btn btn-primary" onclick="goToProgramList()">
971
+ Go to Program List
972
+ </button>
973
+ <button class="btn btn-secondary" onclick="createAnotherProgram()">
974
+ Create Another Program
975
+ </button>
976
+ </div>
977
+ </div>
978
+ </div>
979
+ </main>
980
+ </div>
981
+
982
+ <script>
983
+ let currentStep = 1;
984
+ const totalSteps = 5;
985
+ let programData = {};
986
+
987
+ // Initialize date inputs with default values
988
+ document.addEventListener('DOMContentLoaded', function() {
989
+ const today = new Date();
990
+ const nextWeek = new Date(today);
991
+ nextWeek.setDate(today.getDate() + 7);
992
+ const nextMonth = new Date(today);
993
+ nextMonth.setMonth(today.getMonth() + 1);
994
+ const nextMonthPlusWeek = new Date(nextMonth);
995
+ nextMonthPlusWeek.setDate(nextMonth.getDate() + 7);
996
+
997
+ // Set default dates
998
+ document.getElementById('validityStart').valueAsDate = today;
999
+ document.getElementById('validityEnd').valueAsDate = nextMonth;
1000
+ document.getElementById('purchaseStart').valueAsDate = today;
1001
+ document.getElementById('purchaseEnd').valueAsDate = nextWeek;
1002
+
1003
+ // Add event listeners for bonus type
1004
+ document.querySelectorAll('input[name="bonusType"]').forEach(radio => {
1005
+ radio.addEventListener('change', function() {
1006
+ if (this.value === 'percentage') {
1007
+ document.getElementById('percentageBonusSection').style.display = 'block';
1008
+ document.getElementById('fixedBonusSection').style.display = 'none';
1009
+ } else {
1010
+ document.getElementById('percentageBonusSection').style.display = 'none';
1011
+ document.getElementById('fixedBonusSection').style.display = 'block';
1012
+ }
1013
+ });
1014
+ });
1015
+
1016
+ // Add event listeners for step clicks
1017
+ document.querySelectorAll('.step-item').forEach(item => {
1018
+ item.addEventListener('click', function() {
1019
+ const step = parseInt(this.dataset.step);
1020
+ if (step < currentStep || this.classList.contains('completed')) {
1021
+ goToStep(step);
1022
+ }
1023
+ });
1024
+ });
1025
+ });
1026
+
1027
+ function validateStep(step) {
1028
+ let isValid = true;
1029
+ let errors = [];
1030
+
1031
+ switch(step) {
1032
+ case 1:
1033
+ const programName = document.getElementById('programName').value;
1034
+ const programDescription = document.getElementById('programDescription').value;
1035
+ const cuit = document.getElementById('cuit').value;
1036
+ const validityStart = document.getElementById('validityStart').value;
1037
+ const validityEnd = document.getElementById('validityEnd').value;
1038
+ const programCBU = document.getElementById('programCBU').value;
1039
+ const bankAccount = document.getElementById('bankAccount').value;
1040
+
1041
+ if (!programName) errors.push('Program name is required');
1042
+ if (!programDescription) errors.push('Program description is required');
1043
+ if (!cuit) errors.push('CUIT is required');
1044
+ if (!validityStart) errors.push('Validity start date is required');
1045
+ if (!validityEnd) errors.push('Validity end date is required');
1046
+ if (!programCBU) errors.push('Program CBU is required');
1047
+ if (!bankAccount) errors.push('Bank account is required');
1048
+
1049
+ if (validityStart && validityEnd && new Date(validityEnd) <= new Date(validityStart)) {
1050
+ errors.push('End date must be after start date');
1051
+ }
1052
+
1053
+ if (errors.length === 0) {
1054
+ programData.step1 = {
1055
+ programName,
1056
+ programDescription,
1057
+ programModality: document.getElementById('programModality').value,
1058
+ cuit,
1059
+ validityStart,
1060
+ validityEnd,
1061
+ programCBU,
1062
+ bankAccount
1063
+ };
1064
+ }
1065
+ break;
1066
+
1067
+ case 2:
1068
+ const purchaseStart = document.getElementById('purchaseStart').value;
1069
+ const purchaseEnd = document.getElementById('purchaseEnd').value;
1070
+ const minAmount = document.getElementById('minAmount').value;
1071
+ const maxAmount = document.getElementById('maxAmount').value;
1072
+
1073
+ if (!purchaseStart) errors.push('Purchase start date is required');
1074
+ if (!purchaseEnd) errors.push('Purchase end date is required');
1075
+ if (!minAmount) errors.push('Minimum amount is required');
1076
+ if (!maxAmount) errors.push('Maximum amount is required');
1077
+
1078
+ if (purchaseStart && purchaseEnd && new Date(purchaseEnd) <= new Date(purchaseStart)) {
1079
+ errors.push('Purchase end date must be after start date');
1080
+ }
1081
+
1082
+ if (minAmount && maxAmount && parseFloat(minAmount) >= parseFloat(maxAmount)) {
1083
+ errors.push('Maximum amount must be greater than minimum amount');
1084
+ }
1085
+
1086
+ if (errors.length === 0) {
1087
+ programData.step2 = {
1088
+ purchaseStart,
1089
+ purchaseEnd,
1090
+ minAmount,
1091
+ maxAmount
1092
+ };
1093
+ }
1094
+ break;
1095
+
1096
+ case 3:
1097
+ const bonusType = document.querySelector('input[name="bonusType"]:checked').value;
1098
+ const bonusApplication = document.getElementById('bonusApplication').value;
1099
+
1100
+ if (bonusType === 'percentage') {
1101
+ const bonusPercentage = document.getElementById('bonusPercentage').value;
1102
+ if (!bonusPercentage) errors.push('Bonus percentage is required');
1103
+ else if (parseFloat(bonusPercentage) < 0 || parseFloat(bonusPercentage) > 100) {
1104
+ errors.push('Bonus percentage must be between 0 and 100');
1105
+ }
1106
+ } else {
1107
+ const fixedBonusTokens = document.getElementById('fixedBonusTokens').value;
1108
+ if (!fixedBonusTokens) errors.push('Fixed bonus tokens is required');
1109
+ else if (parseFloat(fixedBonusTokens) < 1) {
1110
+ errors.push('Fixed bonus tokens must be at least 1');
1111
+ }
1112
+ }
1113
+
1114
+ if (errors.length === 0) {
1115
+ programData.step3 = {
1116
+ bonusType,
1117
+ bonusPercentage: bonusType === 'percentage' ? document.getElementById('bonusPercentage').value : null,
1118
+ fixedBonusTokens: bonusType === 'fixed' ? document.getElementById('fixedBonusTokens').value : null,
1119
+ bonusApplication
1120
+ };
1121
+ }
1122
+ break;
1123
+ }
1124
+
1125
+ // Show errors if any
1126
+ if (errors.length > 0) {
1127
+ isValid = false;
1128
+ showNotification(errors[0], 'error');
1129
+ }
1130
+
1131
+ return isValid;
1132
+ }
1133
+
1134
+ function nextStep() {
1135
+ if (validateStep(currentStep)) {
1136
+ if (currentStep < totalSteps) {
1137
+ // Mark current step as completed
1138
+ const currentStepElement = document.querySelector(`.step-item[data-step="${currentStep}"]`);
1139
+ currentStepElement.classList.add('completed');
1140
+ currentStepElement.classList.remove('active');
1141
+
1142
+ currentStep++;
1143
+
1144
+ // Update UI
1145
+ const nextStepElement = document.querySelector(`.step-item[data-step="${currentStep}"]`);
1146
+ nextStepElement.classList.add('active');
1147
+
1148
+ document.querySelectorAll('.step-content').forEach(content => {
1149
+ content.classList.remove('active');
1150
+ });
1151
+ document.getElementById(`step${currentStep}`).classList.add('active');
1152
+
1153
+ // Special handling for step 4
1154
+ if (currentStep === 4) {
1155
+ updateSummary();
1156
+ updateBonusPreview();
1157
+ }
1158
+ }
1159
+ }
1160
+ }
1161
+
1162
+ function previousStep() {
1163
+ if (currentStep > 1) {
1164
+ const currentStepElement = document.querySelector(`.step-item[data-step="${currentStep}"]`);
1165
+ currentStepElement.classList.remove('active');
1166
+
1167
+ currentStep--;
1168
+
1169
+ document.querySelectorAll('.step-content').forEach(content => {
1170
+ content.classList.remove('active');
1171
+ });
1172
+ document.getElementById(`step${currentStep}`).classList.add('active');
1173
+
1174
+ const prevStepElement = document.querySelector(`.step-item[data-step="${currentStep}"]`);
1175
+ prevStepElement.classList.add('active');
1176
+ }
1177
+ }
1178
+
1179
+ function goToStep(step) {
1180
+ if (step >= 1 && step <= currentStep) {
1181
+ document.querySelectorAll('.step-item').forEach(item => {
1182
+ item.classList.remove('active');
1183
+ });
1184
+
1185
+ document.querySelectorAll('.step-content').forEach(content => {
1186
+ content.classList.remove('active');
1187
+ });
1188
+
1189
+ currentStep = step;
1190
+ document.querySelector(`.step-item[data-step="${currentStep}"]`).classList.add('active');
1191
+ document.getElementById(`step${currentStep}`).classList.add('active');
1192
+
1193
+ if (currentStep === 4) {
1194
+ updateSummary();
1195
+ updateBonusPreview();
1196
+ }
1197
+ }
1198
+ }
1199
+
1200
+ function updateSummary() {
1201
+ const summaryHTML = `
1202
+ <div class="summary-item">
1203
+ <span class="summary-label">Program Name</span>
1204
+ <span class="summary-value">${programData.step1.programName}</span>
1205
+ </div>
1206
+ <div class="summary-item">
1207
+ <span class="summary-label">Program Modality</span>
1208
+ <span class="summary-value">${programData.step1.programModality}</span>
1209
+ </div>
1210
+ <div class="summary-item">
1211
+ <span class="summary-label">CUIT</span>
1212
+ <span class="summary-value">${programData.step1.cuit}</span>
1213
+ </div>
1214
+ <div class="summary-item">
1215
+ <span class="summary-label">Validity Period</span>
1216
+ <span class="summary-value">${formatDate(programData.step1.validityStart)} - ${formatDate(programData.step1.validityEnd)}</span>
1217
+ </div>
1218
+ <div class="summary-item">
1219
+ <span class="summary-label">Bank Account</span>
1220
+ <span class="summary-value">${programData.step1.bankAccount}</span>
1221
+ </div>
1222
+ <div class="summary-item">
1223
+ <span class="summary-label">Purchase Period</span>
1224
+ <span class="summary-value">${formatDate(programData.step2.purchaseStart)} - ${formatDate(programData.step2.purchaseEnd)}</span>
1225
+ </div>
1226
+ <div class="summary-item">
1227
+ <span class="summary-label">Purchase Limits</span>
1228
+ <span class="summary-value">$${programData.step2.minAmount} - $${programData.step2.maxAmount}</span>
1229
+ </div>
1230
+ <div class="summary-item">
1231
+ <span class="summary-label">Bonus Type</span>
1232
+ <span class="summary-value">${programData.step3.bonusType === 'percentage' ? 'Percentage Bonus' : 'Fixed Token Bonus'}</span>
1233
+ </div>
1234
+ ${programData.step3.bonusType === 'percentage' ?
1235
+ `<div class="summary-item">
1236
+ <span class="summary-label">Bonus Percentage</span>
1237
+ <span class="summary-value">${programData.step3.bonusPercentage}%</span>
1238
+ </div>` :
1239
+ `<div class="summary-item">
1240
+ <span class="summary-label">Fixed Bonus Tokens</span>
1241
+ <span class="summary-value">${programData.step3.fixedBonusTokens} tokens</span>
1242
+ </div>`
1243
+ }
1244
+ `;
1245
+ document.getElementById('summaryContent').innerHTML = summaryHTML;
1246
+ }
1247
+
1248
+ function updateBonusPreview() {
1249
+ const bonusType = programData.step3.bonusType;
1250
+ let calculationHTML = '';
1251
+
1252
+ if (bonusType === 'percentage') {
1253
+ const percentage = parseFloat(programData.step3.bonusPercentage);
1254
+ const exampleAmount = 100;
1255
+ const bonusAmount = exampleAmount * (percentage / 100);
1256
+ const total = exampleAmount + bonusAmount;
1257
+
1258
+ calculationHTML = `
1259
+ <div class="bonus-calculation">
1260
+ <div class="calculation-line">
1261
+ <span>Example purchase amount:</span>
1262
+ <span>${exampleAmount} tokens</span>
1263
+ </div>
1264
+ <div class="calculation-line">
1265
+ <span>Bonus (${percentage}%):</span>
1266
+ <span style="color: var(--success-color);">+${bonusAmount} tokens</span>
1267
+ </div>
1268
+ <div class="calculation-line total">
1269
+ <span>Total tokens received:</span>
1270
+ <span>${total} tokens</span>
1271
+ </div>
1272
+ </div>
1273
+ `;
1274
+ } else {
1275
+ const fixedBonus = parseInt(programData.step3.fixedBonusTokens);
1276
+ const exampleAmount = 100;
1277
+ const total = exampleAmount + fixedBonus;
1278
+
1279
+ calculationHTML = `
1280
+ <div class="bonus-calculation">
1281
+ <div class="calculation-line">
1282
+ <span>Example purchase amount:</span>
1283
+ <span>${exampleAmount} tokens</span>
1284
+ </div>
1285
+ <div class="calculation-line">
1286
+ <span>Fixed bonus:</span>
1287
+ <span style="color: var(--success-color);">+${fixedBonus} tokens</span>
1288
+ </div>
1289
+ <div class="calculation-line total">
1290
+ <span>Total tokens received:</span>
1291
+ <span>${total} tokens</span>
1292
+ </div>
1293
+ </div>
1294
+ `;
1295
+ }
1296
+
1297
+ document.getElementById('bonusCalculation').innerHTML = calculationHTML;
1298
+ }
1299
+
1300
+ function createProgram() {
1301
+ // Simulate program creation
1302
+ const button = event.target;
1303
+ button.innerHTML = '<span class="loading"></span> Creating...';
1304
+ button.disabled = true;
1305
+
1306
+ setTimeout(() => {
1307
+ // Mark step 4 as completed
1308
+ const step4Element = document.querySelector('.step-item[data-step="4"]');
1309
+ step4Element.classList.add('completed');
1310
+ step4Element.classList.remove('active');
1311
+
1312
+ // Move to step 5
1313
+ currentStep = 5