File size: 64,126 Bytes
466292b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8ae810a
 
 
 
 
 
 
 
 
 
 
466292b
 
8ae810a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
466292b
 
 
 
 
8ae810a
466292b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8ae810a
 
466292b
8ae810a
466292b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8ae810a
 
 
f630c72
466292b
 
 
 
 
f630c72
 
 
 
466292b
 
8ae810a
466292b
 
8ae810a
466292b
 
8ae810a
466292b
 
8ae810a
466292b
 
f630c72
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
466292b
 
 
f630c72
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
466292b
 
f630c72
 
466292b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8ae810a
 
 
466292b
8ae810a
466292b
 
 
8ae810a
466292b
 
 
 
 
 
 
8ae810a
 
 
466292b
8ae810a
466292b
 
 
8ae810a
466292b
 
 
 
 
 
 
8ae810a
 
 
466292b
8ae810a
466292b
 
 
8ae810a
466292b
 
 
 
 
 
 
8ae810a
 
 
466292b
8ae810a
466292b
 
 
8ae810a
466292b
 
 
 
 
 
8ae810a
466292b
 
8ae810a
466292b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8ae810a
466292b
 
8ae810a
466292b
 
8ae810a
466292b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8ae810a
 
466292b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8ae810a
 
 
 
466292b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8ae810a
 
 
 
466292b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8ae810a
466292b
 
8ae810a
466292b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8ae810a
 
 
466292b
 
 
 
 
 
 
 
8ae810a
 
 
466292b
 
 
 
 
 
 
 
8ae810a
466292b
8ae810a
466292b
 
 
 
 
 
 
 
8ae810a
 
 
466292b
 
 
 
 
 
 
 
 
8ae810a
466292b
 
8ae810a
466292b
 
8ae810a
466292b
 
8ae810a
466292b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8ae810a
 
466292b
 
8ae810a
 
466292b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8ae810a
 
466292b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8ae810a
 
466292b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8ae810a
 
 
466292b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f630c72
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
466292b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f630c72
466292b
 
 
 
 
 
 
 
 
 
 
 
 
c518c8b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MetaTrader Master Hub</title>
    <link rel="icon" type="image/x-icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>πŸ“ˆ</text></svg>">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/animejs/lib/anime.iife.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <script>
        tailwind.config = {
            darkMode: 'class',
            theme: {
                extend: {
                    colors: {
                        primary: {
                            50: '#f0fdf4',
                            100: '#dcfce7',
                            200: '#bbf7d0',
                            300: '#86efac',
                            400: '#4ade80',
                            500: '#22c55e',
                            600: '#16a34a',
                            700: '#15803d',
                            800: '#166534',
                            900: '#14532d',
                            950: '#052e16'
                        },
                        secondary: {
                            50: '#f8fafc',
                            100: '#f1f5f9',
                            200: '#e2e8f0',
                            300: '#cbd5e1',
                            400: '#94a3b8',
                            500: '#64748b',
                            600: '#475569',
                            700: '#334155',
                            800: '#1e293b',
                            900: '#0f172a',
                            950: '#020617'
                        },
                        accent: {
                            50: '#fefce8',
                            100: '#fef9c3',
                            200: '#fef08a',
                            300: '#fde047',
                            400: '#facc15',
                            500: '#eab308',
                            600: '#ca8a04',
                            700: '#a16207',
                            800: '#854d0e',
                            900: '#713f12',
                            950: '#422006'
                        }
                    }
                }
            }
        }
</script>
    <style>
        .glass {
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
        }
        .gradient-border {
            position: relative;
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(113, 113, 122, 0.1));
            border: 1px solid transparent;
            background-clip: padding-box;
        }
        .gradient-border::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            z-index: -1;
            margin: -1px;
            border-radius: inherit;
            background: linear-gradient(135deg, #3b82f6, #71717a);
        }
        .pulse-glow {
            animation: pulse-glow 2s ease-in-out infinite alternate;
        }
        @keyframes pulse-glow {
            from { box-shadow: 0 0 10px rgba(34, 197, 94, 0.3); }
            to { box-shadow: 0 0 20px rgba(34, 197, 94, 0.6); }
        }
