-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
2595 lines (2251 loc) · 58.1 KB
/
styles.css
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
:root {
--storm: #1a1b26;
--storm-darker: #0f1125; /* Custom */
--night: #24283b;
--night-darker: #1f2335; /* Custom */
--surface: #414868;
--surface-darker: #3b4261; /* Custom */
--subtle: #565f89;
--subtle-lighter: #616ca1; /* Custom */
--subtle-lighter2: #787c99; /* Custom */
--fg: #c0caf5;
--white: #ffffff;
--purple: #bb9af7;
--blue: #7aa2f7;
--blue-light: #89b4ff; /* Custom */
--green: #9ece6a;
--red: #f7768e;
/* Alpha Variants */
--storm-alpha-30: rgba(26, 27, 38, 0.3);
--storm-alpha-40: rgba(26, 27, 38, 0.4);
--storm-alpha-50: rgba(26, 27, 38, 0.5);
--storm-alpha-70: rgba(26, 27, 38, 0.7);
--storm-alpha-80: rgba(26, 27, 38, 0.8);
--storm-alpha-85: rgba(26, 27, 38, 0.85);
--storm-alpha-90: rgba(26, 27, 38, 0.9);
--storm-darker-alpha-90: rgba(15, 17, 37, 0.9);
--surface-alpha-40: rgba(41, 46, 66, 0.4);
--surface-alpha-50: rgba(65, 72, 104, 0.5);
--surface-alpha-60: rgba(41, 46, 66, 0.6);
--surface-alpha-70: rgba(41, 46, 66, 0.7);
--surface-alpha-80: rgba(41, 46, 66, 0.8);
--surface-alpha-85: rgba(41, 46, 66, 0.85);
--surface-alpha-90: rgba(41, 46, 66, 0.9);
--surface-alpha-95: rgba(41, 46, 66, 0.95);
--purple-alpha-10: rgba(187, 154, 247, 0.1);
--purple-alpha-20: rgba(187, 154, 247, 0.2);
--purple-alpha-40: rgba(187, 154, 247, 0.4);
--purple-alpha-50: rgba(187, 154, 247, 0.5);
--purple-alpha-70: rgba(187, 154, 247, 0.7);
--purple-alpha-80: rgba(187, 154, 247, 0.8);
--blue-alpha-05: rgba(122, 162, 247, 0.05);
--blue-alpha-20: rgba(122, 162, 247, 0.2);
--blue-alpha-30: rgba(122, 162, 247, 0.3);
--blue-alpha-50: rgba(122, 162, 247, 0.5);
--green-alpha-20: rgba(158, 206, 106, 0.2);
--red-alpha-20: rgba(247, 118, 142, 0.2);
}
/* ===== RESET & BASE STYLES ===== */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body.sharp-borders .sharp,
body.sharp-borders .sharp:before,
body.sharp-borders .sharp:after {
border-radius: unset !important;
}
/* ===== LAYOUT & STRUCTURE ===== */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: url('img/Wallpaper-1.jpg') no-repeat center center fixed;
background-size: cover;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
/* Add class to disable main window shadow */
body.no-shadow .main-window {
box-shadow: none !important;
}
/* Add class to disable status bar shadow */
body.no-shadow .status-bar {
box-shadow: none !important;
}
.container {
display: flex;
flex-direction: column;
align-items: center;
position: relative;
}
.main-window {
width: 1200px;
height: 450px;
border-radius: 10px 10px 0 0;
overflow: hidden;
position: relative;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
/* Add pseudo-element for blurred background */
.main-window::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
/* Use CSS variables with fallbacks */
background-color: var(--window-bg-before, rgba(22, 22, 30, 0.1));
backdrop-filter: blur(var(--window-blur, 10px));
z-index: 0;
border-radius: 10px 10px 0 0;
/* Add transition for smooth color/opacity changes */
transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}
/* ===== NAVIGATION / TABS ===== */
.status-bar {
width: 1200px;
height: 32px;
background-color: var(--storm-alpha-85);
backdrop-filter: blur(10px);
border-radius: 0 0 10px 10px;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
position: relative;
top: 20px;
}
.tab-icons {
display: flex;
gap: 30px;
list-style-type: none;
}
.tab-icon {
color: var(--subtle);
font-size: 16px;
cursor: pointer;
transition: all 0.3s;
padding: 5px 10px;
display: flex;
align-items: center;
justify-content: center;
}
.tab-icon:hover {
/* color: var(--blue); */
color: var(--purple);
}
.tab-icon.active {
/* color: var(--purple); */
color: var(--blue);
border-bottom: none;
position: relative;
}
.tab-icon.active::after {
content: '';
position: absolute;
height: 2px;
background-color: var(--purple);
background-color: var(--blue);
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 100%;
}
.tab-icon[data-tab="tab1"].active::after {
transform: translateX(-55%);
width: 23px;
}
.tab-icon[data-tab="tab2"].active::after {
transform: translateX(-55%);
width: 25px;
}
/* Tab 3 (III) - wider with more offset */
.tab-icon[data-tab="tab3"].active::after {
transform: translateX(-54%);
width: 30px;
}
/* Roman numeral styling */
.roman-numeral {
display: inline-block;
transform: rotate(90deg);
font-family: 'Segoe UI', Arial, sans-serif;
font-weight: 300;
font-size: 20px;
letter-spacing: 1px;
}
/* Tab content styles */
.tab-content {
position: absolute;
width: 100%;
height: 100%;
padding: 40px;
transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
display: block;
z-index: 1;
}
/* Initial positions */
#tab1 { transform: translateX(0); }
#tab2 { transform: translateX(100%); }
#tab3 { transform: translateX(100%); }
.tab-content.left {
transform: translateX(-100%) !important;
}
.tab-content.active {
transform: translateX(0) !important;
z-index: 2;
}
.tab-content.right {
transform: translateX(100%) !important;
}
.tab-content h2 {
margin-bottom: 20px;
color: var(--fg);
font-size: 28px;
}
.tab-content p {
color: var(--fg);
font-size: 16px;
line-height: 1.6;
}
/* ===== SHORTCUTS CONTAINER LAYOUT ===== */
.shortcuts-container {
display: flex;
flex-direction: column;
gap: 20px;
margin-top: 10px;
position: relative;
height: calc(100% - 20px);
width: 100%;
align-items: center;
}
.shortcuts-left {
flex: 1;
display: flex;
flex-direction: column;
overflow-y: auto;
max-height: 370px; /* Increased height for better space usage */
transition: flex 0.3s ease;
padding-right: 3px; /* Add padding for scrollbar */
margin: 0 auto; /* Center the container */
width: 100%; /* Use full width */
max-width: 1100px; /* Slightly increased max width */
align-items: center;
}
/* Hide shortcuts-right as we no longer need categories */
.shortcuts-right {
display: none;
}
/* Add styles for empty sections */
.empty-container {
display: none !important; /* Hide empty containers */
}
/* When shortcuts-left is empty, center the categories */
.shortcuts-container .empty-container + .shortcuts-right {
flex: 2; /* Take full width when left side is empty/hidden */
margin: 0 auto; /* Center the container */
max-width: 800px; /* Limit maximum width for better appearance */
}
/* When shortcuts-left is empty, style the categories container for better centering */
.shortcuts-container .empty-container + .shortcuts-right #categories-container {
justify-content: center; /* Center the grid items */
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Flexible columns */
margin: 0 auto; /* Center the grid */
max-width: 100%; /* Use available width */
}
/* When shortcuts-right is empty, let shortcuts-left take full width */
.shortcuts-container .shortcuts-left:not(.empty-container) + .empty-container {
display: none;
}
.shortcuts-container .shortcuts-left:not(.empty-container) + .empty-container ~ .shortcuts-left {
flex: 2; /* Take full width when right side is empty/hidden */
max-width: 900px; /* Limit maximum width */
margin: 0 auto; /* Center in container */
}
/* Section titles */
.section-title {
color: var(--purple);
font-size: 18px;
margin-bottom: 15px;
font-weight: 500;
border-bottom: 1px solid var(--blue-alpha-20);
padding-bottom: 5px;
}
/* ===== SCROLLBAR STYLING ===== */
/* Make scrollbars thinner and add space */
.shortcuts-left::-webkit-scrollbar,
.shortcuts-right::-webkit-scrollbar,
#notes-area::-webkit-scrollbar,
#todo-list::-webkit-scrollbar {
width: 5px; /* Thinner scrollbar (was 8px) */
}
/* Hide scrollbars by default in tab1 containers */
.shortcuts-left,
.shortcuts-right {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
/* Hide WebKit scrollbars by default */
.shortcuts-left::-webkit-scrollbar,
.shortcuts-right::-webkit-scrollbar {
display: none;
}
/* Show scrollbars on hover */
.shortcuts-left:hover::-webkit-scrollbar,
.shortcuts-right:hover::-webkit-scrollbar {
display: block;
}
/* Restore Firefox scrollbar on hover */
.shortcuts-left:hover,
.shortcuts-right:hover {
scrollbar-width: thin;
}
.shortcuts-left::-webkit-scrollbar-track,
.shortcuts-right::-webkit-scrollbar-track,
#notes-area::-webkit-scrollbar-track,
#todo-list::-webkit-scrollbar-track {
background-color: var(--storm-alpha-30);
border-radius: 4px;
margin: 3px; /* Add margin to create separation */
}
.shortcuts-left::-webkit-scrollbar-thumb,
.shortcuts-right::-webkit-scrollbar-thumb,
#notes-area::-webkit-scrollbar-thumb,
#todo-list::-webkit-scrollbar-thumb {
background-color: var(--blue-alpha-30);
border-radius: 4px;
border: 1px solid transparent; /* Create a border for spacing */
background-clip: padding-box; /* Ensure the background doesn't extend into the border */
}
/* Firefox scrollbar styling */
.shortcuts-left,
.shortcuts-right,
#notes-area,
#todo-list {
scrollbar-width: thin; /* Use the thin preset in Firefox */
scrollbar-color: var(--blue-alpha-30) var(--storm-alpha-30);
}
/* ===== SHORTCUTS GRID ===== */
#shortcuts-grid {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 25px;
width: 100%;
min-height: 50px;
margin: 0 auto;
padding: 2% 15px; /* Reduced padding from 10% to 2% */
max-width: 1100px;
}
/* Add styling for rows within the grid */
#shortcuts-grid .row {
display: flex;
justify-content: center;
gap: inherit; /* Use the same gap as the parent by default */
margin-bottom: 15px; /* Reduced from 25px to 15px */
width: 100%;
}
/* Make second row items closer to each other */
#shortcuts-grid .row:nth-child(2) {
gap: 15px; /* Smaller gap for second row */
}
/* For the case when there's only one row, don't add bottom margin */
#shortcuts-grid .row:only-child {
margin-bottom: 0;
}
.shortcut-item {
background-color: var(--storm-alpha-70);
border-radius: 12px; /* Increased radius for softer look */
padding: 0;
text-align: center;
transition: all 0.3s ease, transform 0.2s ease-out;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
position: relative;
width: 160px; /* Fixed width for each shortcut */
height: 140px; /* Reduced from 200px to 160px for better fit */
display: block; /* Change from flex to block for aspect ratio */
flex: 0 0 115px; /* Don't grow, don't shrink, fixed width */
}
/* Enhanced hover effect for shortcuts */
.shortcut-item:hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
/* Add a subtle glow effect around the icon on hover */
.shortcut-item:hover .shortcut-icon {
background-color: var(--purple-alpha-20);
box-shadow: 0 0 10px var(--purple-alpha-40);
}
/* Change name background on hover for better visibility */
.shortcut-item:hover .shortcut-name {
background-color: var(--surface-alpha-95);
color: var(--white);
}
/* In edit mode, make the hover effect less pronounced to avoid confusion with drag */
body.edit-mode .shortcut-item:hover {
transform: translateY(-2px);
}
/* Special case for category shortcuts - make hover effect more subtle */
.category-grid .shortcut-item:hover {
transform: translateY(-1px);
background-color: var(--surface-alpha-80);
}
/* Make shortcuts even smaller when we have 2 rows */
#shortcuts-grid:has(.row:nth-child(2)) .shortcut-item {
height: 140px; /* Even smaller when we have two rows */
}
/* When we have more than 8 shortcuts, make them even smaller */
#shortcuts-grid:has(.shortcut-item:nth-child(n+9)) .shortcut-item {
height: 130px;
width: 150px;
flex: 0 0 150px;
}
/* Remove or comment out the grid-specific selectors that are no longer needed */
/*
#shortcuts-grid:has(.shortcut-item:first-child:last-child) {
grid-template-columns: minmax(130px, 160px);
max-width: 200px;
}
*/
/* ...remove other grid-specific styles... */
/* Update helper classes to work with flexbox */
.grid-col-1 {
max-width: 200px !important;
}
.grid-col-2 {
max-width: 345px !important; /* Two items + gap (160*2 + 25) */
}
.grid-col-3 {
max-width: 530px !important; /* Three items + gaps (160*3 + 25*2) */
}
.grid-col-4 {
max-width: 715px !important; /* Four items + gaps (160*4 + 25*3) */
}
.grid-col-5 {
max-width: 900px !important; /* Five items + gaps (160*5 + 25*4) */
}
.grid-col-6 {
max-width: 1085px !important; /* Six items + gaps (160*6 + 25*5) */
}
/* Media query for smaller screens - adjust columns for better visibility */
@media (max-width: 1200px) {
#shortcuts-grid {
gap: 20px;
}
/* Reduce max columns to 5 on medium screens */
#shortcuts-grid:has(.shortcut-item:first-child:nth-last-child(n+6)) {
grid-template-columns: repeat(5, minmax(120px, 140px));
max-width: 800px;
}
.shortcut-item {
max-width: 140px;
}
}
@media (max-width: 900px) {
#shortcuts-grid {
gap: 15px;
}
/* Reduce max columns to 4 on smaller screens */
#shortcuts-grid:has(.shortcut-item:first-child:nth-last-child(n+5)) {
grid-template-columns: repeat(4, minmax(110px, 130px));
max-width: 600px;
}
.shortcut-item {
max-width: 130px;
}
}
@media (max-width: 600px) {
#shortcuts-grid {
gap: 10px;
}
/* Reduce max columns to 3 on very small screens */
#shortcuts-grid:has(.shortcut-item:first-child:nth-last-child(n+4)) {
grid-template-columns: repeat(3, minmax(100px, 120px));
max-width: 400px;
}
.shortcut-item {
max-width: 120px;
}
}
.shortcut-link {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between; /* Changed from center to space-between to push name to bottom */
text-decoration: none;
cursor: pointer;
width: 100%;
height: 100%;
color: inherit;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
padding: 15px 15px 0 15px; /* Remove bottom padding to make room for name section */
}
.shortcut-name {
color: var(--fg);
font-size: 15px;
font-weight: 500;
word-break: break-word;
text-align: center;
background-color: var(--surface-alpha-85);
width: 100%; /* Make it full width of container */
padding: 10px 5px; /* Add padding for better spacing */
border-radius: 0 0 12px 12px; /* Round bottom corners to match parent */
margin-top: auto; /* Push to bottom */
position: absolute; /* Position at bottom of container */
bottom: 0;
left: 0;
right: 0;
max-height: 40%; /* Limit height to prevent overflow */
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}
/* Remove the divider line since we now have background color separation */
.shortcut-name:after {
display: none; /* Hide the divider */
}
.shortcut-url {
color: var(--subtle);
font-size: 12px;
margin-top: 5px;
word-break: break-word;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
position: relative;
z-index: 2; /* Ensure it appears above the name background */
}
.shortcut-icon {
width: 78px;
height: 78px;
display: flex;
align-items: center;
justify-content: center;
color: var(--purple);
margin-bottom: 8px;
/* margin-top: 5px; */
background-color: var(--purple-alpha-10);
border-radius: 10px;
padding: 6px;
position: relative;
z-index: 1;
}
.shortcut-icon img {
width: 100%;
height: 100%;
object-fit: contain;
border-radius: 10px;
}
/* Adjust edit button positioning to ensure it's not covered by the name background */
.edit-shortcut {
position: absolute;
top: 10px;
color: var(--subtle-alpha-78); /* Assuming rgba(86, 95, 137, 0.78) is intended subtle */
font-size: 14px;
z-index: 3; /* Ensure it stays on top */
}
/* ===== CATEGORIES STYLING ===== */
#categories-container {
width: 100%;
min-height: 10px;
display: grid;
/* Replace fixed 3-column layout with a responsive layout */
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
grid-auto-rows: min-content;
grid-gap: 15px;
overflow-y: auto;
}
/* Special case for single category - make it wider */
#categories-container:has(.category:only-child) {
grid-template-columns: 1fr; /* Single column when only one category */
max-width: 80%; /* Limit width to avoid being too stretched */
margin: 0 auto; /* Center it */
}
/* Special case for exactly two categories - make them equal width */
#categories-container:has(.category:first-child:nth-last-child(2)) {
grid-template-columns: repeat(2, 1fr); /* Two equal columns */
margin: 0 auto; /* Center it */
}
/* For 3+ categories, change to 2-column layout instead of 3 */
#categories-container:has(.category:first-child:nth-last-child(n+3)) {
grid-template-columns: repeat(2, 1fr); /* Changed from 3 to 2 columns */
}
/* Ensure categories have enough space to show content well */
.category {
background-color: var(--storm-alpha-30);
border-radius: 8px;
padding-left: 10px;
padding-right: 10px;
max-width: 95%;
overflow: hidden;
min-height: 80px;
height: auto;
display: flex;
flex-direction: column;
min-width: 245px; /* Ensure minimum width for readability */
padding-bottom: 40px;
margin-right: 5px; /* Add margin to prevent collision with scrollbar */
}
.category-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 5px;
border-bottom: 1px solid var(--blue-alpha-20);
padding-bottom: 3px;
flex-shrink: 0;
}
/* Add consistent styling for category action buttons */
.category-actions {
display: flex;
gap: 5px;
opacity: 1; /* Hide by default */
transition: opacity 0.2s ease; /* Smooth transition */
}
/* Show category actions only on hover */
.category:hover .category-actions {
opacity: 1;
}
.category-action {
height: 18px;
width: 18px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
background-color: var(--storm-alpha-40);
color: var(--subtle);
font-size: 10px;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.category-action:hover {
background-color: var(--surface-alpha-90);
color: var(--blue);
transform: scale(1.1);
}
.category-title {
color: var(--purple);
font-size: 16px;
font-weight: 500;
display: flex;
align-items: center;
gap: 8px;
}
/* Category grid - 6 items per column layout */
.category-grid {
display: grid;
grid-auto-flow: column;
grid-template-rows: repeat(6, 30px);
grid-auto-columns: minmax(65px, 1fr);
gap: 10px;
overflow-x: auto;
overflow-y: hidden;
padding-bottom: 15px;
min-height: 30px;
/* Hide scrollbar by default (cross-browser) */
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
/* Hide scrollbar for Chrome, Safari and Opera */
.category-grid::-webkit-scrollbar {
width: 5px;
height: 5px;
display: none; /* Hidden by default */
}
/* Show scrollbar only on category hover */
.category:hover .category-grid::-webkit-scrollbar {
display: block; /* Show on hover */
}
/* Restore Firefox scrollbar on hover */
.category:hover .category-grid {
scrollbar-width: thin; /* Show on hover */
}
/* Styling for category grid scrollbar when visible */
.category-grid::-webkit-scrollbar-track {
background-color: var(--storm-alpha-30);
border-radius: 4px;
}
.category-grid::-webkit-scrollbar-thumb {
background-color: var(--blue-alpha-30);
border-radius: 4px;
}
.category-grid::-webkit-scrollbar-thumb:hover {
background-color: var(--blue-alpha-50);
}
/* ===== CATEGORY SHORTCUTS ===== */
.category-grid .shortcut-item {
width: 100%;
height: 30px;
display: flex;
align-items: center;
justify-content: center; /* Center content horizontally */
padding: 0 5px;
margin-bottom: 0;
}
.category-grid .shortcut-name {
font-size: 12px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
text-align: center;
position: relative; /* Not absolute in category view */
border-radius: 5px; /* Smaller radius for category items */
height: 100%;
padding: 0 8px;
background-color: var(--surface-alpha-70);
max-height: none; /* Allow normal height */
margin-top: 0; /* Remove auto margin */
}
/* Adjust category link styling */
.category-grid .shortcut-link {
flex-direction: row;
justify-content: center;
gap: 8px;
position: relative;
overflow: hidden;
padding: 0 5px; /* Adjust padding */
}
/* Add URL text display for category shortcuts */
.category-grid .shortcut-item:hover .shortcut-url {
display: block;
position: absolute;
bottom: -15px;
left: 0;
right: 0;
font-size: 10px;
color: var(--blue);
background-color: var(--storm-darker-alpha-90);
padding: 2px 4px;
border-radius: 2px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
text-align: center;
z-index: 5;
}
/* ===== BUTTONS AND CONTROLS ===== */
.settings-btn, .add-shortcut-btn {
height: 30px;
width: 30px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
background-color: var(--storm-alpha-70);
color: var(--subtle);
font-size: 14px;
cursor: pointer;
transition: all 0.3s ease, opacity 0.5s ease;
position: fixed;
bottom: 20px;
right: 20px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
z-index: 1000; /* Ensure it's above other elements */
opacity: 0; /* Hide by default */
}
.settings-btn {
z-index: 100;
display: none;
}
.add-shortcut-btn {
z-index: 1000;
}
/* Apply the same hiding behavior to other bottom buttons */
.tab2-settings-btn, .bg-config-btn {
transition: all 0.3s ease, opacity 0.5s ease;
opacity: 0; /* Hide by default */
}
/* Show buttons on hover */
.buttons-visible .settings-btn,
.buttons-visible .add-shortcut-btn,
.buttons-visible .tab2-settings-btn,
.buttons-visible .bg-config-btn {
opacity: 0.7;
}
/* Standard hover effects for all bottom buttons */
.settings-btn:hover,
.add-shortcut-btn:hover,
.tab2-settings-btn:hover,
.bg-config-btn:hover {
background-color: var(--surface-alpha-90);
color: var(--blue);
opacity: 1;
transform: scale(1.1);
}
/* ===== ADD DROPDOWN ===== */
.add-dropdown {
position: absolute;
bottom: 40px;
right: 0;
background-color: var(--storm-alpha-90);
border-radius: 5px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
width: 150px;
display: none;
overflow: hidden;
z-index: 1001;
}
/* Force dropdown to stay visible when active */
.add-dropdown.active {
display: block !important;
}
/* Override hover behavior to prevent flickering */
.add-shortcut-btn:hover .add-dropdown:not(.active) {
display: none;
}
.add-shortcut-btn .add-dropdown.active {
display: block;
}
.add-shortcut-btn::after {
content: '';
position: absolute;
height: 10px;
width: 150px;
bottom: 30px;
right: 0;
background-color: transparent;
}
.add-shortcut-btn:hover .add-dropdown {
display: block;
}
.add-option {
padding: 10px 15px;
color: var(--fg);
font-size: 14px;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 8px;
justify-content: space-between;
position: relative;
z-index: 1003;
}
.option-counter {
margin-left: auto;
font-size: 12px;
color: var(--subtle);
padding: 2px 6px;
background-color: var(--surface-alpha-50); /* Using surface-alpha-50 as it's close */
border-radius: 10px;
}
.add-option:hover {
background-color: var(--surface-alpha-80);
color: var(--blue);
}
/* ===== FORMS STYLING ===== */
.shortcut-form, .category-form, .settings-form {
background-color: var(--storm-alpha-90);
border-radius: 10px;
padding: 20px;
width: 100%;
max-width: 350px;
margin: 0 auto;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
display: none;
position: fixed;
z-index: 200;
animation: fadeIn 0.3s ease-in-out;
}
.shortcut-form, .category-form {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.settings-form {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.shortcut-form.active, .category-form.active, .settings-form.active {
display: block;