File size: 26,441 Bytes
44bea55
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Jay's Mobile Wash AI Business System</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">
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#003366',
                        secondary: '#CC0000',
                        accent: '#0080ff',
                        'light-bg': '#f0f6ff',
                        'dark-text': '#111827',
                        'light-text': '#ffffff',
                        success: '#10b981',
                        warning: '#f59e0b',
                        error: '#ef4444',
                    }
                }
            }
        }
    </script>
    <style>
        body, html {
            font-family: 'Segoe UI', Arial, sans-serif;
            background-color: #f0f6ff;
            color: #111827;
            height: 100%;
        }
        
        .stat-card {
            border-left: 4px solid #0080ff;
        }
        
        .running-pill {
            background-color: rgba(16, 185, 129, 0.1);
            color: #10b981;
        }
        
        .status-dot {
            background-color: #10b981;
        }
        
        .nav-button:hover:not(.active) {
            background-color: rgba(255, 255, 255, 0.1);
        }
        
        /* Custom switch toggle */
        .switch {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 30px;
        }
        
        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 30px;
        }
        
        .slider:before {
            position: absolute;
            content: "";
            height: 22px;
            width: 22px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        
        input:checked + .slider {
            background-color: #10b981;
        }
        
        input:checked + .slider:before {
            transform: translateX(30px);
        }
        
        .tab-content {
            display: none;
        }
        
        .tab-content.active {
            display: block;
        }
        
        .chat-bubble-received {
            border-radius: 1rem 1rem 1rem 0;
            background: #e5e7eb;
            color: #111827;
        }
        
        .chat-bubble-sent {
            border-radius: 1rem 1rem 0 1rem;
            background: #0080ff;
            color: #ffffff;
        }
        
        /* Responsive table */
        @media (max-width: 640px) {
            .responsive-table th {
                display: none;
            }
            
            .responsive-table tr {
                display: block;
                margin-bottom: 1rem;
                border: 1px solid #e5e7eb;
                border-radius: 0.5rem;
            }
            
            .responsive-table td {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 0.5rem 1rem;
                border-bottom: none;
            }
            
            .responsive-table td::before {
                content: attr(data-label);
                font-weight: bold;
                margin-right: 1rem;
                color: #003366;
            }
        }
    </style>
</head>
<body class="min-h-screen flex flex-col bg-light-bg">
    <!-- Header -->
    <header class="bg-white shadow-sm">
        <div class="mx-auto px-4 py-3">
            <div class="flex flex-col md:flex-row md:items-center md:justify-between gap-4">
                <div class="flex items-center space-x-4">
                    <img src="https://jaysmobilewash.com/wp-content/uploads/2023/06/cropped-JaysLogo.png" 
                         alt="Jay's Mobile Wash Logo" 
                         class="h-14 w-auto">
                    <h1 class="text-xl md:text-2xl font-bold text-primary">Jay's Mobile Wash AI Business System</h1>
                </div>
                <div class="flex items-center justify-end gap-4">
                    <div class="flex items-center bg-light-bg py-1 px-3 rounded-full">
                        <span class="status-dot inline-block rounded-full w-3 h-3 mr-2"></span>
                        <span class="font-semibold text-success">Running</span>
                    </div>
                    <label class="flex items-center cursor-pointer">
                        <div class="relative">
                            <input type="checkbox" class="sr-only" checked>
                            <div class="slider block w-16 h-8 rounded-full bg-gray-300"></div>
                            <div class="dot absolute left-1 top-1 bg-white w-6 h-6 rounded-full transition"></div>
                        </div>
                        <span class="ml-2 text-sm font-medium text-gray-700">System Status</span>
                    </label>
                </div>
            </div>
        </div>
    </header>

    <!-- User Info Bar -->
    <div class="bg-white shadow-sm rounded-lg mx-4 my-2">
        <div class="px-6 py-4">
            <div class="flex flex-col md:flex-row justify-between items-center">
                <div class="flex items-center">
                    <div class="bg-gray-200 border-2 border-dashed rounded-xl w-16 h-16"></div>
                    <div class="ml-4">
                        <h2 class="text-2xl font-bold text-dark-text">Jay's Mobile Wash AI Business System</h2>
                    </div>
                </div>
                <div class="mt-4 md:mt-0">
                    <div class="text-right">
                        <div class="flex items-center justify-end">
                            <div class="bg-gray-200 border-2 border-dashed rounded-xl w-10 h-10"></div>
                            <span class="ml-2 font-bold">jjmandog</span>
                        </div>
                        <p class="text-gray-600">2025-06-14 02:50:32 UTC</p>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Navigation -->
    <nav class="bg-primary rounded-lg mx-4 my-4">
        <div class="flex flex-wrap">
            <button class="nav-button active px-4 py-3 text-white font-medium text-sm md:text-base flex items-center">
                <i class="fas fa-chart-bar mr-2"></i> Dashboard
            </button>
            <button class="nav-button px-4 py-3 text-white font-medium text-sm md:text-base flex items-center">
                <i class="fas fa-phone-alt mr-2"></i> Call Management
            </button>
            <button class="nav-button px-4 py-3 text-white font-medium text-sm md:text-base flex items-center">
                <i class="fas fa-sms mr-2"></i> SMS Management
            </button>
            <button class="nav-button px-4 py-3 text-white font-medium text-sm md:text-base flex items-center">
                <i class="fas fa-calendar-alt mr-2"></i> Booking Management
            </button>
            <button class="nav-button px-4 py-3 text-white font-medium text-sm md:text-base flex items-center">
                <i class="fas fa-brain mr-2"></i> AI Training Center
            </button>
            <button class="nav-button px-4 py-3 text-white font-medium text-sm md:text-base flex items-center">
                <i class="fas fa-cog mr-2"></i> Settings
            </button>
        </div>
    </nav>

    <!-- Main Content -->
    <main class="flex-1 mx-4 mb-8">
        <!-- Dashboard Tab -->
        <div id="dashboard-tab" class="tab-content active">
            <!-- Business Overview -->
            <div class="mb-8">
                <h2 class="text-2xl font-bold text-dark-text mb-4">Business Overview</h2>
                <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
                    <!-- Stats Cards -->
                    <div class="stat-card bg-white p-5 rounded-lg shadow">
                        <h3 class="text-lg font-semibold text-gray-600 flex items-center">
                            <i class="fas fa-phone-alt text-accent mr-2"></i> Total Calls
                        </h3>
                        <p class="text-3xl font-bold mt-1">127</p>
                        <p class="text-sm text-gray-600 mt-2">
                            Jay Answered: 85 | AI Handled: 34
                        </p>
                    </div>
                    
                    <div class="stat-card bg-white p-5 rounded-lg shadow">
                        <h3 class="text-lg font-semibold text-gray-600 flex items-center">
                            <i class="fas fa-sms text-accent mr-2"></i> SMS Interactions
                        </h3>
                        <p class="text-3xl font-bold mt-1">312</p>
                        <p class="text-sm text-gray-600 mt-2">
                            AI Response Rate: 90%
                        </p>
                    </div>
                    
                    <div class="stat-card bg-white p-5 rounded-lg shadow">
                        <h3 class="text-lg font-semibold text-gray-600 flex items-center">
                            <i class="fas fa-dollar-sign text-accent mr-2"></i> Monthly Revenue
                        </h3>
                        <p class="text-3xl font-bold mt-1">$12,480</p>
                        <p class="text-sm text-gray-600 mt-2">
                            Confirmed Bookings: 96
                        </p>
                    </div>
                </div>
            </div>
            
            <!-- System Status -->
            <div class="mb-8">
                <h2 class="text-2xl font-bold text-dark-text mb-4">System Status</h2>
                <div class="bg-white rounded-lg shadow p-6">
                    <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
                        <div>
                            <p class="text-gray-600"><strong>Twilio:</strong> <span class="text-success font-semibold">Connected</span></p>
                        </div>
                        <div>
                            <p class="text-gray-600"><strong>Database:</strong> <span class="text-success font-semibold">Online</span></p>
                        </div>
                        <div>
                            <p class="text-gray-600"><strong>AI Models:</strong> <span class="text-success font-semibold">Operational</span></p>
                        </div>
                        <div>
                            <p class="text-gray-600"><strong>Last Update:</strong> 2025-06-14 02:50:32</p>
                        </div>
                        <div>
                            <p class="text-gray-600"><strong>Server Load:</strong> 23%</p>
                        </div>
                        <div>
                            <p class="text-gray-600"><strong>Storage:</strong> 1.2 GB / 5 GB</p>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- Recent Activity -->
            <div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
                <!-- Recent Calls -->
                <div>
                    <h2 class="text-2xl font-bold text-dark-text mb-4">Recent Call Activity</h2>
                    <div class="bg-white rounded-lg shadow overflow-hidden">
                        <div class="overflow-x-auto">
                            <table class="min-w-full responsive-table">
                                <thead class="bg-primary text-light-text">
                                    <tr>
                                        <th class="py-3 px-4 text-left">Timestamp</th>
                                        <th class="py-3 px-4 text-left">Caller</th>
                                        <th class="py-3 px-4 text-left">Duration</th>
                                        <th class="py-3 px-4 text-left">Status</th>
                                        <th class="py-3 px-4 text-left">Notes</th>
                                    </tr>
                                </thead>
                                <tbody class="divide-y divide-gray-200">
                                    <tr>
                                        <td class="py-3 px-4" data-label="Timestamp">2025-06-13 21:34:12</td>
                                        <td class="py-3 px-4" data-label="Caller">+15622289429</td>
                                        <td class="py-3 px-4" data-label="Duration">3m 24s</td>
                                        <td class="py-3 px-4" data-label="Status">Jay Answered</td>
                                        <td class="py-3 px-4" data-label="Notes">Booking confirmed</td>
                                    </tr>
                                    <tr>
                                        <td class="py-3 px-4" data-label="Timestamp">2025-06-13 20:15:35</td>
                                        <td class="py-3 px-4" data-label="Caller">+13108675309</td>
                                        <td class="py-3 px-4" data-label="Duration">2m 10s</td>
                                        <td class="py-3 px-4" data-label="Status">AI Handled</td>
                                        <td class="py-3 px-4" data-label="Notes">Pricing inquiry</td>
                                    </tr>
                                    <tr>
                                        <td class="py-3 px-4" data-label="Timestamp">2025-06-13 19:42:03</td>
                                        <td class="py-3 px-4" data-label="Caller">+15625551234</td>
                                        <td class="py-3 px-4" data-label="Duration">4m 02s</td>
                                        <td class="py-3 px-4" data-label="Status">Jay Answered</td>
                                        <td class="py-3 px-4" data-label="Notes">Scheduled luxury wash</td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                
                <!-- Upcoming Bookings -->
                <div>
                    <h2 class="text-2xl font-bold text-dark-text mb-4">Upcoming Bookings</h2>
                    <div class="bg-white rounded-lg shadow overflow-hidden">
                        <div class="overflow-x-auto">
                            <table class="min-w-full responsive-table">
                                <thead class="bg-primary text-light-text">
                                    <tr>
                                        <th class="py-3 px-4 text-left">Ref</th>
                                        <th class="py-3 px-4 text-left">Customer</th>
                                        <th class="py-3 px-4 text-left">Service</th>
                                        <th class="py-3 px-4 text-left">Date</th>
                                        <th class="py-3 px-4 text-left">Time</th>
                                        <th class="py-3 px-4 text-left">Price</th>
                                        <th class="py-3 px-4 text-left">Status</th>
                                    </tr>
                                </thead>
                                <tbody class="divide-y divide-gray-200">
                                    <tr>
                                        <td class="py-3 px-4" data-label="Ref">JMW2365</td>
                                        <td class="py-3 px-4" data-label="Customer">John D.</td>
                                        <td class="py-3 px-4" data-label="Service">Luxury Wash</td>
                                        <td class="py-3 px-4" data-label="Date">2025-06-15</td>
                                        <td class="py-3 px-4" data-label="Time">10:00 AM</td>
                                        <td class="py-3 px-4" data-label="Price">$130</td>
                                        <td class="py-3 px-4" data-label="Status"><span class="px-2 py-1 bg-green-100 text-green-800 rounded-full text-xs">Confirmed</span></td>
                                    </tr>
                                    <tr>
                                        <td class="py-3 px-4" data-label="Ref">JMW2366</td>
                                        <td class="py-3 px-4" data-label="Customer">Sarah M.</td>
                                        <td class="py-3 px-4" data-label="Service">Basic Wash</td>
                                        <td class="py-3 px-4" data-label="Date">2025-06-14</td>
                                        <td class="py-3 px-4" data-label="Time">2:30 PM</td>
                                        <td class="py-3 px-4" data-label="Price">$60</td>
                                        <td class="py-3 px-4" data-label="Status"><span class="px-2 py-1 bg-yellow-100 text-yellow-800 rounded-full text-xs">Pending</span></td>
                                    </tr>
                                    <tr>
                                        <td class="py-3 px-4" data-label="Ref">JMW2367</td>
                                        <td class="py-3 px-4" data-label="Customer">Robert K.</td>
                                        <td class="py-3 px-4" data-label="Service">Max Detail</td>
                                        <td class="py-3 px-4" data-label="Date">2025-06-16</td>
                                        <td class="py-3 px-4" data-label="Time">9:00 AM</td>
                                        <td class="py-3 px-4" data-label="Price">$210</td>
                                        <td class="py-3 px-4" data-label="Status"><span class="px-2 py-1 bg-green-100 text-green-800 rounded-full text-xs">Confirmed</span></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- Refresh Button -->
            <div class="mt-6 flex justify-center">
                <button class="bg-accent hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-lg transition duration-300 flex items-center">
                    <i class="fas fa-sync-alt mr-2"></i> Refresh Dashboard
                </button>
            </div>
        </div>

        <!-- Other Tabs (Placeholder Content) -->
        <div id="call-management-tab" class="tab-content hidden">
            <div class="bg-white rounded-lg shadow p-6">
                <h2 class="text-2xl font-bold text-dark-text mb-6">Call Management</h2>
                <p class="text-gray-600">This section would contain:</p>
                <ul class="list-disc pl-6 text-gray-600 mt-3">
                    <li>Active call monitoring</li>
                    <li>Call history records</li>
                    <li>Call routing settings</li>
                    <li>Call simulation tools</li>
                </ul>
            </div>
        </div>
        
        <div id="sms-management-tab" class="tab-content hidden">
            <div class="bg-white rounded-lg shadow p-6">
                <h2 class="text-2xl font-bold text-dark-text mb-6">SMS Management</h2>
                <p class="text-gray-600">This section would contain:</p>
                <ul class="list-disc pl-6 text-gray-600 mt-3">
                    <li>SMS conversation interface</li>
                    <li>Contact management</li>
                    <li>SMS templates</li>
                    <li>Automation settings</li>
                </ul>
            </div>
        </div>
        
        <div id="booking-management-tab" class="tab-content hidden">
            <div class="bg-white rounded-lg shadow p-6">
                <h2 class="text-2xl font-bold text-dark-text mb-6">Booking Management</h2>
                <p class="text-gray-600">This section would contain:</p>
                <ul class="list-disc pl-6 text-gray-600 mt-3">
                    <li>Calendar view of appointments</li>
                    <li>Booking creation form</li>
                    <li>Manage existing bookings</li>
                    <li>Service pricing configuration</li>
                </ul>
            </div>
        </div>
        
        <div id="ai-training-tab" class="tab-content hidden">
            <div class="bg-white rounded-lg shadow p-6">
                <h2 class="text-2xl font-bold text-dark-text mb-6">AI Training Center</h2>
                <p class="text-gray-600">This section would contain:</p>
                <ul class="list-disc pl-6 text-gray-600 mt-3">
                    <li>SMS training interface</li>
                    <li>Voice response training</li>
                    <li>Call simulation scenarios</li>
                    <li>Response feedback system</li>
                </ul>
            </div>
        </div>
        
        <div id="settings-tab" class="tab-content hidden">
            <div class="bg-white rounded-lg shadow p-6">
                <h2 class="text-2xl font-bold text-dark-text mb-6">System Settings</h2>
                <p class="text-gray-600">This section would contain:</p>
                <ul class="list-disc pl-6 text-gray-600 mt-3">
                    <li>Business profile settings</li>
                    <li>API key management</li>
                    <li>Service pricing configuration</li>
                    <li>User management</li>
                    <li>System preferences</li>
                </ul>
            </div>
        </div>
    </main>

    <!-- Footer -->
    <footer class="bg-white mt-auto border-t border-gray-200">
        <div class="mx-auto px-4 py-4 text-center text-gray-600 text-sm">
            <p>Jay's Mobile Wash AI Business System | Current Version: 1.0.0 | Last Updated: 2025-06-14</p>
            <p>© 2025 Jay's Mobile Wash</p>
            <p class="mt-2">Current Date and Time (UTC): 2025-06-14 02:50:32 | User: jjmandog</p>
        </div>
    </footer>

    <script>
        // Tab Navigation
        const navButtons = document.querySelectorAll('.nav-button');
        const tabContents = document.querySelectorAll('.tab-content');
        
        // Tab mapping
        const tabMap = {
            0: 'dashboard-tab',
            1: 'call-management-tab',
            2: 'sms-management-tab',
            3: 'booking-management-tab',
            4: 'ai-training-tab',
            5: 'settings-tab'
        };
        
        navButtons.forEach((button, index) => {
            button.addEventListener('click', () => {
                // Remove active class from all buttons and tabs
                navButtons.forEach(btn => btn.classList.remove('active'));
                tabContents.forEach(tab => tab.classList.add('hidden'));
                
                // Add active class to current button
                button.classList.add('active');
                
                // Show the corresponding tab
                const tabId = tabMap[index];
                document.getElementById(tabId).classList.remove('hidden');
                document.getElementById(tabId).classList.add('active');
            });
        });
        
        // Toggle Switch
        const toggleSwitch = document.querySelector('input[type="checkbox"]');
        toggleSwitch.addEventListener('change', function() {
            const statusText = document.querySelector('.running-pill');
            const statusDot = document.querySelector('.status-dot');
            
            if (this.checked) {
                statusText.textContent = 'Running';
                statusText.classList.add('text-success');
                statusText.classList.remove('text-error');
                statusDot.classList.add('bg-success');
                statusDot.classList.remove('bg-error');
            } else {
                statusText.textContent = 'Offline';
                statusText.classList.add('text-error');
                statusText.classList.remove('text-success');
                statusDot.classList.add('bg-error');
                statusDot.classList.remove('bg-success');
            }
        });
        
        // Responsive table labels for mobile
        window.addEventListener('resize', setupResponsiveTables);
        
        function setupResponsiveTables() {
            const tables = document.querySelectorAll('.responsive-table');
            tables.forEach(table => {
                if (window.innerWidth < 640) {
                    // Add data-label attributes to each cell
                    const headers = Array.from(table.querySelectorAll('th')).map(th => th.textContent);
                    const rows = table.querySelectorAll('tbody tr');
                    
                    rows.forEach(row => {
                        const cells = row.querySelectorAll('td');
                        cells.forEach((cell, index) => {
                            cell.setAttribute('data-label', headers[index]);
                        });
                    });
                }
            });
        }
        
        // Initialize on load
        setupResponsiveTables();
    </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://deepsite.hf.co/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://deepsite.hf.co" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://deepsite.hf.co?remix=jjmandog/vcdxxx" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>