File size: 12,381 Bytes
0372630
d8f820c
 
 
 
 
0372630
 
d8f820c
 
 
 
 
 
 
 
 
 
 
0372630
 
d8f820c
 
 
 
 
 
 
 
 
 
 
 
 
 
0372630
bdf85e3
d8f820c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0372630
d8f820c
 
 
 
 
 
 
 
 
 
 
 
 
 
0372630
 
d8f820c
 
0372630
d8f820c
0372630
d8f820c
 
0372630
 
d8f820c
0372630
d8f820c
 
0372630
d8f820c
 
 
0372630
d8f820c
 
0372630
d8f820c
 
 
0372630
d8f820c
 
 
0372630
 
d8f820c
0372630
d8f820c
0372630
d8f820c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0372630
d8f820c
 
 
 
 
 
0372630
d8f820c
 
0372630
 
 
 
8496c4f
d8f820c
8496c4f
 
 
 
 
0372630
8496c4f
 
0372630
d8f820c
 
 
 
 
 
 
 
 
 
 
 
0372630
d8f820c
 
 
 
 
 
0372630
d8f820c
 
 
0372630
 
 
 
d8f820c
 
 
 
 
 
 
 
 
 
 
 
 
0372630
d8f820c
0372630
d8f820c
 
 
 
 
0372630
d8f820c
0372630
d8f820c
0372630
d8f820c
0372630
d8f820c
0372630
 
 
 
d8f820c
 
 
 
 
 
 
 
 
0372630
d8f820c
0372630
d8f820c
 
 
 
0372630
 
8496c4f
 
 
 
d8f820c
8496c4f
 
 
 
 
 
 
d8f820c
 
 
 
0372630
d8f820c
 
 
 
0372630
8496c4f
d8f820c
 
0372630
8496c4f
d8f820c
 
 
0372630
8496c4f
d8f820c
 
 
0372630
8496c4f
d8f820c
 
 
 
0372630
8496c4f
0372630
d8f820c
 
8496c4f
d8f820c
 
 
 
 
 
 
 
 
 
8496c4f
d8f820c
 
 
 
 
 
 
8496c4f
 
d8f820c
 
 
8496c4f
d8f820c
 
 
 
 
 
 
8496c4f
d8f820c
 
 
 
 
 
 
8496c4f
d8f820c
 
 
 
 
 
 
8496c4f
d8f820c
 
 
 
8496c4f
d8f820c
 
 
 
 
8496c4f
d8f820c
 
 
8496c4f
d8f820c
 
 
 
 
0372630
8496c4f
d8f820c
 
 
 
 
bdf85e3
8496c4f
d8f820c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bdf85e3
d8f820c
 
 
 
 
 
 
 
 
 
 
 
 
 
0372630
d8f820c
f9c2d3f
d8f820c
 
 
f9c2d3f
d8f820c
f9c2d3f
d8f820c
 
f9c2d3f
d8f820c
f9c2d3f
d8f820c
f9c2d3f
 
d8f820c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0372630
d8f820c
0372630
d8f820c
 
 
 
0372630
d8f820c
0372630
d8f820c
bdf85e3
8496c4f
 
 
d8f820c
8496c4f
d8f820c
0372630
 