.slide-in {
            animation: slideIn 0.3s ease-out;
        }
        @keyframes slideIn {
            from { transform: translateX(-100%); opacity: 0; }
            to { transform: translateX(0); opacity: 1; }
        }
        .fade-in {
            animation: fadeIn 0.5s ease-out;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
    </style>
</head>
    <body class="bg-secondary-900 text-secondary-100 min-h-screen overflow-x-hidden">
<!-- Navigation -->
    <nav class="fixed top-0 w-full bg-secondary-800/90 glass border-b border-secondary-700 z-50">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="flex items-center justify-between h-16">
                <div class="flex items-center space-x-4">
                    <div class="flex-shrink-0">
                        <h1 class="text-xl font-bold text-primary-400">MT5 Master Hub</h1>
                    </div>
                    <!-- Desktop Navigation -->
                    <div class="hidden md:block">
                        <div class="ml-10 flex items-baseline space-x-4">
                            <a href="#" onclick="showPage('dashboard')" class="nav-link px-3 py-2 rounded-md text-sm font-medium bg-primary-500 text-white" data-page="dashboard">
                                <i data-feather="home" class="inline w-4 h-4 mr-2"></i>Dashboard
                            </a>
                            <a href="#" onclick="showPage('position-calculator')" class="nav-link px-3 py-2 rounded-md text-sm font-medium text-secondary-200 hover:bg-secondary-700" data-page="position-calculator">
                                <i data-feather="calculator" class="inline w-4 h-4 mr-2"></i>Position Calculator
                            </a>
                            <a href="#" onclick="showPage('trade-planner')" class="nav-link px-3 py-2 rounded-md text-sm font-medium text-secondary-200 hover:bg-secondary-700" data-page="trade-planner">
                                <i data-feather="map" class="inline w-4 h-4 mr-2"></i>Trade Planner
                            </a>
                            <a href="#" onclick="showPage('protection-tools')" class="nav-link px-3 py-2 rounded-md text-sm font-medium text-secondary-200 hover:bg-secondary-700" data-page="protection-tools">
                                <i data-feather="shield" class="inline w-4 h-4 mr-2"></i>Protection Tools
                            </a>
                            <a href="#" onclick="showPage('ea-monitor')" class="nav-link px-3 py-2 rounded-md text-sm font-medium text-secondary-200 hover:bg-secondary-700" data-page="ea-monitor">
                                <i data-feather="cpu" class="inline w-4 h-4 mr-2"></i>EA Monitor
                            </a>
                        </div>
                    </div>
                    <!-- Right side icons -->
                    <div class="flex items-center space-x-4">
                        <button class="p-2 rounded-md text-secondary-200 hover:text-white hover:bg-secondary-700">
                            <i data-feather="bell" class="w-5 h-5"></i>
                        </button>
                        <button class="p-2 rounded-md text-secondary-200 hover:text-white hover:bg-secondary-700">
                            <i data-feather="settings" class="w-5 h-5"></i>
                        </button>
                        <!-- Mobile menu button -->
                        <div class="md:hidden">
                            <button id="mobile-menu-button" class="p-2 rounded-md text-secondary-200 hover:text-white hover:bg-secondary-700">
                            <i data-feather="menu" class="w-5 h-5"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            <!-- Mobile menu (hidden by default) -->
            <div id="mobile-menu" class="md:hidden hidden">
                <div class="px-2 pt-2 pb-3 space-y-1 sm:px-3">
                    <a href="#" onclick="showPage('dashboard'); closeMobileMenu();" class="nav-link block px-3 py-2 rounded-md text-base font-medium text-secondary-200 hover:bg-secondary-700" data-page="dashboard">
                        <i data-feather="home" class="inline w-4 h-4 mr-2"></i>Dashboard
                    </a>
                    <a href="#" onclick="showPage('position-calculator'); closeMobileMenu();" class="nav-link block px-3 py-2 rounded-md text-base font-medium text-secondary-200 hover:bg-secondary-700" data-page="position-calculator">
                        <i data-feather="calculator" class="inline w-4 h-4 mr-2"></i>Position Calculator
                    </a>
                    <a href="#" onclick="showPage('trade-planner'); closeMobileMenu();" class="nav-link block px-3 py-2 rounded-md text-base font-medium text-secondary-200 hover:bg-secondary-700" data-page="trade-planner">
                        <i data-feather="map" class="inline w-4 h-4 mr-2"></i>Trade Planner
                    </a>
                    <a href="#" onclick="showPage('protection-tools'); closeMobileMenu();" class="nav-link block px-3 py-2 rounded-md text-base font-medium text-secondary-200 hover:bg-secondary-700" data-page="protection-tools">
                        <i data-feather="shield" class="inline w-4 h-4 mr-2"></i>Protection Tools
                    </a>
                    <a href="#" onclick="showPage('ea-monitor'); closeMobileMenu();" class="nav-link block px-3 py-2 rounded-md text-base font-medium text-secondary-200 hover:bg-secondary-700" data-page="ea-monitor">
                        <i data-feather="cpu" class="inline w-4 h-4 mr-2"></i>EA Monitor
                    </a>
                </div>
            </div>
        </div>
    </nav>
<!-- Main Content -->
    <main class="pt-16 pb-8">
        <!-- Dashboard Page -->
        <div id="dashboard-page" class="page-container fade-in">
            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
                <div class="mb-8">
                    <h2 class="text-3xl font-bold text-white mb-2">Trading Dashboard</h2>
                    <p class="text-secondary-400">Monitor your trades and account performance in real-time</p>
                </div>

                <!-- Account Overview Cards -->
                <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
                    <div class="gradient-border rounded-lg p-6 glass pulse-glow">
                        <div class="flex items-center justify-between">
                            <div>
                                <p class="text-secondary-400 text-sm">Balance</p>
                                <p class="text-2xl font-bold text-white">$25,432.50</p>
                            </div>
                    <div class="bg-primary-500/20 p-3 rounded-lg">
                        <i data-feather="dollar-sign" class="w-6 h-6 text-primary-300"></i>
</div>
                        </div>
                        <div class="mt-4 flex items-center text-primary-400">
                            <i data-feather="trending-up" class="w-4 h-4 mr-1"></i>
                            <span class="text-sm">+12.5%</span>
                        </div>
</div>

                    <div class="gradient-border rounded-lg p-6 glass">
                        <div class="flex items-center justify-between">
                            <div>
                                <p class="text-secondary-400 text-sm">Equity</p>
                                <p class="text-2xl font-bold text-white">$26,891.20</p>
                            </div>
                        <div class="bg-primary-500/20 p-3 rounded-lg">
                                <i data-feather="activity" class="w-6 h-6 text-primary-300"></i>
</div>
                        </div>
                        <div class="mt-4 flex items-center text-primary-400">
                            <i data-feather="trending-up" class="w-4 h-4 mr-1"></i>
                            <span class="text-sm">+5.7%</span>
                        </div>
</div>

                    <div class="gradient-border rounded-lg p-6 glass">
                        <div class="flex items-center justify-between">
                            <div>
                                <p class="text-secondary-400 text-sm">Open Trades</p>
                                <p class="text-2xl font-bold text-white">7</p>
                            </div>
                        <div class="bg-accent-500/20 p-3 rounded-lg">
                                <i data-feather="bar-chart-2" class="w-6 h-6 text-accent-400"></i>
</div>
                        </div>
                        <div class="mt-4 flex items-center text-accent-400">
                            <i data-feather="info" class="w-4 h-4 mr-1"></i>
                            <span class="text-sm">3 Buy, 4 Sell</span>
                        </div>
</div>

                    <div class="gradient-border rounded-lg p-6 glass">
                        <div class="flex items-center justify-between">
                            <div>
                                <p class="text-secondary-400 text-sm">Today's P&L</p>
                                <p class="text-2xl font-bold text-green-400">+$1,458.70</p>
                            </div>
                        <div class="bg-primary-500/20 p-3 rounded-lg">
                                <i data-feather="award" class="w-6 h-6 text-primary-300"></i>
</div>
                        </div>
                        <div class="mt-4 flex items-center text-primary-400">
                            <i data-feather="trending-up" class="w-4 h-4 mr-1"></i>
                            <span class="text-sm">Win Rate: 68%</span>
                        </div>
</div>
                </div>

                <!-- Active Trades Table -->
                <div class="gradient-border rounded-lg p-6 glass mb-8">
                    <div class="flex items-center justify-between mb-4">
                        <h3 class="text-xl font-semibold text-white">Active Trades</h3>
                        <button class="px-4 py-2 bg-primary-500 text-white rounded-lg hover:bg-primary-600 transition-colors">
                            <i data-feather="plus" class="inline w-4 h-4 mr-2"></i>New Trade
                        </button>
</div>
                    <div class="overflow-x-auto">
                        <table class="min-w-full divide-y divide-secondary-800">
                            <thead>
                                <tr>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-secondary-400 uppercase tracking-wider">Symbol</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-secondary-400 uppercase tracking-wider">Type</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-secondary-400 uppercase tracking-wider">Volume</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-secondary-400 uppercase tracking-wider">Open Price</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-secondary-400 uppercase tracking-wider">Current Price</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-secondary-400 uppercase tracking-wider">SL</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-secondary-400 uppercase tracking-wider">TP</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-secondary-400 uppercase tracking-wider">P&L</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-secondary-400 uppercase tracking-wider">Actions</th>
                                </tr>
                            </thead>
                            <tbody class="divide-y divide-secondary-800">
                                <tr class="hover:bg-secondary-800/50">
                                    <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-white">EURUSD</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm">
                                        <span class="px-2 py-1 text-xs bg-green-600/20 text-green-400 rounded">BUY</span>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-secondary-300">1.50</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-secondary-300">1.0856</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-white">1.0872</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-secondary-300">1.0830</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-secondary-300">1.0900</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-green-400">+$240.00</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm">
                                        <button class="text-primary-400 hover:text-primary-300 mr-2">
                                            <i data-feather="edit-2" class="w-4 h-4"></i>
                                        </button>
                                        <button class="text-red-400 hover:text-red-300">
                                            <i data-feather="x" class="w-4 h-4"></i>
                                        </button>
                                    </td>
                                </tr>
                                <tr class="hover:bg-secondary-800/50">
                                    <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-white">GBPUSD</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm">
                                        <span class="px-2 py-1 text-xs bg-red-600/20 text-red-400 rounded">SELL</span>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-secondary-300">0.75</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-secondary-300">1.2745</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-white">1.2738</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-secondary-300">1.2760</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-secondary-300">1.2700</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-green-400">+$52.50</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm">
                                        <button class="text-primary-400 hover:text-primary-300 mr-2">
                                            <i data-feather="edit-2" class="w-4 h-4"></i>
                                        </button>
                                        <button class="text-red-400 hover:text-red-300">
                                            <i data-feather="x" class="w-4 h-4"></i>
                                        </button>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>

                <!-- Performance Chart -->
                <div class="gradient-border rounded-lg p-6 glass">
                    <h3 class="text-xl font-semibold text-white mb-4">Performance Chart</h3>
                    <div class="h-64">
                        <canvas id="performanceChart"></canvas>
                    </div>
                </div>
            </div>
        </div>

        <!-- Position Calculator Page -->
        <div id="position-calculator-page" class="page-container hidden">
            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
                <div class="mb-8">
                    <h2 class="text-3xl font-bold text-white mb-2">Position Size Calculator</h2>
                    <p class="text-secondary-400">Calculate optimal position size based on your risk parameters</p>
                </div>

                <div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
                    <!-- Calculator Input -->
                    <div class="gradient-border rounded-lg p-6 glass">
                        <h3 class="text-lg font-semibold text-white mb-4">Risk Parameters</h3>
                        <form class="space-y-4">
                            <div>
                                <label class="block text-sm font-medium text-secondary-300 mb-2">Account Balance</label>
                                <input type="number" class="w-full px-4 py-2 bg-secondary-800 border border-secondary-700 rounded-lg text-white focus:ring-2 focus:ring-primary-500 focus:border-transparent" value="25432.50">
                            </div>
                            <div>
                                <label class="block text-sm font-medium text-secondary-300 mb-2">Risk Percentage (%)</label>
                                <input type="number" class="w-full px-4 py-2 bg-secondary-800 border border-secondary-700 rounded-lg text-white focus:ring-2 focus:ring-primary-500 focus:border-transparent" value="2" step="0.1">
                            </div>
                            <div>
                                <label class="block text-sm font-medium text-secondary-300 mb-2">Stop Loss (pips)</label>
                                <input type="number" class="w-full px-4 py-2 bg-secondary-800 border border-secondary-700 rounded-lg text-white focus:ring-2 focus:ring-primary-500 focus:border-transparent" value="50">
                            </div>
                            <div>
                                <label class="block text-sm font-medium text-secondary-300 mb-2">Currency Pair</label>
                                <select class="w-full px-4 py-2 bg-secondary-800 border border-secondary-700 rounded-lg text-white focus:ring-2 focus:ring-primary-500 focus:border-transparent">
                                    <option>EURUSD</option>
                                    <option>GBPUSD</option>
                                    <option>USDJPY</option>
                                    <option>AUDUSD</option>
                                    <option>USDCHF</option>
                                </select>
                            </div>
                            <button type="button" class="w-full px-4 py-2 bg-primary-600 text-white rounded-lg hover:bg-primary-700 transition-colors">
                                <i data-feather="calculator" class="inline w-4 h-4 mr-2"></i>Calculate Position Size
                            </button>
                        </form>
                    </div>

                    <!-- Calculator Results -->
                    <div class="gradient-border rounded-lg p-6 glass">
                        <h3 class="text-lg font-semibold text-white mb-4">Calculation Results</h3>
                        <div class="space-y-4">
                            <div class="bg-secondary-800/50 rounded-lg p-4">
                                <div class="flex justify-between items-center">
                                    <span class="text-secondary-400">Position Size</span>
                                    <span class="text-xl font-bold text-white">1.25 lots</span>
                                </div>
                            </div>
                            <div class="bg-secondary-800/50 rounded-lg p-4">
                                <div class="flex justify-between items-center">
                                    <span class="text-secondary-400">Risk Amount</span>
                                    <span class="text-xl font-bold text-white">$508.65</span>
                                </div>
                            </div>
                            <div class="bg-secondary-800/50 rounded-lg p-4">
                                <div class="flex justify-between items-center">
                                    <span class="text-secondary-400">Pip Value</span>
                                    <span class="text-xl font-bold text-white">$10.00</span>
                                </div>
                            </div>
                            <div class="bg-secondary-800/50 rounded-lg p-4">
                                <div class="flex justify-between items-center">
                                    <span class="text-secondary-400">Potential Loss</span>
                                    <span class="text-xl font-bold text-red-400">-$508.65</span>
                                </div>
                            </div>
                            <div class="bg-secondary-800/50 rounded-lg p-4">
                                <div class="flex justify-between items-center">
                                    <span class="text-secondary-400">Risk/Reward Ratio</span>
                                    <span class="text-xl font-bold text-white">1:2</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- Trade Planner Page -->
        <div id="trade-planner-page" class="page-container hidden">
            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
                <div class="mb-8">
                    <h2 class="text-3xl font-bold text-white mb-2">Trade Planner</h2>
                    <p class="text-secondary-400">Plan your trades directly on the chart with visual tools</p>
                </div>

                <div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
                    <!-- Chart Area -->
                    <div class="lg:col-span-2">
                        <div class="gradient-border rounded-lg p-6 glass h-96">
                            <div class="flex items-center justify-between mb-4">
                                <h3 class="text-lg font-semibold text-white">EURUSD - H1</h3>
                                <div class="flex space-x-2">
                                <button class="px-3 py-1 bg-primary-500 text-white rounded text-sm hover:bg-primary-600">
                                        <i data-feather="trending-up" class="inline w-4 h-4 mr-1"></i>Buy
                                    </button>
                                    <button class="px-3 py-1 bg-accent-500 text-white rounded text-sm hover:bg-accent-600">
                                        <i data-feather="trending-down" class="inline w-4 h-4 mr-1"></i>Sell
                                    </button>
</div>
                            </div>
                            <div class="bg-secondary-900/50 rounded-lg h-64 flex items-center justify-center">
                                <p class="text-secondary-400">Chart visualization area</p>
                            </div>
                            <div class="mt-4 grid grid-cols-3 gap-4">
                                <div class="bg-secondary-800/50 rounded-lg p-3">
                                    <p class="text-xs text-secondary-400">Entry</p>
                                    <p class="text-sm font-semibold text-white">1.0875</p>
                                </div>
                                <div class="bg-secondary-800/50 rounded-lg p-3">
                                    <p class="text-xs text-secondary-400">Stop Loss</p>
                                    <p class="text-sm font-semibold text-red-400">1.0850</p>
                                </div>
                                <div class="bg-secondary-800/50 rounded-lg p-3">
                                    <p class="text-xs text-secondary-400">Take Profit</p>
                                    <p class="text-sm font-semibold text-green-400">1.0925</p>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- Planning Tools -->
                    <div class="space-y-6">
                        <div class="gradient-border rounded-lg p-6 glass">
                            <h3 class="text-lg font-semibold text-white mb-4">Trade Setup</h3>
                            <div class="space-y-3">
                                <div>
                                    <label class="block text-sm font-medium text-secondary-300 mb-1">Entry Price</label>
                                    <input type="number" class="w-full px-3 py-2 bg-secondary-800 border border-secondary-700 rounded text-white text-sm" value="1.0875" step="0.0001">
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-secondary-300 mb-1">Stop Loss</label>
                                    <input type="number" class="w-full px-3 py-2 bg-secondary-800 border border-secondary-700 rounded text-white text-sm" value="1.0850" step="0.0001">
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-secondary-300 mb-1">Take Profit</label>
                                    <input type="number" class="w-full px-3 py-2 bg-secondary-800 border border-secondary-700 rounded text-white text-sm" value="1.0925" step="0.0001">
                                </div>
                                <div>
                                    <label class="block text-sm font-medium text-secondary-300 mb-1">Risk/Reward</label>
                                    <div class="text-lg font-semibold text-white">1:2</div>
                                </div>
                            </div>
                        </div>

                        <div class="gradient-border rounded-lg p-6 glass">
                            <h3 class="text-lg font-semibold text-white mb-4">Quick Actions</h3>
                            <div class="space-y-2">
                                <button class="w-full px-3 py-2 bg-secondary-800 text-secondary-300 rounded text-sm hover:bg-secondary-700">
                                    <i data-feather="plus" class="inline w-4 h-4 mr-2"></i>Add Trend Line
                                </button>
                                <button class="w-full px-3 py-2 bg-secondary-800 text-secondary-300 rounded text-sm hover:bg-secondary-700">
                                    <i data-feather="minus" class="inline w-4 h-4 mr-2"></i>Add Support/Resistance
                                </button>
                                <button class="w-full px-3 py-2 bg-secondary-800 text-secondary-300 rounded text-sm hover:bg-secondary-700">
                                    <i data-feather="triangle" class="inline w-4 h-4 mr-2"></i>Add Pattern
                                </button>
                                <button class="w-full px-3 py-2 bg-primary-600 text-white rounded text-sm hover:bg-primary-700">
                                    <i data-feather="save" class="inline w-4 h-4 mr-2"></i>Save Plan
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- Protection Tools Page -->
        <div id="protection-tools-page" class="page-container hidden">
            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
                <div class="mb-8">
                    <h2 class="text-3xl font-bold text-white mb-2">Protection Tools</h2>
                    <p class="text-secondary-400">Advanced protection and trailing stop mechanisms</p>
                </div>

                <div class="grid grid-cols-1 lg:grid-cols-2 gap-8">
                    <!-- Breakeven Settings -->
                    <div class="gradient-border rounded-lg p-6 glass">
                        <h3 class="text-lg font-semibold text-white mb-4">Breakeven Settings</h3>
                        <div class="space-y-4">
                            <div class="flex items-center justify-between">
                                <span class="text-secondary-300">Enable Breakeven</span>
                                <label class="relative inline-flex items-center cursor-pointer">
                                    <input type="checkbox" class="sr-only peer" checked>
                                    <div class="w-11 h-6 bg-secondary-600 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-primary-800 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-secondary-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-primary-500"></div>
</label>
                            </div>
                            <div>
                                <label class="block text-sm font-medium text-secondary-300 mb-2">Breakeven Trigger (pips)</label>
                                <input type="number" class="w-full px-4 py-2 bg-secondary-800 border border-secondary-700 rounded-lg text-white" value="20">
                            </div>
                            <div>
                                <label class="block text-sm font-medium text-secondary-300 mb-2">Lock Profit (pips)</label>
                                <input type="number" class="w-full px-4 py-2 bg-secondary-800 border border-secondary-700 rounded-lg text-white" value="2">
                            </div>
                            <div class="border-t border-secondary-800 pt-4">
                                <h4 class="text-sm font-medium text-secondary-300 mb-2">Multi-Level Breakeven</h4>
                                <div class="space-y-2">
                                    <div class="flex items-center space-x-2">
                                        <input type="checkbox" class="rounded text-primary-600">
                                        <span class="text-sm text-secondary-300">Level 1: +30 pips, lock +5 pips</span>
                                    </div>
                                    <div class="flex items-center space-x-2">
                                        <input type="checkbox" class="rounded text-primary-600">
                                        <span class="text-sm text-secondary-300">Level 2: +50 pips, lock +15 pips</span>
                                    </div>
                                    <div class="flex items-center space-x-2">
                                        <input type="checkbox" class="rounded text-primary-600">
                                        <span class="text-sm text-secondary-300">Level 3: +80 pips, lock +30 pips</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- Trailing Stop Settings -->
                    <div class="gradient-border rounded-lg p-6 glass">
                        <h3 class="text-lg font-semibold text-white mb-4">Trailing Stop Settings</h3>
                        <div class="space-y-4">
                            <div>
                                <label class="block text-sm font-medium text-secondary-300 mb-2">Trailing Stop Type</label>
                                <select class="w-full px-4 py-2 bg-secondary-800 border border-secondary-700 rounded-lg text-white">
                                    <option>Basic Trailing Stop</option>
                                    <option>Multi-Level Trailing Stop</option>
                                    <option>Peak & Valley Trailing</option>
                                    <option>Moving Average Trailing</option>
                                    <option>ATR Based Trailing</option>
                                    <option>Partial Close Trailing</option>
                                </select>
                            </div>
                            <div>
                                <label class="block text-sm font-medium text-secondary-300 mb-2">Trailing Distance (pips)</label>
                                <input type="number" class="w-full px-4 py-2 bg-secondary-800 border border-secondary-700 rounded-lg text-white" value="30">
                            </div>
                            <div>
                                <label class="block text-sm font-medium text-secondary-300 mb-2">Step Size (pips)</label>
                                <input type="number" class="w-full px-4 py-2 bg-secondary-800 border border-secondary-700 rounded-lg text-white" value="5">
                            </div>
                            <div class="border-t border-secondary-800 pt-4">
                                <h4 class="text-sm font-medium text-secondary-300 mb-2">ATR Settings</h4>
                                <div class="grid grid-cols-2 gap-4">
                                    <div>
                                        <label class="block text-xs text-secondary-400 mb-1">Period</label>
                                        <input type="number" class="w-full px-3 py-1 bg-secondary-800 border border-secondary-700 rounded text-white text-sm" value="14">
                                    </div>
                                    <div>
                                        <label class="block text-xs text-secondary-400 mb-1">Multiplier</label>
                                        <input type="number" class="w-full px-3 py-1 bg-secondary-800 border border-secondary-700 rounded text-white text-sm" value="2.5" step="0.1">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- Partial Close Settings -->
                    <div class="gradient-border rounded-lg p-6 glass">
                        <h3 class="text-lg font-semibold text-white mb-4">Partial Close Settings</h3>
                        <div class="space-y-4">
                            <div class="flex items-center justify-between">
                                <span class="text-secondary-300">Enable Partial Close</span>
                                <label class="relative inline-flex items-center cursor-pointer">
                                    <input type="checkbox" class="sr-only peer" checked>
                                <label class="relative inline-flex items-center cursor-pointer">
                                    <input type="checkbox" class="sr-only peer" checked>
                                    <div class="w-11 h-6 bg-secondary-600 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-primary-800 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-secondary-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-primary-500"></div>
</label>
                            </div>
                            <div class="space-y-3">
                                <div class="bg-secondary-800/50 rounded-lg p-3">
                                    <div class="flex justify-between items-center mb-2">
                                        <span class="text-sm text-secondary-300">Level 1</span>
                                        <span class="text-sm text-white">Close 25% at +30 pips</span>
                                    </div>
                                    <div class="flex space-x-2">
                                        <input type="number" class="flex-1 px-2 py-1 bg-secondary-800 border border-secondary-700 rounded text-white text-sm" value="30">
                                        <input type="number" class="flex-1 px-2 py-1 bg-secondary-800 border border-secondary-700 rounded text-white text-sm" value="25">
                                    </div>
                                </div>
                                <div class="bg-secondary-800/50 rounded-lg p-3">
                                    <div class="flex justify-between items-center mb-2">
                                        <span class="text-sm text-secondary-300">Level 2</span>
                                        <span class="text-sm text-white">Close 50% at +60 pips</span>
                                    </div>
                                    <div class="flex space-x-2">
                                        <input type="number" class="flex-1 px-2 py-1 bg-secondary-800 border border-secondary-700 rounded text-white text-sm" value="60">
                                        <input type="number" class="flex-1 px-2 py-1 bg-secondary-800 border border-secondary-700 rounded text-white text-sm" value="50">
                                    </div>
                                </div>
                                <div class="bg-secondary-800/50 rounded-lg p-3">
                                    <div class="flex justify-between items-center mb-2">
                                        <span class="text-sm text-secondary-300">Level 3</span>
                                        <span class="text-sm text-white">Close 25% at +100 pips</span>
                                    </div>
                                    <div class="flex space-x-2">
                                        <input type="number" class="flex-1 px-2 py-1 bg-secondary-800 border border-secondary-700 rounded text-white text-sm" value="100">
                                        <input type="number" class="flex-1 px-2 py-1 bg-secondary-800 border border-secondary-700 rounded text-white text-sm" value="25">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- Advanced Protection -->
                    <div class="gradient-border rounded-lg p-6 glass">
                        <h3 class="text-lg font-semibold text-white mb-4">Advanced Protection</h3>
                        <div class="space-y-4">
                            <div class="flex items-center justify-between">
                                <span class="text-secondary-300">Hidden SL/TP Mode</span>
                                <label class="relative inline-flex items-center cursor-pointer">
                                    <input type="checkbox" class="sr-only peer">
                                <label class="relative inline-flex items-center cursor-pointer">
                                    <input type="checkbox" class="sr-only peer">
                                    <div class="w-11 h-6 bg-secondary-600 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-primary-800 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-secondary-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-primary-500"></div>
</label>
                            </div>
                            <div class="flex items-center justify-between">
                                <span class="text-secondary-300">Auto Protection for External Orders</span>
                                <label class="relative inline-flex items-center cursor-pointer">
                                    <input type="checkbox" class="sr-only peer" checked>
                                    <div class="w-11 h-6 bg-secondary-700 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-primary-800 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-secondary-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-primary-600"></div>
                                </label>
                            </div>
                            <div class="flex items-center justify-between">
                                <span class="text-secondary-300">Trailing Pending Orders</span>
                                <label class="relative inline-flex items-center cursor-pointer">
                                    <input type="sr-only peer">
                                    <div class="w-11 h-6 bg-secondary-700 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-primary-800 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-secondary-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-primary-600"></div>
                                </label>
                            </div>
                            <div class="pt-4 border-t border-secondary-800">
                                <button class="w-full px-4 py-2 bg-primary-500 text-white rounded-lg hover:bg-primary-600 transition-colors">
                                    <i data-feather="save" class="inline w-4 h-4 mr-2"></i>Save Protection Settings
                                </button>
</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- EA Monitor Page -->
        <div id="ea-monitor-page" class="page-container hidden">
            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
                <div class="mb-8">
                    <h2 class="text-3xl font-bold text-white mb-2">EA Monitor</h2>
                    <p class="text-secondary-400">Monitor and control all Expert Advisors in real-time</p>
                </div>

                <!-- EA Statistics -->
                <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
                    <div class="gradient-border rounded-lg p-6 glass">
                        <div class="flex items-center justify-between">
                            <div>
                                <p class="text-secondary-400 text-sm">Total EAs</p>
                                <p class="text-2xl font-bold text-white">12</p>
                            </div>
                        <div class="bg-primary-500/20 p-3 rounded-lg">
                                <i data-feather="cpu" class="w-6 h-6 text-primary-300"></i>
</div>
                        </div>
                    </div>
                    <div class="gradient-border rounded-lg p-6 glass">
                        <div class="flex items-center justify-between">
                            <div>
                                <p class="text-secondary-400 text-sm">Active EAs</p>
                                <p class="text-2xl font-bold text-green-400">8</p>
                            </div>
                        <div class="bg-primary-500/20 p-3 rounded-lg">
                                <i data-feather="play" class="w-6 h-6 text-primary-300"></i>
</div>
                        </div>
                    </div>
                    <div class="gradient-border rounded-lg p-6 glass">
                        <div class="flex items-center justify-between">
                            <div>
                                <p class="text-secondary-400 text-sm">Total Profit</p>
                                <p class="text-2xl font-bold text-green-400">+$5,234</p>
                            </div>
                        <div class="bg-primary-500/20 p-3 rounded-lg">
                                <i data-feather="trending-up" class="w-6 h-6 text-green-400"></i>
</div>
                        </div>
                    </div>
                    <div class="gradient-border rounded-lg p-6 glass">
                        <div class="flex items-center justify-between">
                            <div>
                                <p class="text-secondary-400 text-sm">Win Rate</p>
                                <p class="text-2xl font-bold text-white">68.5%</p>
                            </div>
                        <div class="bg-accent-500/20 p-3 rounded-lg">
                                <i data-feather="target" class="w-6 h-6 text-accent-400"></i>
</div>
                        </div>
                    </div>
                </div>

                <!-- EA List -->
                <div class="gradient-border rounded-lg p-6 glass">
                    <div class="flex items-center justify-between mb-4">
                        <h3 class="text-lg font-semibold text-white">Expert Advisors</h3>
                        <div class="flex space-x-2">
                            <button class="px-3 py-1 bg-primary-500 text-white rounded text-sm hover:bg-primary-600">
                                <i data-feather="play" class="inline w-4 h-4 mr-1"></i>Start All
                            </button>
                            <button class="px-3 py-1 bg-accent-500 text-white rounded text-sm hover:bg-accent-600">
                                <i data-feather="pause" class="inline w-4 h-4 mr-1"></i>Stop All
                            </button>
                            <button class="px-3 py-1 bg-primary-500 text-white rounded text-sm hover:bg-primary-600">
                                <i data-feather="refresh-cw" class="inline w-4 h-4 mr-1"></i>Refresh
                            </button>
</div>
                    </div>
                    <div class="overflow-x-auto">
                        <table class="min-w-full divide-y divide-secondary-800">
                            <thead>
                                <tr>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-secondary-400 uppercase tracking-wider">EA Name</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-secondary-400 uppercase tracking-wider">Status</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-secondary-400 uppercase tracking-wider">Symbol</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-secondary-400 uppercase tracking-wider">Trades</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-secondary-400 uppercase tracking-wider">P&L</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-secondary-400 uppercase tracking-wider">Win Rate</th>
                                    <th class="px-6 py-3 text-left text-xs font-medium text-secondary-400 uppercase tracking-wider">Actions</th>
                                </tr>
                            </thead>
                            <tbody class="divide-y divide-secondary-800">
                                <tr class="hover:bg-secondary-800/50">
                                    <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-white">TrendMaster Pro</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm">
                                        <span class="px-2 py-1 text-xs bg-primary-500/20 text-primary-400 rounded">Active</span>
</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-secondary-300">EURUSD</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-secondary-300">45</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-primary-400">+$1,234</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-white">72%</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm">
                                        <button class="text-primary-400 hover:text-primary-300 mr-2">
                                            <i data-feather="settings" class="w-4 h-4"></i>
                                        </button>
                                        <button class="text-yellow-400 hover:text-yellow-300 mr-2">
                                            <i data-feather="pause" class="w-4 h-4"></i>
                                        </button>
                                        <button class="text-red-400 hover:text-red-300">
                                            <i data-feather="x" class="w-4 h-4"></i>
                                        </button>
                                    </td>
                                </tr>
                                <tr class="hover:bg-secondary-800/50">
                                    <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-white">ScalperX 2024</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm">
                                        <span class="px-2 py-1 text-xs bg-green-600/20 text-green-400 rounded">Active</span>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-secondary-300">GBPUSD</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-secondary-300">128</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-primary-400">+$892</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-white">65%</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm">
                                        <button class="text-primary-400 hover:text-primary-300 mr-2">
                                            <i data-feather="settings" class="w-4 h-4"></i>
                                        </button>
                                        <button class="text-yellow-400 hover:text-yellow-300 mr-2">
                                            <i data-feather="pause" class="w-4 h-4"></i>
                                        </button>
                                        <button class="text-red-400 hover:text-red-300">
                                            <i data-feather="x" class="w-4 h-4"></i>
                                        </button>
                                    </td>
                                </tr>
                                <tr class="hover:bg-secondary-800/50">
                                    <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-white">GridMaster FX</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm">
                                        <span class="px-2 py-1 text-xs bg-red-600/20 text-red-400 rounded">Stopped</span>
                                    </td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-secondary-300">USDJPY</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-secondary-300">23</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm text-accent-400">-$456</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-white">48%</td>
                                    <td class="px-6 py-4 whitespace-nowrap text-sm">
                                        <button class="text-primary-400 hover:text-primary-300 mr-2">
                                            <i data-feather="settings" class="w-4 h-4"></i>
                                        </button>
                                        <button class="text-green-400 hover:text-green-300 mr-2">
                                            <i data-feather="play" class="w-4 h-4"></i>
                                        </button>
                                        <button class="text-red-400 hover:text-red-300">
                                            <i data-feather="x" class="w-4 h-4"></i>
                                        </button>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>

                <!-- EA Performance Chart -->
                <div class="gradient-border rounded-lg p-6 glass mt-8">
                    <h3 class="text-lg font-semibold text-white mb-4">EA Performance Comparison</h3>
                    <div class="h-64">
                        <canvas id="eaPerformanceChart"></canvas>
                    </div>
                </div>
            </div>
        </div>
    </main>

    <!-- Scripts -->
    <script>
        // Page navigation
        function showPage(pageId) {
            // Hide all pages
            document.querySelectorAll('.page-container').forEach(page => {
                page.classList.add('hidden');
            });
            
            // Show selected page
            const selectedPage = document.getElementById(pageId + '-page');
            if (selectedPage) {
                selectedPage.classList.remove('hidden');
                selectedPage.classList.add('fade-in');
            }
            
            // Update navigation
            document.querySelectorAll('.nav-link').forEach(link => {
                link.classList.remove('bg-primary-600', 'text-white');
                link.classList.add('text-secondary-300', 'hover:bg-secondary-800');
            });
            
            const activeLink = document.querySelector(`[data-page="${pageId}"]`);
            if (activeLink) {
                activeLink.classList.add('bg-primary-600', 'text-white');
                activeLink.classList.remove('text-secondary-300', 'hover:bg-secondary-800');
            }
        }

        // Initialize charts
        document.addEventListener('DOMContentLoaded', function() {
            // Performance Chart
            const perfCtx = document.getElementById('performanceChart');
            if (perfCtx) {
                new Chart(perfCtx, {
                    type: 'line',
                    data: {
                        labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
                        datasets: [{
                            label: 'Equity',
                            data: [23000, 24500, 23800, 25200, 24800, 26891],
                            borderColor: '#22c55e',
                            backgroundColor: 'rgba(34, 197, 94, 0.1)',
tension: 0.4
                        }]
                    },
                    options: {
                        responsive: true,
                        maintainAspectRatio: false,
                        plugins: {
                            legend: {
                                labels: {
                                    color: '#a1a1aa'
                                }
                            }
                        },
                        scales: {
                            x: {
                                ticks: {
                                    color: '#a1a1aa'
                                },
                                grid: {
                                    color: '#27272a'
                                }
                            },
                            y: {
                                ticks: {
                                    color: '#a1a1aa'
                                },
                                grid: {
                                    color: '#27272a'
                                }
                            }
                        }
                    }
                });
            }

            // EA Performance Chart
            const eaPerfCtx = document.getElementById('eaPerformanceChart');
            if (eaPerfCtx) {
                new Chart(eaPerfCtx, {
                    type: 'bar',
                    data: {
                        labels: ['TrendMaster Pro', 'ScalperX 2024', 'GridMaster FX', 'Breakout Bot', 'Range Trader'],
                        datasets: [{
                            label: 'P&L ($)',
                            data: [1234, 892, -456, 678, 234],
                            backgroundColor: [
                                'rgba(34, 197, 94, 0.8)',
                                'rgba(34, 197, 94, 0.8)',
                                'rgba(239, 68, 68, 0.8)',
                                'rgba(34, 197, 94, 0.8)',
                                'rgba(34, 197, 94, 0.8)'
                            ]
                        }]
                    },
                    options: {
                        responsive: true,
                        maintainAspectRatio: false,
                        plugins: {
                            legend: {
                                labels: {
                                    color: '#a1a1aa'
                                }
                            }
                        },
                        scales: {
                            x: {
                                ticks: {
                                    color: '#a1a1aa'
                                },
                                grid: {
                                    color: '#27272a'
                                }
                            },
                            y: {
                                ticks: {
                                    color: '#a1a1aa'
                                },
                                grid: {
                                    color: '#27272a'
                                }
                            }
                        }
                    }
                });
            }

            // Initialize feather icons
            feather.replace();
            // Initialize mobile menu button
            const mobileMenuButton = document.getElementById('mobile-menu-button');
            if (mobileMenuButton) {
                mobileMenuButton.addEventListener('click', toggleMobileMenu);
            }

            // Close mobile menu when clicking outside
            document.addEventListener('click', function(event) {
                const mobileMenu = document.getElementById('mobile-menu');
                const menuButton = document.getElementById('mobile-menu-button');
                
                if (mobileMenu && menuButton) {
                    const isClickInsideMenu = mobileMenu.contains(event.target);
                const isClickOnButton = menuButton.contains(event.target);
                
                if (!isClickInsideMenu && !isClickOnButton && !mobileMenu.classList.contains('hidden')) {
                    closeMobileMenu();
                }
            }

            // Add slide animation to navigation
            anime({
                targets: 'nav',
                translateY: [-20, 0],
                opacity: [0, 1],
                duration: 800,
                easing: 'easeOutExpo'
            });

            // Add stagger animation to cards
            anime({
                targets: '.gradient-border',
                translateY: [20, 0],
                opacity: [0, 1],
                delay: anime.stagger(100),
                duration: 800,
                easing: 'easeOutExpo'
            });
});

        // Real-time updates simulation
        setInterval(() => {
            // Update balance
            const balanceElement = document.querySelector('.pulse-glow p.text-2xl');
            if (balanceElement) {
                const currentBalance = parseFloat(balanceElement.textContent.replace('$', '').replace(',', ''));
                const newBalance = currentBalance + (Math.random() - 0.5) * 10;
                balanceElement.textContent = `$${newBalance.toFixed(2)}`;
            }
        }, 5000);
    </script>
</body>
</html>