-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfriends.html
6994 lines (6061 loc) · 316 KB
/
friends.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Friends | TaskMaster AI</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.12/cropper.min.css" rel="stylesheet"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.12/cropper.min.js"></script>
<script src="https://www.gstatic.com/firebasejs/9.9.1/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/9.9.1/firebase-firestore.js"></script>
<script src="theme.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@joeattardi/emoji-button@4.6.2/dist/emoji-button.min.js"></script>
<style>
:root {
--primary-color: #6C63FF;
--secondary-color: #3F3D56;
--accent-color: #F50057;
--text-color: #F8F9FA;
--bg-color: #121212;
--card-bg: #1E1E1E;
--glass-bg: rgba(255, 255, 255, 0.1); /* Frosted Glass Effect */
--hover-bg: rgba(255, 255, 255, 0.1); /* Slightly Darker Hover Background */
--border-radius: 15px;
--svg-size: 50px; /* Default size */
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Poppins', sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: var(--bg-color); /* Solid dark background */
backdrop-filter: blur(10px); /* Optional: keeps the frosted glass effect */
}
body.night-mode {
background-color: #333333;
primary-color: #121212; /* Darker background */
secondary-color: #1E1E1E; /* Darker grayish background */
accent-color: #009bf5; /* Adjust if necessary */
text-color: #e0e0e0; /* Lighter text color for dark mode */
--bg-color: rgba(18, 18, 18, 0.8); /* Darker background */
--card-bg: #1E1E1E;
--glass-bg: rgba(18, 18, 18, 0.8); /* Darker frosted glass effect */
--hover-bg: rgba(30, 30, 30, 0.9); /* Darker hover background */
}
}
.menu-item {
display: flex;
align-items: center;
cursor: pointer;
padding: 8px 16px;
border-radius: 4px;
transition: background-color 0.3s;
}
.menu-item:hover {
}
.theme-icon {
margin-right: 8px;
display: flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
}
.theme-icon.active {
animation: rotate 0.5s ease-in-out;
}
@keyframes rotate {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.container {
display: flex;
height: 100vh;
}
.sidebar {
width: 250px;
min-width: 250px; /* Ensure minimum width is always maintained */
max-width: 250px; /* Ensure maximum width is always maintained */
background: inherit;
padding: 20px;
display: flex;
flex-direction: column;
height: 100%;
border-radius: var(--border-radius);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
backdrop-filter: blur(10px);
}
.sidebar h1 {
font-size: 24px;
margin-bottom: 20px;
}
.sidebar ul {
list-style: none;
padding: 0;
}
.sidebar ul li {
margin-bottom: 20px;
}
.sidebar ul li a {
text-decoration: none;
color: var(--secondary-color);
font-size: 18px;
transition: color 0.3s ease;
}
.sidebar ul li a:hover {
color: var(--primary-color);
}
.logo {
font-size: 1.4rem;
font-weight: 700;
color: var(--primary-color);
display: flex;
align-items: center;
margin-bottom: 30px;
}
.logo svg {
width: 30px;
height: 30px;
margin-right: 10px;
}
.menu-item {
margin-bottom: 15px;
color: var(--text-color);
cursor: pointer;
transition: color 0.3s ease;
display: flex;
align-items: center;
transition: transform 0.3s ease;
}
.menu-item svg {
width: 20px;
height: 20px;
margin-right: 10px;
}
.menu-item:hover {
transform: scale(1.1);
}
.upgrade-btn {
background: linear-gradient(45deg, var(--accent-color), #FF1493);
color: var(--text-color);
border: none;
padding: 10px 20px;
border-radius: 50px;
cursor: pointer;
margin-top: 20px;
font-weight: 600;
display: flex;
align-items: center;
transition: background-color 0.3s ease, transform 0.3s ease;
backdrop-filter: blur(10px);
background-color: rgba(255, 255, 255, 0.1);
}
.upgrade-btn svg {
width: 20px;
height: 20px;
margin-right: 10px;
}
.upgrade-btn:hover {
transform: scale(1.05);
}
.main-content {
flex-grow: 1;
padding: 20px;
overflow-y: auto;
background: transparent;
}
.dashboard-header {
display: flex;
align-items: center;
margin-bottom: 30px;
}
.dashboard-header h1 {
display: flex;
align-items: center;
font-size: 2.5rem; /* Adjust as needed */
}
.dashboard-header svg {
width: var(--svg-size); /* Use the variable for size */
height: var(--svg-size); /* Maintain aspect ratio */
margin-left: 8px; /* Adjust space between text and icon */
}
.friends-list, .add-friend, .chat-window {
margin-bottom: 20px; /* Reduced margin for more compact spacing */
}
.friends-list h2, .chat-window h2 {
font-size: 24px;
font-weight: 500;
margin-bottom: 15px;
}
.unfriend-button {
padding: 5px;
background-color: var(--accent-color);
color: #fff;
border: none;
border-radius: var(--border-radius);
cursor: pointer;
font-size: 14px;
transition: background-color 0.3s;
margin-left: 10px; /* Space between name and button */
display: flex;
align-items: center;
justify-content: center;
}
.unfriend-button:hover {
background-color: #c0392b;
}
.unfriend-button svg {
width: 20px; /* Adjust size as needed */
height: 20px; /* Adjust size as needed */
}
#onlineFriends {
list-style: none;
padding: 0;
margin: 0;
}
#onlineFriends li {
background: var(--glass-bg);
padding: 10px;
margin-bottom: 10px;
border-radius: var(--border-radius);
cursor: pointer;
transition: background 0.3s;
display: flex;
justify-content: space-between; /* Ensure the friend name and unfriend button are spaced out */
align-items: center; /* Align items in the center vertically */
}
#onlineFriends li:hover {
background: var(--hover-bg);
}
#pinnedFriends {
list-style: none;
padding: 0;
margin: 0;
}
#pinnedFriends .friend-item {
background: var(--glass-bg);
padding: 10px;
margin-bottom: 10px;
border-radius: var(--border-radius);
cursor: pointer;
transition: background 0.3s;
display: flex;
justify-content: space-between; /* Ensure the friend name and buttons are spaced out */
align-items: center; /* Align items in the center vertically */
}
#pinnedFriends .friend-item:hover {
background: var(--hover-bg);
}
.friend-name {
flex-grow: 1; /* Make the friend name take up remaining space */
margin-right: 10px; /* Add some spacing between the name and the button */
}
.add-friend {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 20px;
justify-content: center;
margin-bottom: -5px; /* Adjusted margin to move it down */
}
.add-friend input[type="text"] {
padding: 10px;
border: 3px solid var(--primary-color);
border-radius: var(--border-radius);
width: 380px;
box-sizing: border-box;
font-size: 16px;
background-color: var(--card-bg);
color: var(--text-color);
margin-top: -5px; /* Adjust to move down slightly */
}
.add-friend button {
background-color: var(--primary-color);
border: none;
padding: 10px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
width: 80px;
height: 40px;
border-radius: 20px;
transition: background-color 0.3s;
margin-top: -5px; /* Adjust to move down slightly */
}
.add-friend button:hover {
background-color: #3b7bce;
}
.add-friend button svg {
width: 30px;
height: 30px;
fill: #ffffff;
margin: 0;
}
.message-container {
position: relative; /* Allows absolute positioning of child elements */
padding: 5px;
margin-bottom: 10px; /* Adjust as needed */
}
.add-friend-icon-button {
padding: 0 !important; /* Ensure no padding is applied */
background-color: var(--primary-color);
border: none;
border-radius: 50%;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
position: absolute;
right: -90px;
top: 50%;
transform: translateY(-50%);
z-index: 1;
}
.add-friend-icon-button svg {
width: 24px;
height: 24px;
fill: none; /* Set fill to none */
stroke: #ffffff; /* Set stroke color to white */
}
/* Ensures the chat window is styled correctly */
.chat-window {
display: flex;
flex-direction: column;
height: calc(100vh - 200px); /* Adjust height as needed */
background: var(--glass-bg);
border-radius: var(--border-radius);
padding: 15px;
max-height: 600px; /* Limits the height of the chat window */
position: relative; /* Allows absolute positioning of child elements */
}
/* Style for the no-chat-selected message */
.no-chat-message {
display: flex;
justify-content: center;
align-items: center;
padding-top: -50px; /* Moves the message slightly upwards */
height: calc(100vh + 50px); /* Adjust height as needed */
color: white; /* Change text color to primary */
font-size: 2.5rem;
text-align: center;
background: rgba(255, 255, 255, 0.1); /* Keeps the glass background */
border-radius: var(--border-radius);
margin-bottom: 15px;
margin-top: -25px;
}
/* SVG size and color */
.no-chat-message .chat-svg {
width: 2.5rem; /* Same size as the text */
height: 2.5rem;
margin-right: 10px;
fill: white;
}
/* Style for the no-chat-selected message */
.no-chat-message {
display: flex;
flex-direction: column; /* Make the content stack vertically */
justify-content: center;
align-items: center;
padding-top: -50px;
height: calc(100vh + 50px); /* Adjust height as needed */
color: white; /* Change text color to primary */
font-size: 2.5rem;
text-align: center;
background: rgba(255, 255, 255, 0.1); /* Keeps the glass background */
border-radius: var(--border-radius);
margin-bottom: 15px;
margin-top: -25px;
}
/* SVG size and color */
.no-chat-message .chat-svg {
width: 2.5rem; /* Same size as the text */
height: 2.5rem;
margin-right: 900px;
margin-bottom: -50px;
fill: white;
}
/* Need help section */
.need-help {
display: flex;
align-items: center;
margin-top: 5px;
color: var(--primary-color);
font-size: 1.2rem;
cursor: pointer; /* Pointer for the whole section */
transition: color 0.3s ease, transform 0.3s ease; /* Smooth transition for text and icon */
}
/* SVG for the help icon */
.need-help .help-svg {
width: 1.5rem;
height: 1.5rem;
margin-right: 5px;
stroke: var(--primary-color);
transition: stroke 0.3s ease, transform 0.3s ease; /* Smooth transition */
}
/* Hover effect for the whole Need help section */
.need-help:hover {
color: var(--primary-color); /* Change text color to the accent color */
transform: scale(1.1); /* Slightly enlarge the icon on hover */
}
.need-help:hover .help-svg {
stroke: var(--primary-color); /* Change SVG color to the accent color */
transform: scale(1.1); /* Slightly enlarge the icon on hover */
}
#chatMessages {
flex: 1;
overflow-y: auto;
padding-right: 10px;
margin-bottom: 15px;
/* Provides the main container for chat messages with scrolling enabled */
}
#chatMessages .message {
max-width: 70%;
padding: 10px;
border-radius: 10px;
margin-bottom: 10px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
clear: both;
position: relative; /* Allows positioning of the reaction relative to the message */
/* Styles for individual message bubbles, including padding, border radius, and shadows */
}
#chatMessages .message.sent {
background: var(--primary-color);
color: #fff;
align-self: flex-end;
float: right;
text-align: right;
border-top-right-radius: 0;
/* Styles for messages sent by the user, including background color and text alignment */
}
#chatMessages .message.received {
background: var(--accent-color);
color: var(--text-color);
align-self: flex-start;
float: left;
text-align: left;
border-top-left-radius: 0;
/* Styles for messages received from others, including background color and text alignment */
}
/* Container for the reply count and text */
.message-container-2 {
position: relative; /* Allows positioning of child elements */
padding: 5px;
margin-bottom: 10px; /* Adjust as needed */
}
/* Reply count styling */
.reply-count {
display: inline; /* Ensure text is displayed inline */
font-size: 12px;
color: #fff; /* Make the text color white */
text-align: center; /* Center text within the container */
margin-top: 5px; /* Space from the message bubble */
position: absolute; /* Position it absolutely relative to the container */
left: 0; /* Align to the left */
bottom: -30px; /* Position it below the message bubble */
width: 100%; /* Full width of the container */
text-align: center; /* Center the text within the width */
white-space: nowrap; /* Prevent text from wrapping */
}
#chatMessages .message-reaction {
position: absolute;
top: -8px; /* Slightly raised above the message bubble */
right: -10px; /* Positioned on the right side of the message bubble */
font-size: 18px;
background-color: var(--primary-color); /* Primary color background */
color: #fff; /* White color for the reaction icon */
border-radius: 50%; /* Makes the background a circle */
padding: 5px; /* Adds padding inside the circle */
width: 24px; /* Set width for a perfect circle */
height: 24px; /* Set height for a perfect circle */
display: flex; /* Align icon inside the circle */
align-items: center; /* Center the icon vertically */
justify-content: center; /* Center the icon horizontally */
/* Styles for the reaction icon, with primary color background and circular shape */
}
/* Input and button container styling */
.chat-input-container {
display: flex;
align-items: center;
margin-bottom: 15px;
position: relative; /* Ensures emoji picker is positioned relative to this container */
}
.chat-input-container input {
flex: 1;
padding: 10px;
border: 1px solid #ccc;
border-radius: var(--border-radius);
font-size: 16px;
}
.chat-input-container button {
background-color: var(--primary-color); /* Adjust as needed */
border: none;
border-radius: var(--border-radius);
padding: 8px; /* Adjust padding as needed */
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background-color 0.3s;
margin-left: 1px; /* Space between input and button */
width: 40px; /* Adjust width as needed */
height: 40px; /* Adjust height as needed */
}
.chat-input-container button:hover {
background-color: #3b7bce; /* Adjust hover color as needed */
}
.chat-input-container button svg {
width: 24px; /* Adjust size as needed */
height: 24px; /* Adjust size as needed */
stroke: #ffffff; /* Ensures the SVG stroke color is white */
}
#chatInput {
padding: 10px;
border: 3px solid var(--primary-color);
border-radius: var(--border-radius);
font-size: 16px;
flex: 1;
box-sizing: border-box;
background-color: var(--card-bg);
color: var(--text-color);
margin-right: 10px;
}
.chat-window button {
padding: 10px;
background-color: var(--primary-color);
color: #fff;
border: none;
border-radius: var(--border-radius);
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s;
width: 80px;
}
.chat-window button:hover {
background-color: #3b7bce;
}
/* Common styles for emojis */
.emoji-list span, .emoji-picker span {
font-size: 24px; /* Emoji size */
cursor: pointer; /* Pointer cursor on hover */
transition: transform 0.3s ease; /* Smooth scaling effect */
display: inline-block; /* Ensure scaling effect is applied */
margin: 4px; /* Add margin for spacing between emojis */
}
/* Pop-up effect on hover for both emoji list and picker */
.emoji-list span:hover, .emoji-picker span:hover {
transform: scale(1.2); /* Scale up on hover */
}
/* Emoji dropdown styling */
.emoji-dropdown {
background-color: var(--primary-color); /* Background color */
border: none !important; /* Remove any border */
padding: 0 !important; /* No padding */
cursor: pointer !important; /* Pointer cursor */
border-radius: 50% !important; /* Round shape */
width: 40px !important; /* Fixed width */
height: 40px !important; /* Fixed height */
display: flex !important; /* Flexbox layout */
align-items: center !important; /* Center vertically */
justify-content: center !important; /* Center horizontally */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important; /* Optional shadow */
transition: background-color 0.3s, box-shadow 0.3s !important; /* Smooth transitions */
}
.emoji-dropdown:hover {
background-color: #3b7bce; /* Change color on hover */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important; /* Enhanced shadow on hover */
}
.emoji-dropdown svg {
width: 24px; /* SVG size */
height: 24px;
}
/* Emoji picker styling */
.emoji-picker {
display: flex;
flex-wrap: wrap;
padding: 5px;
background-color: var(--card-bg); /* Matches the chat input background */
border: 1px solid var(--secondary-color);
border-radius: 10px;
position: absolute;
top: 100%; /* Position below the emoji dropdown */
left: 0;
z-index: 100; /* Ensure it appears above other content */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional shadow for visibility */
max-height: 200px; /* Adjust based on the number of emojis */
overflow-y: auto; /* Adds scroll if needed */
}
.emoji-picker.hidden {
display: none;
}
/* Emoji container styling */
#emoji-container {
display: flex;
align-items: center;
}
/* Clear emojis button styling */
.clear-emojis {
background-color: var(--primary-color); /* Matches the emoji dropdown */
border: none !important; /* Remove any border */
padding: 0 !important; /* No padding */
cursor: pointer !important; /* Pointer cursor */
border-radius: 50% !important; /* Round shape */
width: 40px !important; /* Fixed width */
height: 40px !important; /* Fixed height */
display: flex !important; /* Flexbox layout */
align-items: center !important; /* Center vertically */
justify-content: center !important; /* Center horizontally */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important; /* Optional shadow */
transition: background-color 0.3s, box-shadow 0.3s !important; /* Smooth transitions */
margin-left: 10px; /* Space between emoji dropdown and clear button */
}
.clear-emojis:hover {
background-color: #3b7bce; /* Change color on hover */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important; /* Enhanced shadow on hover */
}
.clear-emojis svg {
width: 24px; /* SVG size to match the emoji dropdown */
height: 24px;
}
#deleteMessagesButton {
background-color: var(--accent-color); /* Matches the emoji dropdown and clear button */
border: none !important; /* Remove any border */
padding: 0 !important; /* No padding */
cursor: pointer !important; /* Pointer cursor */
border-radius: 50% !important; /* Round shape */
width: 40px !important; /* Fixed width */
height: 40px !important; /* Fixed height */
display: flex !important; /* Flexbox layout */
align-items: center !important; /* Center vertically */
justify-content: center !important; /* Center horizontally */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important; /* Optional shadow */
transition: background-color 0.3s, box-shadow 0.3s, transform 0.2s !important; /* Smooth transitions including transform */
margin-left: 10px; /* Adjust margin if necessary */
}
#deleteMessagesButton:hover {
background-color: #c0392b; /* Change color on hover */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important; /* Enhanced shadow on hover */
}
#deleteMessagesButton svg {
width: 24px; /* SVG size to match the clear button */
height: 24px;
transition: transform 0.2s; /* Add a hover effect */
}
#deleteMessagesButton:hover svg {
transform: scale(1.1); /* Slightly enlarge the SVG on hover */
}
#groupList {
list-style: none;
padding: 0;
margin: 0;
}
#groupList .group-item {
background: var(--glass-bg);
padding: 10px;
margin-bottom: 10px;
border-radius: var(--border-radius);
cursor: pointer;
transition: background 0.3s;
display: flex;
justify-content: space-between; /* Ensure the group name and other elements are spaced out */
align-items: center; /* Align items in the center vertically */
}
#groupList .group-item:hover {
background: var(--hover-bg);
}
.group-name {
font-weight: bold;
/* You can add more styles here if needed */
}
.add-to-group {
display: flex;
align-items: center;
gap: 10px; /* Spacing between input and button */
margin-bottom: 5px;
}
.add-to-group input[type="text"] {
padding: 10px;
border: 3px solid var(--primary-color);
border-radius: var(--border-radius);
width: 350px;
box-sizing: border-box;
font-size: 16px;
background-color: var(--card-bg);
color: var(--text-color);
margin-top: 5px; /* Adjust to move down slightly */
}
.add-to-group-button {
background-color: var(--primary-color); /* or any color */
border: none;
padding: 10px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
width: auto; /* Dynamic width */
height: 40px; /* Consistent height */
border-radius: 20px; /* Creates the squircle effect */
transition: background-color 0.3s;
font-size: 16px; /* Same font size as input */
color: #ffffff; /* Ensures text is white */
margin-top: 5px; /* Adjust to move down slightly */
}
.add-to-group-button:hover {
background-color: #2980b9; /* Add a hover effect */
}
.add-to-group-button svg {
width: 64px; /* Adjusted SVG size */
height: 64px;
fill: #ffffff; /* Ensures the SVG color is white */
margin: 0; /* Reset margin if needed */
transform: translateX(0); /* Adjust the X-axis if needed */
transform: translateY(7px); /* Adjust the X-axis if needed */
}
.group-item {
background: var(--glass-bg);
padding: 10px;
margin-bottom: 10px;
border-radius: var(--border-radius);
cursor: pointer;
transition: background 0.3s;
display: flex;
justify-content: space-between; /* Space out items in the group item */
align-items: center; /* Align items in the center vertically */
}
.group-item .buttons {
display: flex;
gap: 5px; /* Space between the buttons */
}
.group-avatar {
flex-shrink: 0; /* Prevent the avatar from shrinking */
}
.group-name {
flex-grow: 1;
font-size: 16px;
font-weight: bold;
}
.group-item .edit-button,
.group-item .delete-button {
padding: 5px 10px;
color: #fff;
border: none;
border-radius: var(--border-radius);
cursor: pointer;
font-size: 14px;
transition: background-color 0.3s;
}
.group-item .edit-button {
background-color: var(--primary-color); /* Background color */
}
.group-item .edit-button:hover {
background-color: #2980b9;
}
.group-item .delete-button {
background-color: var(--accent-color);
}
.group-item .delete-button:hover {
background-color: #c0392b;
}
/* Additional styles for responsiveness and better integration with the chat window */
@media (max-width: 768px) {
.group-chats h2 {
font-size: 20px;
}
.add-to-group input[type="text"] {
width: calc(100% - 110px); /* Adjust input width for smaller screens */
}
.add-to-group button {
font-size: 14px;
padding: 8px 16px;
}
}
.create-new {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
margin-bottom: 30px;
}
.item {
background-color: var(--glass-bg);
padding: 15px;
border-radius: var(--border-radius);
margin-bottom: 10px;
transition: background-color 0.3s ease, transform 0.3s ease;
display: flex;
justify-content: space-between;
align-items: center;
backdrop-filter: blur(10px);
}
.item:hover {
background-color: var(--hover-bg);
transform: scale(1.05);
backdrop-filter: blur(10px);
}
.user-profile {
display: flex;
align-items: center;
margin-top: auto;
padding-top: 20px;
}
.user-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
background-color: var(--primary-color);
margin-right: 10px;
transition: transform 0.3s ease, background-color 0.3s ease;
}
.user-avatar:hover {
transform: scale(1.1);
color: var(--text-color);
}
.account-button {
background: none;
border: none;
color: var(--text-color);
cursor: pointer;
display: flex;
align-items: center;
padding: 0;
transition: color 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}
.account-button:hover {
transform: scale(1.05);
}
.account-button:focus {
outline: none;
}
.user-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
background-color: var(--accent-color); /* Initial color is accent color */
margin-right: 10px;
transition: transform 0.3s ease, background-color 0.3s ease;
}
.user-avatar:hover {
transform: scale(1.1);
}
/* Existing styles */
.sidebar-toggle {
display: none;
position: fixed;
top: 20px;
right: 20px;
background-color: var(--hover-bg);
color: var(--text-color);
border: none;