8496c4f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bdf85e3
8496c4f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bdf85e3
8496c4f
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
body, html {
	height: 100%;
	margin: 0;
	background: var(--bg-color);
	background: linear-gradient(to right, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
	color: var(--text-color);
}
:root {
	--bg-color: rgb(44, 47, 59);
	--gradient-start: rgb(38, 51, 61);
	--gradient-mid: rgb(50, 55, 65);
	--gradient-end: rgb(33, 33, 78);
	--card-bg: rgba(0, 0, 0, 0.4);
	--text-color: white;
	--msg-bg: rgb(82, 172, 255);
	--msg-send-bg: #58cc71;
	--placeholder-color: #ccc;
	--input-bg: rgba(0,0,0,0.3);
	--border-color: white;
}
.light-mode {
    --bg-color: #e6e6e6; /* Cool light grey background */
    --gradient-start: #dcdcdc; /* Softer gradient transition */
    --gradient-mid: #e6e6e6;
    --gradient-end: #cfcfcf;
    --card-bg: rgba(255, 255, 255, 0.95); /* Slightly more opaque for clarity */
    --text-color: #222; /* Darker text for better contrast */
    --msg-bg: #3498db; /* Incoming message bubble color */
    --msg-send-bg: #2ecc71; /* Sent message bubble color */
    --placeholder-color: #666; /* Darker placeholder text for readability */
    --input-bg: rgba(255, 255, 255, 0.85);
    --border-color: #444; /* Slightly softer black for a modern look */
    
	background-image: linear-gradient(to right, #74ebd5 0%, #9face6 100%)!important;
    color: var(--text-color) !important;
}



/* Light Mode - Ensure theme toggle button is dark */
/* Theme Toggle Button */
#themeToggle {
    position: absolute;
    right: 15px;
	margin-right: 0.5rem;
    top: 10px;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}
.dark-mode {
    --bg-color: #1a1a1a; /* Slightly darker for better contrast */
    --gradient-start: #2c2f36;
    --gradient-mid: #343a40;
    --gradient-end: #23272a;
    --card-bg: rgba(0, 0, 0, 0.6); /* More opacity to make text more readable */
    --text-color: #f8f8f8; /* Slightly off-white for less strain */
    --msg-bg: #3498db;
    --msg-send-bg: #2ecc71;
    --placeholder-color: #bbb;
    --input-bg: rgba(0,0,0,0.5);
    --border-color: #777;
    
    background-image: linear-gradient(to top, #09203f 0%, #537895 100%)!important;
    color: var(--text-color) !important;
}
.dark-mode .msg_container {
    background-color: var(--msg-bg) !important;
    color: #000000 !important; /* Ensure text is visible */
}

.dark-mode .msg_container_send {
    background-color: var(--msg-send-bg) !important;
    color: #000000 !important;
}
.dark-mode .type_msg::placeholder {
    color: rgba(255, 255, 255, 0.7) !important; /* Make it more readable */
}

/* Dark Mode - Light button */
.dark-mode #themeToggle {
    background-color: #ddd !important;
    color: black !important;
    border: 1px solid #333 !important;
}

/* Light Mode - Dark button */
.light-mode #themeToggle {
    background-color: #333 !important;
    color: white !important;
    border: 1px solid #000 !important;
}



.light-mode .user_info span,
.light-mode .user_info p {
    color: var(--text-color) !important;
}

.light-mode .type_msg {
    background-color: var(--input-bg) !important;
    color: var(--text-color) !important;
    border: 1px solid var(--border-color) !important;
}

/* Placeholder text */
.light-mode .type_msg::placeholder {
    color: var(--placeholder-color) !important;
}

/* Chat container */
.light-mode .card {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color);
}

.light-mode .msg_container {
    background-color: var(--msg-bg) !important;
    color: #fff !important; /* White text for better contrast */
}

.light-mode .msg_container_send {
    background-color: var(--msg-send-bg) !important;
    color: #fff !important;
}

::placeholder {
	color: var(--placeholder-color);
	opacity: 1;
}

/* Chat Container */
.chat {
    height: 100vh;           /* Adjust as needed */
    max-height: fit-content; /* Ensures it doesn't get too large */
    padding-top: 5px;
    padding-bottom: 5px;
    width: 60%;              /* Default width for desktops/laptops */
    padding-left: 10px;
    margin: 0 auto;
}


.card {
	height: calc(100% );
	max-height: calc(100%);
	overflow: hidden;
	position: relative;
	background-color: var(--card-bg) !important;
	border-radius: 15px !important;
	
}

.user_info span{
	font-size: 30px;
	color: white;
}
.user_info p{
	font-size: 20px;
	color: rgba(255,255,255,0.6);
}

/* Message Box */
.msg_card_body {

    max-height: 70vh; /* Adjust based on screen size */
    overflow-y: auto; /* Enable scrolling */
}

/* Predictive Text */
.predictive-text {
	position: absolute;
	background-color: var(--input-bg);
	border: 1px solid var(--border-color);
	border-radius: 10px;
	padding: 5px;
	z-index: 999;
	cursor: pointer;
	max-height: 150px;
	overflow-y: auto;
	width: calc(100% - 22px);
	bottom: 65px;
	left: 10px;
	color: var(--text-color);
}

.predictive-text p {
	margin: 5px 0;
	padding: 5px;
	cursor: pointer;
	transition: background-color 0.3s;
	border-radius: 5px;
}

