Spaces:
Running

File size: 65,184 Bytes
6dbdce8
 
 
 
 
547ab30
6dbdce8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
547ab30
 
6dbdce8
 
 
547ab30
 
 
 
 
 
 
 
6dbdce8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
547ab30
6dbdce8
 
 
547ab30
6dbdce8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
547ab30
6dbdce8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
547ab30
 
 
 
 
 
 
 
 
 
 
 
 
 
6dbdce8
 
547ab30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6dbdce8
547ab30
 
 
 
 
 
6dbdce8
547ab30
 
 
6dbdce8
 
547ab30
 
 
 
 
 
 
 
 
6dbdce8
547ab30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6dbdce8
 
 
 
547ab30
6dbdce8
547ab30
 
 
 
 
 
 
 
 
 
 
 
 
6dbdce8
547ab30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6dbdce8
 
 
 
 
547ab30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6dbdce8
547ab30
 
 
 
 
 
6dbdce8
 
547ab30
 
 
 
 
 
6dbdce8
547ab30
 
 
6dbdce8
547ab30
 
 
 
 
 
 
 
 
6dbdce8
547ab30
 
 
 
 
6dbdce8
 
547ab30
 
 
 
 
 
 
 
 
 
 
6dbdce8
 
 
547ab30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6dbdce8
547ab30
 
 
 
6dbdce8
 
547ab30
 
 
6dbdce8
547ab30
 
 
 
6dbdce8
 
 
547ab30
 
 
 
 
 
 
 
 
 
6dbdce8
 
547ab30
 
 
 
 
 
 
 
 
 
6dbdce8
547ab30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6dbdce8
547ab30
6dbdce8
547ab30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6dbdce8
547ab30
 
 
 
 
 
 
 
6dbdce8
547ab30
6dbdce8
547ab30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6dbdce8
547ab30
 
 
 
 
 
 
 
6dbdce8
547ab30
6dbdce8
547ab30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6dbdce8
547ab30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6dbdce8
 
 
 
547ab30
 
 
 
 
6dbdce8
547ab30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6dbdce8
 
 
 
547ab30
 
 
 
 
 
 
 
 
 
 
 
6dbdce8
547ab30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6dbdce8
547ab30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6dbdce8
 
547ab30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6dbdce8
547ab30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6dbdce8
 
547ab30
 
 
 
 
 
 
 
 
 
 
 
 
6dbdce8
547ab30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6dbdce8
 
547ab30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6dbdce8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
547ab30
6dbdce8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
547ab30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6dbdce8
 
 
 
 
 
 
 
 
 
 
 
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
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Notes & AI Videos | AI Classroom</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">
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Inter:wght@400;500&display=swap" rel="stylesheet">
    <style>
        :root {
            --primary: #A6C8FF;
            --secondary: #CABDFF;
            --text: #1E293B;
        }
        
        body {
            font-family: 'Inter', sans-serif;
            color: var(--text);
            background-color: #F8FAFC;
        }
        
        h1, h2, h3, h4 {
            font-family: 'Poppins', sans-serif;
        }
        
        .sidebar {
            transition: all 0.3s ease;
        }
        
        .card {
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        
        .card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }
        
        .progress-ring__circle {
            transition: stroke-dashoffset 0.5s ease;
            transform: rotate(-90deg);
            transform-origin: 50% 50%;
        }
        
        .tab-content {
            display: none;
        }
        
        .tab-content.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .upload-area {
            border: 2px dashed #CBD5E0;
            transition: all 0.2s ease;
        }
        
        .upload-area:hover {
            border-color: #A6C8FF;
            background-color: #F0F7FF;
        }
        
        .upload-area.dragover {
            border-color: #4F46E5;
            background-color: #E0E7FF;
        }
    </style>
