File size: 32,662 Bytes
c5ce225
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>SAP Fiori Test UI</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        .sap-fiori-primary {
            background-color: #0a6ed1;
        }
        .sap-fiori-primary-text {
            color: #0a6ed1;
        }
        .sap-fiori-secondary {
            background-color: #f7f7f7;
        }
        .sap-fiori-shadow {
            box-shadow: 0 0 0.125rem 0 rgba(0, 0, 0, 0.1), 0 0.5rem 1rem 0 rgba(0, 0, 0, 0.1);
        }
        .sap-fiori-border {
            border: 1px solid #d9d9d9;
        }
        .sap-fiori-hover:hover {
            background-color: #ebf2fa;
        }
    </style>
</head>
<body class="font-sans bg-gray-50">
    <!-- Login Screen (Initial View) -->
    <div id="login-screen" class="flex items-center justify-center min-h-screen">
        <div class="w-full max-w-md p-8 bg-white rounded sap-fiori-shadow">
            <div class="text-center mb-8">
                <i class="fas fa-cloud text-5xl sap-fiori-primary-text mb-4"></i>
                <h1 class="text-2xl font-semibold text-gray-800">Welcome to SAP Test UI</h1>
                <p class="text-gray-600 mt-2">Please sign in to continue</p>
            </div>
            
            <form id="login-form" class="space-y-4">
                <div>
                    <label for="email" class="block text-sm font-medium text-gray-700 mb-1">Email</label>
                    <input type="email" id="email" name="email" value="[email protected]" 
                           class="w-full px-3 py-2 sap-fiori-border rounded focus:outline-none focus:ring-2 focus:ring-blue-200">
                </div>
                
                <div>
                    <label for="password" class="block text-sm font-medium text-gray-700 mb-1">Password</label>
                    <input type="password" id="password" name="password" value="1244!@" 
                           class="w-full px-3 py-2 sap-fiori-border rounded focus:outline-none focus:ring-2 focus:ring-blue-200">
                </div>
                
                <div class="flex items-center justify-between">
                    <div class="flex items-center">
                        <input id="remember-me" type="checkbox" class="h-4 w-4 text-blue-600 focus:ring-blue-200 border-gray-300 rounded">
                        <label for="remember-me" class="ml-2 block text-sm text-gray-700">Remember me</label>
                    </div>
                    
                    <a href="#" class="text-sm sap-fiori-primary-text hover:underline" onclick="showForgotPassword()">Forgot password?</a>
                </div>
                
                <button type="button" onclick="login()" 
                        class="w-full sap-fiori-primary text-white py-2 px-4 rounded hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-300">
                    Sign In
                </button>
            </form>
        </div>
    </div>

    <!-- Forgot Password Screen (Hidden by default) -->
    <div id="forgot-password-screen" class="hidden items-center justify-center min-h-screen">
        <div class="w-full max-w-md p-8 bg-white rounded sap-fiori-shadow">
            <div class="text-center mb-8">
                <i class="fas fa-key text-4xl sap-fiori-primary-text mb-4"></i>
                <h1 class="text-2xl font-semibold text-gray-800">Reset Password</h1>
                <p class="text-gray-600 mt-2">Enter your email to receive reset instructions</p>
            </div>
            
            <form class="space-y-4">
                <div>
                    <label for="reset-email" class="block text-sm font-medium text-gray-700 mb-1">Email</label>
                    <input type="email" id="reset-email" name="email" value="[email protected]" 
                           class="w-full px-3 py-2 sap-fiori-border rounded focus:outline-none focus:ring-2 focus:ring-blue-200">
                </div>
                
                <div class="flex space-x-3">
                    <button type="button" onclick="hideForgotPassword()" 
                            class="flex-1 sap-fiori-secondary text-gray-700 py-2 px-4 rounded hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200">
                        Cancel
                    </button>
                    <button type="button" onclick="sendResetLink()" 
                            class="flex-1 sap-fiori-primary text-white py-2 px-4 rounded hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-300">
                        Send Link
                    </button>
                </div>
            </form>
        </div>
    </div>

    <!-- Main App Screen (Hidden by default) -->
    <div id="app-screen" class="hidden min-h-screen">
        <!-- Header -->
        <header class="sap-fiori-primary text-white">
            <div class="container mx-auto px-4 py-3 flex justify-between items-center">
                <div class="flex items-center space-x-4">
                    <i class="fas fa-cloud text-2xl"></i>
                    <span class="text-xl font-semibold">SAP Test UI</span>
                </div>
                
                <div class="flex items-center space-x-4">
                    <button class="p-2 rounded-full hover:bg-blue-700" onclick="showNotifications()">
                        <i class="fas fa-bell"></i>
                    </button>
                    <div class="flex items-center space-x-2 cursor-pointer" onclick="showUserMenu()">
                        <div class="w-8 h-8 rounded-full bg-blue-200 flex items-center justify-center">
                            <i class="fas fa-user text-blue-700"></i>
                        </div>
                        <span>User</span>
                    </div>
                </div>
            </div>
        </header>
        
        <!-- Sidebar and Main Content -->
        <div class="flex">
            <!-- Sidebar -->
            <aside class="w-64 sap-fiori-secondary min-h-screen border-r sap-fiori-border">
                <nav class="p-4">
                    <ul class="space-y-1">
                        <li>
                            <a href="#" class="flex items-center p-3 rounded sap-fiori-hover sap-fiori-primary-text font-medium" onclick="showDashboard()">
                                <i class="fas fa-tachometer-alt mr-3"></i>
                                <span>Dashboard</span>
                            </a>
                        </li>
                        <li>
                            <a href="#" class="flex items-center p-3 rounded sap-fiori-hover text-gray-700" onclick="showOrders()">
                                <i class="fas fa-shopping-cart mr-3"></i>
                                <span>Orders</span>
                            </a>
                        </li>
                        <li>
                            <a href="#" class="flex items-center p-3 rounded sap-fiori-hover text-gray-700" onclick="showProducts()">
                                <i class="fas fa-boxes mr-3"></i>
                                <span>Products</span>
                            </a>
                        </li>
                        <li>
                            <a href="#" class="flex items-center p-3 rounded sap-fiori-hover text-gray-700" onclick="showCustomers()">
                                <i class="fas fa-users mr-3"></i>
                                <span>Customers</span>
                            </a>
                        </li>
                        <li>
                            <a href="#" class="flex items-center p-3 rounded sap-fiori-hover text-gray-700" onclick="showReports()">
                                <i class="fas fa-chart-bar mr-3"></i>
                                <span>Reports</span>
                            </a>
                        </li>
                        <li>
                            <a href="#" class="flex items-center p-3 rounded sap-fiori-hover text-gray-700" onclick="showSettings()">
                                <i class="fas fa-cog mr-3"></i>
                                <span>Settings</span>
                            </a>
                        </li>
                    </ul>
                </nav>
            </aside>
            
            <!-- Main Content Area -->
            <main class="flex-1 p-6">
                <div id="dashboard-content">
                    <div class="flex justify-between items-center mb-6">
                        <h2 class="text-2xl font-semibold text-gray-800">Dashboard</h2>
                        <button class="sap-fiori-primary text-white px-4 py-2 rounded hover:bg-blue-700" onclick="showCreateOrderModal()">
                            <i class="fas fa-plus mr-2"></i> Create Order
                        </button>
                    </div>
                    
                    <!-- Cards -->
                    <div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-6">
                        <div class="bg-white p-6 rounded sap-fiori-shadow">
                            <div class="flex items-center justify-between">
                                <div>
                                    <p class="text-gray-500">Total Orders</p>
                                    <h3 class="text-2xl font-semibold">1,234</h3>
                                </div>
                                <div class="p-3 rounded-full bg-blue-100 text-blue-600">
                                    <i class="fas fa-shopping-cart"></i>
                                </div>
                            </div>
                        </div>
                        
                        <div class="bg-white p-6 rounded sap-fiori-shadow">
                            <div class="flex items-center justify-between">
                                <div>
                                    <p class="text-gray-500">Revenue</p>
                                    <h3 class="text-2xl font-semibold">$45,678</h3>
                                </div>
                                <div class="p-3 rounded-full bg-green-100 text-green-600">
                                    <i class="fas fa-dollar-sign"></i>
                                </div>
                            </div>
                        </div>
                        
                        <div class="bg-white p-6 rounded sap-fiori-shadow">
                            <div class="flex items-center justify-between">
                                <div>
                                    <p class="text-gray-500">Customers</p>
                                    <h3 class="text-2xl font-semibold">567</h3>
                                </div>
                                <div class="p-3 rounded-full bg-purple-100 text-purple-600">
                                    <i class="fas fa-users"></i>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- Recent Orders Table -->
                    <div class="bg-white rounded sap-fiori-shadow overflow-hidden">
                        <div class="p-4 border-b sap-fiori-border">
                            <h3 class="font-medium">Recent Orders</h3>
                        </div>
                        <div class="overflow-x-auto">
                            <table class="min-w-full divide-y divide-gray-200">
                                <thead class="bg-gray-50">
                                    <tr>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Order ID</th>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Customer</th>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Amount</th>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
                                    </tr>
                                </thead>
                                <tbody class="bg-white divide-y divide-gray-200">
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#ORD-1001</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">John Smith</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-15</td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Completed</span>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$1,234.00</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                            <button class="text-blue-600 hover:text-blue-900 mr-3" onclick="viewOrder('ORD-1001')">View</button>
                                            <button class="text-red-600 hover:text-red-900" onclick="deleteOrder('ORD-1001')">Delete</button>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#ORD-1002</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Sarah Johnson</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-14</td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">Processing</span>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$567.89</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                            <button class="text-blue-600 hover:text-blue-900 mr-3" onclick="viewOrder('ORD-1002')">View</button>
                                            <button class="text-red-600 hover:text-red-900" onclick="deleteOrder('ORD-1002')">Delete</button>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#ORD-1003</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Michael Brown</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-13</td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">Shipped</span>
                                        </td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$890.12</td>
                                        <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                            <button class="text-blue-600 hover:text-blue-900 mr-3" onclick="viewOrder('ORD-1003')">View</button>
                                            <button class="text-red-600 hover:text-red-900" onclick="deleteOrder('ORD-1003')">Delete</button>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                
                <!-- Other Content Areas (Hidden by default) -->
                <div id="orders-content" class="hidden">
                    <h2 class="text-2xl font-semibold text-gray-800 mb-6">Orders</h2>
                    <p class="text-gray-600">This is the orders page content.</p>
                </div>
                
                <div id="products-content" class="hidden">
                    <h2 class="text-2xl font-semibold text-gray-800 mb-6">Products</h2>
                    <p class="text-gray-600">This is the products page content.</p>
                </div>
                
                <div id="customers-content" class="hidden">
                    <h2 class="text-2xl font-semibold text-gray-800 mb-6">Customers</h2>
                    <p class="text-gray-600">This is the customers page content.</p>
                </div>
                
                <div id="reports-content" class="hidden">
                    <h2 class="text-2xl font-semibold text-gray-800 mb-6">Reports</h2>
                    <p class="text-gray-600">This is the reports page content.</p>
                </div>
                
                <div id="settings-content" class="hidden">
                    <h2 class="text-2xl font-semibold text-gray-800 mb-6">Settings</h2>
                    <p class="text-gray-600">This is the settings page content.</p>
                </div>
            </main>
        </div>
    </div>
    
    <!-- Create Order Modal (Hidden by default) -->
    <div id="create-order-modal" class="hidden fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
        <div class="bg-white rounded sap-fiori-shadow w-full max-w-md">
            <div class="p-4 border-b sap-fiori-border flex justify-between items-center">
                <h3 class="text-lg font-medium">Create New Order</h3>
                <button onclick="hideCreateOrderModal()" class="text-gray-500 hover:text-gray-700">
                    <i class="fas fa-times"></i>
                </button>
            </div>
            
            <div class="p-4">
                <form class="space-y-4">
                    <div>
                        <label class="block text-sm font-medium text-gray-700 mb-1">Customer</label>
                        <select class="w-full px-3 py-2 sap-fiori-border rounded focus:outline-none focus:ring-2 focus:ring-blue-200">
                            <option>Select customer</option>
                            <option>John Smith</option>
                            <option>Sarah Johnson</option>
                            <option>Michael Brown</option>
                        </select>
                    </div>
                    
                    <div>
                        <label class="block text-sm font-medium text-gray-700 mb-1">Product</label>
                        <select class="w-full px-3 py-2 sap-fiori-border rounded focus:outline-none focus:ring-2 focus:ring-blue-200">
                            <option>Select product</option>
                            <option>Product A</option>
                            <option>Product B</option>
                            <option>Product C</option>
                        </select>
                    </div>
                    
                    <div>
                        <label class="block text-sm font-medium text-gray-700 mb-1">Quantity</label>
                        <input type="number" min="1" value="1" 
                               class="w-full px-3 py-2 sap-fiori-border rounded focus:outline-none focus:ring-2 focus:ring-blue-200">
                    </div>
                    
                    <div class="flex justify-end space-x-3 pt-4">
                        <button type="button" onclick="hideCreateOrderModal()" 
                                class="sap-fiori-secondary text-gray-700 py-2 px-4 rounded hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200">
                            Cancel
                        </button>
                        <button type="button" onclick="submitOrder()" 
                                class="sap-fiori-primary text-white py-2 px-4 rounded hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-300">
                            Create Order
                        </button>
                    </div>
                </form>
            </div>
        </div>
    </div>
    
    <!-- Notifications Panel (Hidden by default) -->
    <div id="notifications-panel" class="hidden fixed right-4 top-16 w-80 bg-white rounded sap-fiori-shadow z-50">
        <div class="p-3 border-b sap-fiori-border flex justify-between items-center">
            <h3 class="font-medium">Notifications</h3>
            <button onclick="hideNotifications()" class="text-gray-500 hover:text-gray-700">
                <i class="fas fa-times"></i>
            </button>
        </div>
        
        <div class="divide-y divide-gray-200">
            <div class="p-3 hover:bg-gray-50 cursor-pointer">
                <div class="flex items-start">
                    <div class="flex-shrink-0 pt-1">
                        <div class="h-8 w-8 rounded-full bg-blue-100 flex items-center justify-center">
                            <i class="fas fa-info-circle text-blue-600"></i>
                        </div>
                    </div>
                    <div class="ml-3">
                        <p class="text-sm font-medium text-gray-900">New order received</p>
                        <p class="text-sm text-gray-500">Order #ORD-1004 from John Smith</p>
                        <p class="text-xs text-gray-400 mt-1">2 minutes ago</p>
                    </div>
                </div>
            </div>
            
            <div class="p-3 hover:bg-gray-50 cursor-pointer">
                <div class="flex items-start">
                    <div class="flex-shrink-0 pt-1">
                        <div class="h-8 w-8 rounded-full bg-green-100 flex items-center justify-center">
                            <i class="fas fa-check-circle text-green-600"></i>
                        </div>
                    </div>
                    <div class="ml-3">
                        <p class="text-sm font-medium text-gray-900">Order shipped</p>
                        <p class="text-sm text-gray-500">Order #ORD-1002 has been shipped</p>
                        <p class="text-xs text-gray-400 mt-1">1 hour ago</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- User Menu (Hidden by default) -->
    <div id="user-menu" class="hidden fixed right-4 top-16 w-48 bg-white rounded sap-fiori-shadow z-50">
        <div class="p-2">
            <div class="px-4 py-2 text-sm text-gray-700">Signed in as <span class="font-medium">[email protected]</span></div>
            <div class="border-t sap-fiori-border my-1"></div>
            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded">Your Profile</a>
            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded">Settings</a>
            <div class="border-t sap-fiori-border my-1"></div>
            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded" onclick="logout()">Sign out</a>
        </div>
    </div>
    
    <!-- Confirmation Dialog (Hidden by default) -->
    <div id="confirmation-dialog" class="hidden fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50">
        <div class="bg-white rounded sap-fiori-shadow w-full max-w-md">
            <div class="p-4 border-b sap-fiori-border">
                <h3 class="text-lg font-medium">Confirm Action</h3>
            </div>
            
            <div class="p-4">
                <p id="confirmation-message" class="text-gray-700 mb-4">Are you sure you want to perform this action?</p>
                
                <div class="flex justify-end space-x-3">
                    <button type="button" onclick="hideConfirmationDialog()" 
                            class="sap-fiori-secondary text-gray-700 py-2 px-4 rounded hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200">
                        Cancel
                    </button>
                    <button type="button" id="confirm-action-button" 
                            class="sap-fiori-primary text-white py-2 px-4 rounded hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-300">
                        Confirm
                    </button>
                </div>
            </div>
        </div>
    </div>

    <script>
        // Login functionality
        function login() {
            const email = document.getElementById('email').value;
            const password = document.getElementById('password').value;
            
            if (email === '[email protected]' && password === '1244!@') {
                document.getElementById('login-screen').classList.add('hidden');
                document.getElementById('app-screen').classList.remove('hidden');
            } else {
                alert('Invalid credentials. Use email: [email protected] and password: 1244!@');
            }
        }
        
        // Forgot password flow
        function showForgotPassword() {
            document.getElementById('login-screen').classList.add('hidden');
            document.getElementById('forgot-password-screen').classList.remove('hidden');
        }
        
        function hideForgotPassword() {
            document.getElementById('forgot-password-screen').classList.add('hidden');
            document.getElementById('login-screen').classList.remove('hidden');
        }
        
        function sendResetLink() {
            alert('Password reset link sent to [email protected]');
            hideForgotPassword();
        }
        
        // Navigation functions
        function showDashboard() {
            hideAllContent();
            document.getElementById('dashboard-content').classList.remove('hidden');
        }
        
        function showOrders() {
            hideAllContent();
            document.getElementById('orders-content').classList.remove('hidden');
        }
        
        function showProducts() {
            hideAllContent();
            document.getElementById('products-content').classList.remove('hidden');
        }
        
        function showCustomers() {
            hideAllContent();
            document.getElementById('customers-content').classList.remove('hidden');
        }
        
        function showReports() {
            hideAllContent();
            document.getElementById('reports-content').classList.remove('hidden');
        }
        
        function showSettings() {
            hideAllContent();
            document.getElementById('settings-content').classList.remove('hidden');
        }
        
        function hideAllContent() {
            const contents = ['dashboard-content', 'orders-content', 'products-content', 'customers-content', 'reports-content', 'settings-content'];
            contents.forEach(id => {
                document.getElementById(id).classList.add('hidden');
            });
        }
        
        // Order functions
        function showCreateOrderModal() {
            document.getElementById('create-order-modal').classList.remove('hidden');
        }
        
        function hideCreateOrderModal() {
            document.getElementById('create-order-modal').classList.add('hidden');
        }
        
        function submitOrder() {
            hideCreateOrderModal();
            alert('Order created successfully!');
        }
        
        function viewOrder(orderId) {
            alert(`Viewing order ${orderId}`);
        }
        
        function deleteOrder(orderId) {
            showConfirmationDialog(
                `Are you sure you want to delete order ${orderId}?`,
                () => alert(`Order ${orderId} deleted`)
            );
        }
        
        // Notification functions
        function showNotifications() {
            document.getElementById('notifications-panel').classList.remove('hidden');
            document.getElementById('user-menu').classList.add('hidden');
        }
        
        function hideNotifications() {
            document.getElementById('notifications-panel').classList.add('hidden');
        }
        
        // User menu functions
        function showUserMenu() {
            document.getElementById('user-menu').classList.remove('hidden');
            document.getElementById('notifications-panel').classList.add('hidden');
        }
        
        function hideUserMenu() {
            document.getElementById('user-menu').classList.add('hidden');
        }
        
        // Logout function
        function logout() {
            document.getElementById('app-screen').classList.add('hidden');
            document.getElementById('login-screen').classList.remove('hidden');
            document.getElementById('user-menu').classList.add('hidden');
        }
        
        // Confirmation dialog functions
        function showConfirmationDialog(message, confirmCallback) {
            document.getElementById('confirmation-message').textContent = message;
            const confirmButton = document.getElementById('confirm-action-button');
            
            // Remove previous event listeners
            const newConfirmButton = confirmButton.cloneNode(true);
            confirmButton.parentNode.replaceChild(newConfirmButton, confirmButton);
            
            // Add new event listener
            newConfirmButton.addEventListener('click', function() {
                hideConfirmationDialog();
                confirmCallback();
            });
            
            document.getElementById('confirmation-dialog').classList.remove('hidden');
        }
        
        function hideConfirmationDialog() {
            document.getElementById('confirmation-dialog').classList.add('hidden');
        }
        
        // Close menus when clicking outside
        document.addEventListener('click', function(event) {
            const notificationsPanel = document.getElementById('notifications-panel');
            const userMenu = document.getElementById('user-menu');
            
            if (notificationsPanel && !notificationsPanel.contains(event.target) && 
                !event.target.closest('button[onclick="showNotifications()"]')) {
                notificationsPanel.classList.add('hidden');
            }
            
            if (userMenu && !userMenu.contains(event.target) && 
                !event.target.closest('div[onclick="showUserMenu()"]')) {
                userMenu.classList.add('hidden');
            }
        });
        
        // Initialize with dashboard shown
        document.addEventListener('DOMContentLoaded', function() {
            showDashboard();
        });
    </script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=anonymousatom/checkingui" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>