.predictive-text p:hover {
	background-color: rgba(255, 255, 255, 0.2);
}

.predictive-text p:not(:last-child) {
	border-bottom: 1px solid #555;
}

/* Input Fields */
input[type="text"] {
	white-space: normal;
	overflow-wrap: break-word;
	word-wrap: break-word;
	width: 100%;
	padding: 10px;
	height: auto;
	background-color: var(--input-bg) !important;
	color: var(--text-color) !important;
	border: 0 !important;
}

::placeholder {
	white-space: normal;
	overflow-wrap: break-word;
	word-wrap: break-word;
	color: var(--placeholder-color);
}

a {
	text-decoration: underline !important;
	color: blue; /* Keeps the default link color */
}

.attach_btn, .send_btn, .search_btn {
	border-radius: 15px !important;
	background-color: var(--input-bg) !important;
	border: 0 !important;
	color: var(--text-color) !important;
	cursor: pointer;
}
	
.chat{
	margin-top: auto;
	margin-bottom: auto;
}
.contacts_body{
	padding:  0.75rem 0 !important;
	overflow-y: auto;
	white-space: nowrap;
}

.msg_card_body{
	overflow-y: auto;
}

.card-header{
	border-radius: 15px 15px 0 0 !important;
	border-bottom: 0 !important;
}

.card-footer{
border-radius: 0 0 15px 15px !important;
	border-top: 0 !important;
}

.container{
	display: flex;
    flex-direction: column;
    height: 100vh;
}

.msg_card_body {
    flex-grow: 1;
}

.search{
	border-radius: 15px 0 0 15px !important;
	background-color: rgba(0,0,0,0.3) !important;
	border:0 !important;
	color:white !important;
}
.search:focus{
	 box-shadow:none !important;
   outline:0px !important;
}

.type_msg{
	background-color: rgba(0,0,0,0.3) !important;
	border:0 !important;
	color:white !important;
	height: 60px !important;
	overflow-y: auto;
}

.type_msg:focus{
	 box-shadow:none !important;
   outline:0px !important;
}

.attach_btn{
	border-radius: 15px 0 0 15px !important;
	background-color: rgba(0,0,0,0.3) !important;
	border:0 !important;
	color: white !important;
	cursor: pointer;
}

.send_btn{
	border-radius: 0 15px 15px 0 !important;
	background-color: rgba(0,0,0,0.3) !important;
	border:0 !important;
	color: white !important;
	cursor: pointer;
}

.search_btn{
	border-radius: 0 15px 15px 0 !important;
	background-color: rgba(0,0,0,0.3) !important;
	border:0 !important;
	color: white !important;
	cursor: pointer;
}

.contacts{
	list-style: none;
	padding: 0;
}

.contacts li{
	width: 100% !important;
	padding: 5px 10px;
	margin-bottom: 15px !important;
}

.active{
	background-color: rgba(0,0,0,0.3);
}

.user_img{
	height: 70px;
	width: 70px;
	border:1.5px solid #f5f6fa;

}

.user_img_msg{
	height: 40px;
	width: 40px;
	border:1.5px solid #f5f6fa;

}

.img_cont{
	position: relative;
	height: 70px;
	width: 70px;
}
.img_cont_msg{
	height: 40px;
	width: 40px;
}
.online_icon{
	position: absolute;
	height: 15px;
	width:15px;
	background-color: #4cd137;
	border-radius: 50%;
	bottom: 0.2em;
	right: 0.4em;
	border:1.5px solid white;
}
.offline{
	background-color: #c23616 !important;
}
.user_info{
	margin-top: auto;
	margin-bottom: auto;
	margin-left: 15px;
}

.video_cam{
	margin-left: 50px;
	margin-top: 5px;
}
.video_cam span{
	color: white;
	font-size: 20px;
	cursor: pointer;
	margin-right: 20px;
}.msg_container {
	background-color: var(--msg-bg);
	padding: 10px;
	border-radius: 25px;
}

.dark-mode .predictive-text {
    background-color: rgba(0, 0, 0, 0.8) !important; /* Ensure dark background */
    color: white !important;
    border: 1px solid var(--border-color) !important;
}

.dark-mode .predictive-text p {
    background-color: transparent !important;
    color: white !important;
}