</head>
<body class="flex h-screen overflow-hidden">
    <!-- Sidebar Navigation -->
    <div class="sidebar w-64 bg-white border-r border-gray-200 flex flex-col flex-shrink-0">
        <div class="flex items-center justify-center h-16 px-4 border-b border-gray-200">
            <div class="flex items-center">
                <i class="fas fa-brain text-2xl mr-2 text-indigo-500"></i>
                <span class="text-xl font-bold">AI Classroom</span>
            </div>
        </div>
        <div class="flex-1 overflow-y-auto">
            <nav class="px-4 py-6">
                <div class="space-y-1">
                    <a href="#" class="flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700 hover:bg-gray-100">
                        <i class="fas fa-home mr-3 text-blue-500"></i>
                        Dashboard
                    </a>
                    <a href="#" class="flex items-center px-3 py-2 text-sm font-medium rounded-md bg-blue-50 text-blue-700">
                        <i class="fas fa-file-alt mr-3 text-purple-500"></i>
                        Notes & AI Videos
                    </a>
                    <a href="#" class="flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700 hover:bg-gray-100">
                        <i class="fas fa-clipboard-check mr-3 text-teal-500"></i>
                        Exams & AI Exam Mode
                    </a>
                    <a href="#" class="flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700 hover:bg-gray-100">
                        <i class="fas fa-calendar-alt mr-3 text-indigo-500"></i>
                        Study Planner
                    </a>
                    <a href="#" class="flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700 hover:bg-gray-100">
                        <i class="fas fa-lightbulb mr-3 text-yellow-500"></i>
                        AI Explanation Generator
                    </a>
                    <a href="#" class="flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700 hover:bg-gray-100">
                        <i class="fas fa-chart-line mr-3 text-green-500"></i>
                        Performance Tracker
                    </a>
                    <a href="#" class="flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700 hover:bg-gray-100">
                        <i class="fas fa-trophy mr-3 text-amber-500"></i>
                        Rewards
                    </a>
                    <a href="#" class="flex items-center px-3 py-2 text-sm font-medium rounded-md text-gray-700 hover:bg-gray-100">
                        <i class="fas fa-cog mr-3 text-gray-500"></i>
                        Settings
                    </a>
                </div>
            </nav>
        </div>
        <div class="p-4 border-t border-gray-200">
            <div class="flex items-center">
                <img class="w-10 h-10 rounded-full" src="https://randomuser.me/api/portraits/women/44.jpg" alt="User profile">
                <div class="ml-3">
                    <p class="text-sm font-medium">Sarah Johnson</p>
                    <p class="text-xs text-gray-500">Premium Plan</p>
                </div>
            </div>
        </div>
    </div>

    <!-- Main Content Area -->
    <div class="flex-1 flex flex-col overflow-hidden">
        <!-- Top Navigation -->
        <header class="bg-white border-b border-gray-200">
            <div class="flex items-center justify-between px-6 py-3">
                <div class="flex items-center">
                    <button class="mr-4 text-gray-500 focus:outline-none lg:hidden">
                        <i class="fas fa-bars"></i>
                    </button>
                    <h1 class="text-xl font-bold">Notes & AI Videos</h1>
                </div>
                <div class="flex items-center space-x-4">
                    <button class="p-2 text-gray-500 rounded-full hover:bg-gray-100">
                        <i class="fas fa-bell"></i>
                        <span class="sr-only">Notifications</span>
                    </button>
                    <div class="relative">
                        <button id="user-menu-button" class="flex items-center focus:outline-none">
                            <span class="sr-only">Open user menu</span>
                            <img class="w-8 h-8 rounded-full" src="https://randomuser.me/api/portraits/women/44.jpg" alt="User menu">
                        </button>
                        <!-- Dropdown menu -->
                        <div id="user-dropdown" class="hidden absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-10">
                            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Your Profile</a>
                            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Settings</a>
                            <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Sign out</a>
                        </div>
                    </div>
                </div>
            </div>
        </header>

        <!-- Main Content -->
        <main class="flex-1 overflow-y-auto p-6 bg-gray-50">
            <!-- Tabs Navigation -->
            <div class="flex border-b border-gray-200 mb-6">
                <button onclick="openTab(event, 'text-to-video')" class="tab-button px-4 py-2 text-sm font-medium rounded-t-lg bg-blue-100 text-blue-700">
                    Text to Video
                </button>
                <button onclick="openTab(event, 'pdf-to-video')" class="tab-button px-4 py-2 text-sm font-medium rounded-t-lg text-gray-700 hover:bg-gray-100">
                    PDF to Video
                </button>
                <button onclick="openTab(event, 'my-notes')" class="tab-button px-4 py-2 text-sm font-medium rounded-t-lg text-gray-700 hover:bg-gray-100">
                    My Notes
                </button>
                <button onclick="openTab(event, 'video-library')" class="tab-button px-4 py-2 text-sm font-medium rounded-t-lg text-gray-700 hover:bg-gray-100">
                    Video Library
                </button>
            </div>

            <!-- Text to Video Tab -->
            <div id="text-to-video" class="tab-content active">
                <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
                    <!-- Input Section -->
                    <div class="card bg-white rounded-xl shadow-sm p-6">
                        <h2 class="text-xl font-bold mb-4">Create AI Video from Text</h2>
                        <div class="mb-4">
                            <label for="subject" class="block text-sm font-medium text-gray-700 mb-1">Subject</label>
                            <select id="subject" class="w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500">
                                <option>Physics</option>
                                <option>Mathematics</option>
                                <option>Chemistry</option>
                                <option>Biology</option>
                                <option>History</option>
                                <option>Literature</option>
                            </select>
                        </div>
                        <div class="mb-4">
                            <label for="topic" class="block text-sm font-medium text-gray-700 mb-1">Topic</label>
                            <input type="text" id="topic" class="w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500" placeholder="E.g. Quantum Mechanics, Calculus, etc.">
                        </div>
                        <div class="mb-4">
                            <label for="notes-text" class="block text-sm font-medium text-gray-700 mb-1">Your Notes</label>
                            <textarea id="notes-text" rows="10" class="w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500" placeholder="Paste or type your notes here..."></textarea>
                        </div>
                        <div class="flex justify-between items-center">
                            <div>
                                <label class="inline-flex items-center">
                                    <input type="checkbox" class="rounded border-gray-300 text-blue-600 shadow-sm focus:border-blue-300 focus:ring focus:ring-offset-0 focus:ring-blue-200 focus:ring-opacity-50">
                                    <span class="ml-2 text-sm text-gray-600">Include quiz questions</span>
                                </label>
                            </div>
                            <button class="px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2">
                                Generate Video
                            </button>
                        </div>
                    </div>
                    
                    <!-- Output Preview Section -->
                    <div class="card bg-white rounded-xl shadow-sm p-6">
                        <h2 class="text-xl font-bold mb-4">Video Preview</h2>
                        <div class="bg-gray-100 rounded-lg aspect-video flex items-center justify-center mb-4">
                            <div class="text-center">
                                <i class="fas fa-play-circle text-5xl text-gray-400 mb-2"></i>
                                <p class="text-gray-600">Your generated video will appear here</p>
                            </div>
                        </div>
                        <div class="mb-4">
                            <label class="block text-sm font-medium text-gray-700 mb-1">Video Summary</label>
                            <div class="bg-gray-50 p-4 rounded-md">
                                <p class="text-gray-600 italic">No summary available yet. Generate a video to see the AI-generated summary.</p>
                            </div>
                        </div>
                        <div class="flex space-x-3">
                            <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50" disabled>
                                <i class="fas fa-download mr-1"></i> Download
                            </button>
                            <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50" disabled>
                                <i class="fas fa-save mr-1"></i> Save to Library
                            </button>
                            <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50" disabled>
                                <i class="fas fa-share-alt mr-1"></i> Share
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- Recent Text-to-Video Conversions -->
                <div class="card bg-white rounded-xl shadow-sm p-6">
                    <div class="flex items-center justify-between mb-4">
                        <h2 class="text-xl font-bold">Recent Text-to-Video Conversions</h2>
                        <button class="text-sm font-medium text-blue-600 hover:text-blue-800">View all</button>
                    </div>
                    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
                        <div class="border rounded-lg overflow-hidden hover:shadow-md transition-shadow">
                            <div class="bg-gray-100 aspect-video flex items-center justify-center">
                                <i class="fas fa-play-circle text-4xl text-gray-400"></i>
                            </div>
                            <div class="p-3">
                                <h3 class="font-medium">Quantum Mechanics Basics</h3>
                                <p class="text-sm text-gray-500">Physics • 2 days ago</p>
                            </div>
                        </div>
                        <div class="border rounded-lg overflow-hidden hover:shadow-md transition-shadow">
                            <div class="bg-gray-100 aspect-video flex items-center justify-center">
                                <i class="fas fa-play-circle text-4xl text-gray-400"></i>
                            </div>
                            <div class="p-3">
                                <h3 class="font-medium">Linear Algebra Review</h3>
                                <p class="text-sm text-gray-500">Mathematics • 1 week ago</p>
                            </div>
                        </div>
                        <div class="border rounded-lg overflow-hidden hover:shadow-md transition-shadow">
                            <div class="bg-gray-100 aspect-video flex items-center justify-center">
                                <i class="fas fa-play-circle text-4xl text-gray-400"></i>
                            </div>
                            <div class="p-3">
                                <h3 class="font-medium">Organic Chemistry Reactions</h3>
                                <p class="text-sm text-gray-500">Chemistry • 2 weeks ago</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- PDF to Video Tab -->
            <div id="pdf-to-video" class="tab-content">
                <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
                    <!-- Upload Section -->
                    <div class="card bg-white rounded-xl shadow-sm p-6">
                        <h2 class="text-xl font-bold mb-4">Create AI Video from PDF</h2>
                        <div class="mb-4">
                            <label for="pdf-subject" class="block text-sm font-medium text-gray-700 mb-1">Subject</label>
                            <select id="pdf-subject" class="w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500">
                                <option>Physics</option>
                                <option>Mathematics</option>
                                <option>Chemistry</option>
                                <option>Biology</option>
                                <option>History</option>
                                <option>Literature</option>
                            </select>
                        </div>
                        <div class="mb-4">
                            <label for="pdf-topic" class="block text-sm font-medium text-gray-700 mb-1">Topic (Optional)</label>
                            <input type="text" id="pdf-topic" class="w-full rounded-md border-gray-300 shadow-sm focus:border-blue-500 focus:ring-blue-500" placeholder="Helps with video title and organization">
                        </div>
                        <div class="mb-4">
                            <label class="block text-sm font-medium text-gray-700 mb-2">Upload PDF</label>
                            <div id="upload-container" class="upload-area border-2 border-dashed rounded-lg p-8 text-center cursor-pointer">
                                <i class="fas fa-file-pdf text-4xl text-gray-400 mb-2"></i>
                                <p class="text-gray-600">Drag & drop your PDF here or click to browse</p>
                                <p class="text-xs text-gray-500 mt-2">Max file size: 10MB</p>
                                <input type="file" id="pdf-upload" class="hidden" accept=".pdf">
                            </div>
                            <div id="file-info" class="hidden mt-2 text-sm text-gray-600">
                                <i class="fas fa-check-circle text-green-500 mr-1"></i>
                                <span id="file-name">example.pdf</span>
                                <button id="remove-file" class="ml-2 text-red-500 hover:text-red-700">
                                    <i class="fas fa-times"></i>
                                </button>
                            </div>
                        </div>
                        <div class="flex justify-between items-center">
                            <div>
                                <label class="inline-flex items-center">
                                    <input type="checkbox" class="rounded border-gray-300 text-blue-600 shadow-sm focus:border-blue-300 focus:ring focus:ring-offset-0 focus:ring-blue-200 focus:ring-opacity-50">
                                    <span class="ml-2 text-sm text-gray-600">Generate quiz from content</span>
                                </label>
                            </div>
                            <button id="generate-pdf-video" class="px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2" disabled>
                                Generate Video
                            </button>
                        </div>
                    </div>
                    
                    <!-- Output Preview Section -->
                    <div class="card bg-white rounded-xl shadow-sm p-6">
                        <h2 class="text-xl font-bold mb-4">Video Preview</h2>
                        <div class="bg-gray-100 rounded-lg aspect-video flex items-center justify-center mb-4">
                            <div class="text-center">
                                <i class="fas fa-play-circle text-5xl text-gray-400 mb-2"></i>
                                <p class="text-gray-600">Your generated video will appear here</p>
                            </div>
                        </div>
                        <div class="mb-4">
                            <label class="block text-sm font-medium text-gray-700 mb-1">Extracted Text Preview</label>
                            <div class="bg-gray-50 p-4 rounded-md max-h-40 overflow-y-auto">
                                <p class="text-gray-600 italic">No PDF content extracted yet. Upload a PDF to see the extracted text.</p>
                            </div>
                        </div>
                        <div class="flex space-x-3">
                            <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50" disabled>
                                <i class="fas fa-download mr-1"></i> Download
                            </button>
                            <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50" disabled>
                                <i class="fas fa-save mr-1"></i> Save to Library
                            </button>
                            <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50" disabled>
                                <i class="fas fa-share-alt mr-1"></i> Share
                            </button>
                        </div>
                    </div>
                </div>
                
                <!-- Recent PDF-to-Video Conversions -->
                <div class="card bg-white rounded-xl shadow-sm p-6">
                    <div class="flex items-center justify-between mb-4">
                        <h2 class="text-xl font-bold">Recent PDF-to-Video Conversions</h2>
                        <button class="text-sm font-medium text-blue-600 hover:text-blue-800">View all</button>
                    </div>
                    <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
                        <div class="border rounded-lg overflow-hidden hover:shadow-md transition-shadow">
                            <div class="bg-gray-100 aspect-video flex items-center justify-center">
                                <i class="fas fa-play-circle text-4xl text-gray-400"></i>
                            </div>
                            <div class="p-3">
                                <h3 class="font-medium">Electromagnetism Notes</h3>
                                <p class="text-sm text-gray-500">From: physics_notes.pdf</p>
                                <p class="text-xs text-gray-400">3 days ago</p>
                            </div>
                        </div>
                        <div class="border rounded-lg overflow-hidden hover:shadow-md transition-shadow">
                            <div class="bg-gray-100 aspect-video flex items-center justify-center">
                                <i class="fas fa-play-circle text-4xl text-gray-400"></i>
                            </div>
                            <div class="p-3">
                                <h3 class="font-medium">Calculus Derivatives</h3>
                                <p class="text-sm text-gray-500">From: math_lecture_3.pdf</p>
                                <p class="text-xs text-gray-400">1 week ago</p>
                            </div>
                        </div>
                        <div class="border rounded-lg overflow-hidden hover:shadow-md transition-shadow">
                            <div class="bg-gray-100 aspect-video flex items-center justify-center">
                                <i class="fas fa-play-circle text-4xl text-gray-400"></i>
                            </div>
                            <div class="p-3">
                                <h3 class="font-medium">World War II Timeline</h3>
                                <p class="text-sm text-gray-500">From: history_chapter5.pdf</p>
                                <p class="text-xs text-gray-400">2 weeks ago</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- My Notes Tab -->
            <div id="my-notes" class="tab-content">
                <div class="flex justify-between items-center mb-6">
                    <h2 class="text-xl font-bold">My Notes</h2>
                    <button class="px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2">
                        <i class="fas fa-plus mr-2"></i> Create New Note
                    </button>
                </div>
                
                <!-- Search and Filter -->
                <div class="card bg-white rounded-xl shadow-sm p-4 mb-6">
                    <div class="grid grid-cols-1 md:grid-cols-3 gap-4">
                        <div>
                            <label for="search-notes" class="sr-only">Search notes</label>
                            <div class="relative">
                                <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
                                    <i class="fas fa-search text-gray-400"></i>
                                </div>
                                <input type="text" id="search-notes" class="block w-full pl-10 pr-3 py-2 border border-gray-300 rounded-md leading-5 bg-white placeholder-gray-500 focus:outline-none focus:placeholder-gray-400 focus:ring-1 focus:ring-blue-500 focus:border-blue-500 sm:text-sm" placeholder="Search notes...">
                            </div>
                        </div>
                        <div>
                            <label for="filter-subject" class="sr-only">Filter by subject</label>
                            <select id="filter-subject" class="block w-full pl-3 pr-10 py-2 text-base border border-gray-300 focus:outline-none focus:ring-1 focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
                                <option>All Subjects</option>
                                <option>Physics</option>
                                <option>Mathematics</option>
                                <option>Chemistry</option>
                                <option>Biology</option>
                                <option>History</option>
                                <option>Literature</option>
                            </select>
                        </div>
                        <div>
                            <label for="sort-notes" class="sr-only">Sort by</label>
                            <select id="sort-notes" class="block w-full pl-3 pr-10 py-2 text-base border border-gray-300 focus:outline-none focus:ring-1 focus:ring-blue-500 focus:border-blue-500 sm:text-sm rounded-md">
                                <option>Recently Updated</option>
                                <option>Alphabetical</option>
                                <option>Oldest First</option>
                                <option>Most Viewed</option>
                            </select>
                        </div>
                    </div>
                </div>
                
                <!-- Notes List -->
                <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
                    <div class="card bg-white rounded-xl shadow-sm overflow-hidden hover:shadow-md transition-shadow">
                        <div class="p-4 border-b border-gray-200 bg-blue-50">
                            <div class="flex justify-between items-start">
                                <h3 class="font-bold text-lg">Quantum Mechanics</h3>
                                <span class="px-2 py-1 text-xs font-semibold bg-blue-100 text-blue-800 rounded-full">Physics</span>
                            </div>
                            <p class="text-sm text-gray-500 mt-1">Last updated: 2 days ago</p>
                        </div>
                        <div class="p-4">
                            <p class="text-gray-600 text-sm line-clamp-3">Notes on wave-particle duality, Schrödinger's equation, and the uncertainty principle. Includes examples from recent lectures and textbook readings.</p>
                            <div class="mt-4 flex justify-between items-center">
                                <div class="flex space-x-2">
                                    <span class="px-2 py-1 text-xs bg-gray-100 text-gray-600 rounded-full">
                                        <i class="fas fa-eye mr-1"></i> 12
                                    </span>
                                    <span class="px-2 py-1 text-xs bg-gray-100 text-gray-600 rounded-full">
                                        <i class="fas fa-video mr-1"></i> 1
                                    </span>
                                </div>
                                <div class="flex space-x-2">
                                    <button class="p-1 text-gray-500 hover:text-blue-600">
                                        <i class="fas fa-edit"></i>
                                    </button>
                                    <button class="p-1 text-gray-500 hover:text-red-600">
                                        <i class="fas fa-trash"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="card bg-white rounded-xl shadow-sm overflow-hidden hover:shadow-md transition-shadow">
                        <div class="p-4 border-b border-gray-200 bg-purple-50">
                            <div class="flex justify-between items-start">
                                <h3 class="font-bold text-lg">Linear Algebra</h3>
                                <span class="px-2 py-1 text-xs font-semibold bg-purple-100 text-purple-800 rounded-full">Mathematics</span>
                            </div>
                            <p class="text-sm text-gray-500 mt-1">Last updated: 1 week ago</p>
                        </div>
                        <div class="p-4">
                            <p class="text-gray-600 text-sm line-clamp-3">Matrix operations, vector spaces, eigenvalues and eigenvectors. Summary of key concepts with practice problems and solutions.</p>
                            <div class="mt-4 flex justify-between items-center">
                                <div class="flex space-x-2">
                                    <span class="px-2 py-1 text-xs bg-gray-100 text-gray-600 rounded-full">
                                        <i class="fas fa-eye mr-1"></i> 8
                                    </span>
                                    <span class="px-2 py-1 text-xs bg-gray-100 text-gray-600 rounded-full">
                                        <i class="fas fa-video mr-1"></i> 2
                                    </span>
                                </div>
                                <div class="flex space-x-2">
                                    <button class="p-1 text-gray-500 hover:text-blue-600">
                                        <i class="fas fa-edit"></i>
                                    </button>
                                    <button class="p-1 text-gray-500 hover:text-red-600">
                                        <i class="fas fa-trash"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="card bg-white rounded-xl shadow-sm overflow-hidden hover:shadow-md transition-shadow">
                        <div class="p-4 border-b border-gray-200 bg-green-50">
                            <div class="flex justify-between items-start">
                                <h3 class="font-bold text-lg">Organic Chemistry</h3>
                                <span class="px-2 py-1 text-xs font-semibold bg-green-100 text-green-800 rounded-full">Chemistry</span>
                            </div>
                            <p class="text-sm text-gray-500 mt-1">Last updated: 2 weeks ago</p>
                        </div>
                        <div class="p-4">
                            <p class="text-gray-600 text-sm line-clamp-3">Reaction mechanisms, functional groups, and stereochemistry. Includes color-coded diagrams of important reactions.</p>
                            <div class="mt-4 flex justify-between items-center">
                                <div class="flex space-x-2">
                                    <span class="px-2 py-1 text-xs bg-gray-100 text-gray-600 rounded-full">
                                        <i class="fas fa-eye mr-1"></i> 15
                                    </span>
                                    <span class="px-2 py-1 text-xs bg-gray-100 text-gray-600 rounded-full">
                                        <i class="fas fa-video mr-1"></i> 1
                                    </span>
                                </div>
                                <div class="flex space-x-2">
                                    <button class="p-1 text-gray-500 hover:text-blue-600">
                                        <i class="fas fa-edit"></i>
                                    </button>
                                    <button class="p-1 text-gray-500 hover:text-red-600">
                                        <i class="fas fa-trash"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="card bg-white rounded-xl shadow-sm overflow-hidden hover:shadow-md transition-shadow">
                        <div class="p-4 border-b border-gray-200 bg-yellow-50">
                            <div class="flex justify-between items-start">
                                <h3 class="font-bold text-lg">Cell Biology</h3>
                                <span class="px-2 py-1 text-xs font-semibold bg-yellow-100 text-yellow-800 rounded-full">Biology</span>
                            </div>
                            <p class="text-sm text-gray-500 mt-1">Last updated: 3 weeks ago</p>
                        </div>
                        <div class="p-4">
                            <p class="text-gray-600 text-sm line-clamp-3">Structure and function of organelles, cell division, and cellular transport. Includes comparison tables between plant and animal cells.</p>
                            <div class="mt-4 flex justify-between items-center">
                                <div class="flex space-x-2">
                                    <span class="px-2 py-1 text-xs bg-gray-100 text-gray-600 rounded-full">
                                        <i class="fas fa-eye mr-1"></i> 6
                                    </span>
                                    <span class="px-2 py-1 text-xs bg-gray-100 text-gray-600 rounded-full">
                                        <i class="fas fa-video mr-1"></i> 0
                                    </span>
                                </div>
                                <div class="flex space-x-2">
                                    <button class="p-1 text-gray-500 hover:text-blue-600">
                                        <i class="fas fa-edit"></i>
                                    </button>
                                    <button class="p-1 text-gray-500 hover:text-red-600">
                                        <i class="fas fa-trash"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="card bg-white rounded-xl shadow-sm overflow-hidden hover:shadow-md transition-shadow">
                        <div class="p-4 border-b border-gray-200 bg-red-50">
                            <div class="flex justify-between items-start">
                                <h3 class="font-bold text-lg">French Revolution</h3>
                                <span class="px-2 py-1 text-xs font-semibold bg-red-100 text-red-800 rounded-full">History</span>
                            </div>
                            <p class="text-sm text-gray-500 mt-1">Last updated: 1 month ago</p>
                        </div>
                        <div class="p-4">
                            <p class="text-gray-600 text-sm line-clamp-3">Causes, key events, and consequences of the French Revolution. Timeline of major events and profiles of important figures.</p>
                            <div class="mt-4 flex justify-between items-center">
                                <div class="flex space-x-2">
                                    <span class="px-2 py-1 text-xs bg-gray-100 text-gray-600 rounded-full">
                                        <i class="fas fa-eye mr-1"></i> 9
                                    </span>
                                    <span class="px-2 py-1 text-xs bg-gray-100 text-gray-600 rounded-full">
                                        <i class="fas fa-video mr-1"></i> 1
                                    </span>
                                </div>
                                <div class="flex space-x-2">
                                    <button class="p-1 text-gray-500 hover:text-blue-600">
                                        <i class="fas fa-edit"></i>
                                    </button>
                                    <button class="p-1 text-gray-500 hover:text-red-600">
                                        <i class="fas fa-trash"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="card bg-white rounded-xl shadow-sm overflow-hidden hover:shadow-md transition-shadow">
                        <div class="p-4 border-b border-gray-200 bg-indigo-50">
                            <div class="flex justify-between items-start">
                                <h3 class="font-bold text-lg">Shakespeare's Sonnets</h3>
                                <span class="px-2 py-1 text-xs font-semibold bg-indigo-100 text-indigo-800 rounded-full">Literature</span>
                            </div>
                            <p class="text-sm text-gray-500 mt-1">Last updated: 1 month ago</p>
                        </div>
                        <div class="p-4">
                            <p class="text-gray-600 text-sm line-clamp-3">Analysis of themes, structure, and literary devices in selected sonnets. Comparison between the "Fair Youth" and "Dark Lady" sequences.</p>
                            <div class="mt-4 flex justify-between items-center">
                                <div class="flex space-x-2">
                                    <span class="px-2 py-1 text-xs bg-gray-100 text-gray-600 rounded-full">
                                        <i class="fas fa-eye mr-1"></i> 5
                                    </span>
                                    <span class="px-2 py-1 text-xs bg-gray-100 text-gray-600 rounded-full">
                                        <i class="fas fa-video mr-1"></i> 0
                                    </span>
                                </div>
                                <div class="flex space-x-2">
                                    <button class="p-1 text-gray-500 hover:text-blue-600">
                                        <i class="fas fa-edit"></i>
                                    </button>
                                    <button class="p-1 text-gray-500 hover:text-red-600">
                                        <i class="fas fa-trash"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- Pagination -->
                <div class="mt-6 flex items-center justify-between">
                    <div class="text-sm text-gray-500">
                        Showing <span class="font-medium">1</span> to <span class="font-medium">6</span> of <span class="font-medium">24</span> notes
                    </div>
                    <div class="flex space-x-2">
                        <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 bg-white hover:bg-gray-50">
                            Previous
                        </button>
                        <button class="px-3 py-1 border border-blue-500 rounded-md text-white bg-blue-600 hover:bg-blue-700">
                            1
                        </button>
                        <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 bg-white hover:bg-gray-50">
                            2
                        </button>
                        <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 bg-white hover:bg-gray-50">
                            3
                        </button>
                        <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 bg-white hover:bg-gray-50">
                            Next
                        </button>
                    </div>
                </div>
            </div>

            <!-- Video Library Tab -->
            <div id="video-library" class="tab-content">
                <div class="flex justify-between items-center mb-6">
                    <h2 class="text-xl font-bold">My Video Library</h2>
                    <div class="flex space-x-3">
                        <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 bg-white hover:bg-gray-50">
                            <i class="fas fa-filter mr-1"></i> Filter
                        </button>
                        <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 bg-white hover:bg-gray-50">
                            <i class="fas fa-sort mr-1"></i> Sort
                        </button>
                    </div>
                </div>
                
                <!-- Video Categories -->
                <div class="mb-6">
                    <div class="flex space-x-2 overflow-x-auto pb-2">
                        <button class="px-4 py-1 bg-blue-600 text-white rounded-full text-sm font-medium">
                            All Videos
                        </button>
                        <button class="px-4 py-1 bg-white border border-gray-300 rounded-full text-sm font-medium hover:bg-gray-50">
                            Physics
                        </button>
                        <button class="px-4 py-1 bg-white border border-gray-300 rounded-full text-sm font-medium hover:bg-gray-50">
                            Mathematics
                        </button>
                        <button class="px-4 py-1 bg-white border border-gray-300 rounded-full text-sm font-medium hover:bg-gray-50">
                            Chemistry
                        </button>
                        <button class="px-4 py-1 bg-white border border-gray-300 rounded-full text-sm font-medium hover:bg-gray-50">
                            Biology
                        </button>
                        <button class="px-4 py-1 bg-white border border-gray-300 rounded-full text-sm font-medium hover:bg-gray-50">
                            History
                        </button>
                        <button class="px-4 py-1 bg-white border border-gray-300 rounded-full text-sm font-medium hover:bg-gray-50">
                            Literature
                        </button>
                    </div>
                </div>
                
                <!-- Video Grid -->
                <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
                    <div class="card bg-white rounded-xl shadow-sm overflow-hidden hover:shadow-md transition-shadow">
                        <div class="relative">
                            <div class="bg-gray-100 aspect-video flex items-center justify-center">
                                <i class="fas fa-play-circle text-5xl text-gray-400"></i>
                            </div>
                            <div class="absolute top-2 right-2">
                                <span class="px-2 py-1 text-xs font-medium bg-blue-100 text-blue-800 rounded-full">Physics</span>
                            </div>
                            <div class="absolute bottom-2 left-2 flex items-center">
                                <i class="fas fa-clock text-xs text-gray-500 mr-1"></i>
                                <span class="text-xs text-gray-500">5:24</span>
                            </div>
                        </div>
                        <div class="p-4">
                            <h3 class="font-bold mb-1">Quantum Mechanics Explained</h3>
                            <p class="text-sm text-gray-500 mb-2">Created: 2 days ago</p>
                            <p class="text-sm text-gray-600 line-clamp-2">An animated explanation of wave-particle duality and the double-slit experiment, generated from your physics notes.</p>
                            <div class="mt-3 flex justify-between items-center">
                                <div class="flex space-x-2">
                                    <button class="p-1 text-gray-500 hover:text-blue-600">
                                        <i class="fas fa-play"></i>
                                    </button>
                                    <button class="p-1 text-gray-500 hover:text-green-600">
                                        <i class="fas fa-download"></i>
                                    </button>
                                    <button class="p-1 text-gray-500 hover:text-purple-600">
                                        <i class="fas fa-share-alt"></i>
                                    </button>
                                </div>
                                <button class="p-1 text-gray-500 hover:text-red-600">
                                    <i class="fas fa-trash"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <div class="card bg-white rounded-xl shadow-sm overflow-hidden hover:shadow-md transition-shadow">
                        <div class="relative">
                            <div class="bg-gray-100 aspect-video flex items-center justify-center">
                                <i class="fas fa-play-circle text-5xl text-gray-400"></i>
                            </div>
                            <div class="absolute top-2 right-2">
                                <span class="px-2 py-1 text-xs font-medium bg-purple-100 text-purple-800 rounded-full">Mathematics</span>
                            </div>
                            <div class="absolute bottom-2 left-2 flex items-center">
                                <i class="fas fa-clock text-xs text-gray-500 mr-1"></i>
                                <span class="text-xs text-gray-500">8:12</span>
                            </div>
                        </div>
                        <div class="p-4">
                            <h3 class="font-bold mb-1">Linear Algebra Basics</h3>
                            <p class="text-sm text-gray-500 mb-2">Created: 1 week ago</p>
                            <p class="text-sm text-gray-600 line-clamp-2">Visual guide to matrix operations and vector spaces, with animated examples from your lecture notes.</p>
                            <div class="mt-3 flex justify-between items-center">
                                <div class="flex space-x-2">
                                    <button class="p-1 text-gray-500 hover:text-blue-600">
                                        <i class="fas fa-play"></i>
                                    </button>
                                    <button class="p-1 text-gray-500 hover:text-green-600">
                                        <i class="fas fa-download"></i>
                                    </button>
                                    <button class="p-1 text-gray-500 hover:text-purple-600">
                                        <i class="fas fa-share-alt"></i>
                                    </button>
                                </div>
                                <button class="p-1 text-gray-500 hover:text-red-600">
                                    <i class="fas fa-trash"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <div class="card bg-white rounded-xl shadow-sm overflow-hidden hover:shadow-md transition-shadow">
                        <div class="relative">
                            <div class="bg-gray-100 aspect-video flex items-center justify-center">
                                <i class="fas fa-play-circle text-5xl text-gray-400"></i>
                            </div>
                            <div class="absolute top-2 right-2">
                                <span class="px-2 py-1 text-xs font-medium bg-green-100 text-green-800 rounded-full">Chemistry</span>
                            </div>
                            <div class="absolute bottom-2 left-2 flex items-center">
                                <i class="fas fa-clock text-xs text-gray-500 mr-1"></i>
                                <span class="text-xs text-gray-500">6:45</span>
                            </div>
                        </div>
                        <div class="p-4">
                            <h3 class="font-bold mb-1">Organic Reactions</h3>
                            <p class="text-sm text-gray-500 mb-2">Created: 2 weeks ago</p>
                            <p class="text-sm text-gray-600 line-clamp-2">Mechanisms of nucleophilic substitution and elimination reactions, with 3D molecular animations.</p>
                            <div class="mt-3 flex justify-between items-center">
                                <div class="flex space-x-2">
                                    <button class="p-1 text-gray-500 hover:text-blue-600">
                                        <i class="fas fa-play"></i>
                                    </button>
                                    <button class="p-1 text-gray-500 hover:text-green-600">
                                        <i class="fas fa-download"></i>
                                    </button>
                                    <button class="p-1 text-gray-500 hover:text-purple-600">
                                        <i class="fas fa-share-alt"></i>
                                    </button>
                                </div>
                                <button class="p-1 text-gray-500 hover:text-red-600">
                                    <i class="fas fa-trash"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <div class="card bg-white rounded-xl shadow-sm overflow-hidden hover:shadow-md transition-shadow">
                        <div class="relative">
                            <div class="bg-gray-100 aspect-video flex items-center justify-center">
                                <i class="fas fa-play-circle text-5xl text-gray-400"></i>
                            </div>
                            <div class="absolute top-2 right-2">
                                <span class="px-2 py-1 text-xs font-medium bg-yellow-100 text-yellow-800 rounded-full">Biology</span>
                            </div>
                            <div class="absolute bottom-2 left-2 flex items-center">
                                <i class="fas fa-clock text-xs text-gray-500 mr-1"></i>
                                <span class="text-xs text-gray-500">7:18</span>
                            </div>
                        </div>
                        <div class="p-4">
                            <h3 class="font-bold mb-1">Cell Division Process</h3>
                            <p class="text-sm text-gray-500 mb-2">Created: 3 weeks ago</p>
                            <p class="text-sm text-gray-600 line-clamp-2">Mitosis and meiosis explained with detailed animations and comparisons between the two processes.</p>
                            <div class="mt-3 flex justify-between items-center">
                                <div class="flex space-x-2">
                                    <button class="p-1 text-gray-500 hover:text-blue-600">
                                        <i class="fas fa-play"></i>
                                    </button>
                                    <button class="p-1 text-gray-500 hover:text-green-600">
                                        <i class="fas fa-download"></i>
                                    </button>
                                    <button class="p-1 text-gray-500 hover:text-purple-600">
                                        <i class="fas fa-share-alt"></i>
                                    </button>
                                </div>
                                <button class="p-1 text-gray-500 hover:text-red-600">
                                    <i class="fas fa-trash"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <div class="card bg-white rounded-xl shadow-sm overflow-hidden hover:shadow-md transition-shadow">
                        <div class="relative">
                            <div class="bg-gray-100 aspect-video flex items-center justify-center">
                                <i class="fas fa-play-circle text-5xl text-gray-400"></i>
                            </div>
                            <div class="absolute top-2 right-2">
                                <span class="px-2 py-1 text-xs font-medium bg-red-100 text-red-800 rounded-full">History</span>
                            </div>
                            <div class="absolute bottom-2 left-2 flex items-center">
                                <i class="fas fa-clock text-xs text-gray-500 mr-1"></i>
                                <span class="text-xs text-gray-500">9:32</span>
                            </div>
                        </div>
                        <div class="p-4">
                            <h3 class="font-bold mb-1">French Revolution</h3>
                            <p class="text-sm text-gray-500 mb-2">Created: 1 month ago</p>
                            <p class="text-sm text-gray-600 line-clamp-2">Timeline of key events from the Estates-General to the rise of Napoleon, with historical images and maps.</p>
                            <div class="mt-3 flex justify-between items-center">
                                <div class="flex space-x-2">
                                    <button class="p-1 text-gray-500 hover:text-blue-600">
                                        <i class="fas fa-play"></i>
                                    </button>
                                    <button class="p-1 text-gray-500 hover:text-green-600">
                                        <i class="fas fa-download"></i>
                                    </button>
                                    <button class="p-1 text-gray-500 hover:text-purple-600">
                                        <i class="fas fa-share-alt"></i>
                                    </button>
                                </div>
                                <button class="p-1 text-gray-500 hover:text-red-600">
                                    <i class="fas fa-trash"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                    
                    <div class="card bg-white rounded-xl shadow-sm overflow-hidden hover:shadow-md transition-shadow">
                        <div class="relative">
                            <div class="bg-gray-100 aspect-video flex items-center justify-center">
                                <i class="fas fa-play-circle text-5xl text-gray-400"></i>
                            </div>
                            <div class="absolute top-2 right-2">
                                <span class="px-2 py-1 text-xs font-medium bg-indigo-100 text-indigo-800 rounded-full">Literature</span>
                            </div>
                            <div class="absolute bottom-2 left-2 flex items-center">
                                <i class="fas fa-clock text-xs text-gray-500 mr-1"></i>
                                <span class="text-xs text-gray-500">4:56</span>
                            </div>
                        </div>
                        <div class="p-4">
                            <h3 class="font-bold mb-1">Shakespeare's Sonnets</h3>
                            <p class="text-sm text-gray-500 mb-2">Created: 1 month ago</p>
                            <p class="text-sm text-gray-600 line-clamp-2">Analysis of Sonnet 18 with visual annotations highlighting poetic devices and thematic elements.</p>
                            <div class="mt-3 flex justify-between items-center">
                                <div class="flex space-x-2">
                                    <button class="p-1 text-gray-500 hover:text-blue-600">
                                        <i class="fas fa-play"></i>
                                    </button>
                                    <button class="p-1 text-gray-500 hover:text-green-600">
                                        <i class="fas fa-download"></i>
                                    </button>
                                    <button class="p-1 text-gray-500 hover:text-purple-600">
                                        <i class="fas fa-share-alt"></i>
                                    </button>
                                </div>
                                <button class="p-1 text-gray-500 hover:text-red-600">
                                    <i class="fas fa-trash"></i>
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- Pagination -->
                <div class="mt-6 flex items-center justify-between">
                    <div class="text-sm text-gray-500">
                        Showing <span class="font-medium">1</span> to <span class="font-medium">6</span> of <span class="font-medium">18</span> videos
                    </div>
                    <div class="flex space-x-2">
                        <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 bg-white hover:bg-gray-50">
                            Previous
                        </button>
                        <button class="px-3 py-1 border border-blue-500 rounded-md text-white bg-blue-600 hover:bg-blue-700">
                            1
                        </button>
                        <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 bg-white hover:bg-gray-50">
                            2
                        </button>
                        <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 bg-white hover:bg-gray-50">
                            3
                        </button>
                        <button class="px-3 py-1 border border-gray-300 rounded-md text-gray-700 bg-white hover:bg-gray-50">
                            Next
                        </button>
                    </div>
                </div>
            </div>
        </main>
    </div>

    <script>
        // User dropdown toggle
        const userMenuButton = document.getElementById('user-menu-button');
        const userDropdown = document.getElementById('user-dropdown');
        
        userMenuButton.addEventListener('click', () => {
            userDropdown.classList.toggle('hidden');
        });
        
        // Close dropdown when clicking outside
        document.addEventListener('click', (event) => {
            if (!userMenuButton.contains(event.target) && !userDropdown.contains(event.target)) {
                userDropdown.classList.add('hidden');
            }
        });
        
        // Tab functionality
        function openTab(evt, tabName) {
            const tabContents = document.getElementsByClassName("tab-content");
            for (let i = 0; i < tabContents.length; i++) {
                tabContents[i].classList.remove("active");
            }
            
            const tabButtons = document.getElementsByClassName("tab-button");
            for (let i = 0; i < tabButtons.length; i++) {
                tabButtons[i].classList.remove("bg-blue-100", "text-blue-700");
                tabButtons[i].classList.add("text-gray-700", "hover:bg-gray-100");
            }
            
            document.getElementById(tabName).classList.add("active");
            evt.currentTarget.classList.remove("text-gray-700", "hover:bg-gray-100");
            evt.currentTarget.classList.add("bg-blue-100", "text-blue-700");
        }
        
        // PDF Upload functionality
        const uploadContainer = document.getElementById('upload-container');
        const pdfUpload = document.getElementById('pdf-upload');
        const fileInfo = document.getElementById('file-info');
        const fileName = document.getElementById('file-name');
        const removeFile = document.getElementById('remove-file');
        const generatePdfVideo = document.getElementById('generate-pdf-video');
        
        uploadContainer.addEventListener('click', () => {
            pdfUpload.click();
        });
        
        pdfUpload.addEventListener('change', (e) => {
            if (e.target.files.length > 0) {
                const file = e.target.files[0];
                fileName.textContent = file.name;
                fileInfo.classList.remove('hidden');
                generatePdfVideo.disabled = false;
                uploadContainer.classList.add('hidden');
            }
        });
        
        removeFile.addEventListener('click', (e) => {
            e.stopPropagation();
            pdfUpload.value = '';
            fileInfo.classList.add('hidden');
            generatePdfVideo.disabled = true;
            uploadContainer.classList.remove('hidden');
        });
        
        // Drag and drop for PDF upload
        uploadContainer.addEventListener('dragover', (e) => {
            e.preventDefault();
            uploadContainer.classList.add('dragover');
        });
        
        uploadContainer.addEventListener('dragleave', () => {
            uploadContainer.classList.remove('dragover');
        });
        
        uploadContainer.addEventListener('drop', (e) => {
            e.preventDefault();
            uploadContainer.classList.remove('dragover');
            
            if (e.dataTransfer.files.length > 0) {
                const file = e.dataTransfer.files[0];
                if (file.type === 'application/pdf') {
                    // For demo purposes, we'll just show the file name
                    fileName.textContent = file.name;
                    fileInfo.classList.remove('hidden');
                    generatePdfVideo.disabled = false;
                    uploadContainer.classList.add('hidden');
                } else {
                    alert('Please upload a PDF file.');
                }
            }
        });
        
        // Mobile sidebar toggle
        const mobileMenuButton = document.querySelector('.lg\\:hidden');
        const sidebar = document.querySelector('.sidebar');
        
        mobileMenuButton.addEventListener('click', () => {
            sidebar.classList.toggle('hidden');
        });
    </script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=MDesign28/dashboard" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>