.dark-mode .predictive-text p:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}
.msg_container_send {
	background-color: var(--msg-send-bg);
	padding: 10px;
	border-radius: 25px;
	margin-right:10px;
	padding-left: 20px;
	padding-right: 20px;
	
}
.msg_time{
	position: absolute;
	left: 0;
	bottom: -15px;
	color: rgba(255,255,255,0.5);
	font-size: 10px;
}
.msg_time_send{
	position: absolute;
	right:0;
	bottom: -15px;
	color: rgba(255,255,255,0.5);
	font-size: 10px;
}
.msg_head{
	position: relative;
}
#action_menu_btn{
	position: absolute;
	right: 10px;
	top: 10px;
	color: white;
	cursor: pointer;
	font-size: 20px;
}.action_menu {
	z-index: 1;
	position: absolute;
	padding: 15px 0;
	background-color: var(--input-bg);
	color: var(--text-color);
	border-radius: 15px;
	top: 30px;
	right: 15px;
	display: none;
}

.action_menu ul li {
	width: 100%;
	padding: 10px 15px;
	margin-bottom: 5px;
	cursor: pointer;
}

.action_menu ul li:hover {
	background-color: rgba(0,0,0,0.2);
}

/* Media Query for Mobile Devices */
@media (max-width: 350px) {
    .chat {
        width: 100%; /* Full width on mobile devices */
    }
}

@media (max-width: 568px) {
  /* Adjust theme toggle and clear chat buttons */
  

  .clearChat {
  padding: 4px 8px;       /* Reduced padding */
  font-size: 12px;        /* Smaller font size */
  margin: 2px;
  width: 80px;            /* Fixed width for both buttons */
  text-align: center;     /* Ensure the text is centered */
}
  /* Adjust overall chat container */
  .chat {
    height: 100vh;
    max-height: 100vh;     /* Full viewport height */
    width: 100%;          /* Full width */
   
    padding: 5px;
    margin: 0;
  }

  /* Adjust card container */
  .card {
    margin: 5px;          /* Reduced margin */
    border-radius: 10px;   /* Softer border radius */
  }
  .card-header {
    
    padding: 6px;         /* Reduced padding */
  }



  .card-footer {
    /* Let the footer shrink to its content */
     /* Vertically center the text */
    
    /* Adjust text size and spacing */
    font-size: 14px;      /* Use the desired smaller font size */
    line-height: 1.2;     /* Reduce line-height to decrease extra vertical space */
    
    /* Reduce padding and remove extra margin */
    padding: 4px 10px;    
    margin: 0;
  }

  
  /* Header layout adjustments: Juit logo on the left, buttons on the right */
  .card-header {
    display: flex;
    justify-content: space-between; /* Space between logo and buttons */
    align-items: center;
     gap: 10px;
  }
  .juit-logo {
    order: 1;  /* Position logo on the left */
  }
  .header-buttons {
    order: 2;  /* Position buttons on the right */
    display: flex;
    gap: 5px; 
     margin-left: 10px;/* Space between the buttons */
  }
 .img_cont {
    margin-right: 10px;
  }
  
  
  /* DO NOT REMOVE THESE: user_info, message area, and image scaling */
  .user_info {
    margin-left: 0;
    text-align: center;
    margin-right: 10px;
    margin-bottom: 10px;
  }
  .user_info span {
    font-size: 14px;      /* Adjusted font size */
  }
  .user_info p {
    font-size: 12px;      /* Adjusted font size */
  }
.msg_container,
  .msg_container_send {
    font-size: 13px;  /* or adjust to your desired size */
    line-height: 1.3; /* optional: adjust line-height if needed */
  }
  /* Adjust message area */
  .msg_card_body {
    max-height: 50vh;     /* Adjusted maximum height */
  }

  /* Scale down images */
  .img_cont,
  .user_img {
    height: 60px;
    width: 60px;
  }
  .img_cont_msg,
  .user_img_msg {
    height: 45px;
    width: 45px;
  }

  /* Adjust input field and other buttons */
  .type_msg {
    height: 50px;
    font-size: 13.5px;
  }

  .user_info p {
    display: none;
  }
  
  .btn, .attach_btn, .send_btn, .search_btn {
    font-size: 12px;
    padding: 5px 8px;
  }
}