File size: 15,276 Bytes
44009db
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a28332d
 
1539090
 
 
 
44009db
 
 
 
 
 
 
 
 
 
 
 
a28332d
1539090
a28332d
787bc91
 
 
1539090
 
44009db
a28332d
 
44009db
 
 
1539090
 
a28332d
1539090
44009db
 
 
 
1539090
 
44009db
787bc91
 
 
1539090
 
44009db
 
 
 
 
 
 
 
 
 
 
 
a28332d
 
 
 
1539090
a28332d
 
44009db
 
a28332d
 
44009db
 
 
 
 
 
a28332d
 
44009db
 
 
 
 
 
 
 
 
 
 
a28332d
44009db
 
 
 
a28332d
 
44009db
 
 
 
 
 
 
 
a28332d
 
 
fbd260e
 
44009db
 
 
 
 
a28332d
 
44009db
 
 
a28332d
f59cb4f
44009db
 
1539090
 
 
44009db
 
 
f59cb4f
 
 
 
 
 
1539090
 
a28332d
1539090
 
 
a28332d
1539090
fbd260e
a28332d
 
fbd260e
a28332d
 
fbd260e
a28332d
44009db
a28332d
 
 
 
 
fbd260e
a28332d
 
 
 
44009db
 
 
 
fbd260e
 
a28332d
 
 
 
44009db
 
 
 
 
 
 
 
 
 
1539090
 
a28332d
 
44009db
 
a28332d
fbd260e
 
a28332d
44009db
 
a28332d
 
44009db
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fbd260e
 
44009db
a28332d
 
44009db
 
a28332d
44009db
 
 
 
 
 
 
 
 
 
1539090
 
a28332d
44009db
 
 
 
a28332d
44009db
 
 
a28332d
 
44009db
 
 
 
 
 
1539090
 
a28332d
44009db
 
 
a28332d
fbd260e
 
a28332d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e065eb6
 
a28332d
 
 
 
 
 
 
 
e065eb6
a28332d
 
 
 
44009db
 
a28332d
 
 
 
 
e065eb6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44009db
 
e065eb6
 
a28332d
 
44009db
e065eb6
a28332d
 
 
 
 
 
 
 
 
 
 
 
44009db
fbd260e
 
a28332d
 
 
 
 
 
 
 
 
 
44009db
a28332d
 
 
 
44009db
a28332d
 
 
fbd260e
 
 
a28332d
 
fbd260e
 
a28332d
 
 
44009db
a28332d
 
fbd260e
 
a28332d
 
 
 
 
 
fbd260e
a28332d
 
 
 
44009db
1539090
 
 
 
a28332d
44009db
 
a28332d
 
787bc91
a28332d
1539090
 
a28332d
 
 
 
 
 
fbd260e
a28332d
 
 
 
44009db
a28332d
 
 
 
 
 
 
 
 
fbd260e
 
a28332d
 
 
1539090
a28332d
 
 
1539090
a28332d
 
fbd260e
 
 
a28332d
 
 
 
fbd260e
 
a28332d
 
 
fbd260e
 
a28332d
 
 
 
fbd260e
 
a28332d
fbd260e
a28332d
44009db
a28332d
1539090
 
a28332d
 
 
 
 
 
 
 
 
 
7d8a459
a28332d
44009db
a28332d
 
 
 
 
 
44009db
 
 
 
 
 
a28332d
 
44009db
a28332d
44009db
 
 
a28332d
 
1c8ff47
44009db
1c8ff47
 
a28332d
44009db
a28332d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7d8a459
 
a28332d
44009db
 
a28332d
 
 
44009db
a28332d
 
 
44009db
 
 
a28332d
 
44009db
a28332d
44009db
 
 
 
 
a28332d
 
44009db
 
 
a28332d
7d8a459
44009db
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
:root {
  /* Light Theme Variables */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-message-user: #e31837;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-on-red: #ffffff;
  --border-color: #f3f4f6;
  --border-input: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --hover-btn: #f3f4f6;
}

.chatbot-container.dark, body.dark {
  /* Dark Theme Variables */
  --bg-primary: #121212; /* Slightly deeper dark */
  --bg-secondary: #1e1e1e;
  --bg-message-user: #e31837;
  --text-primary: #ffffff;
  --text-secondary: #d4d4d4; /* Much brighter for readability */
  --border-color: #2a2a2a;
  --border-input: #3a3a3a;
  --hover-btn: #2a2a2a;
}

/* Global Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease;
  min-height: 100vh;
}

/* Container */
.chatbot-container {
  width: 100%;
  max-width: 1000px;
  height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  position: relative;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* Header */
.chat-header {
  height: 70px;
  padding: 0 24px;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.header-logo img {
  object-fit: contain;
}

.header-title h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0;
}

.lang-switcher, .theme-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: transparent;
  border: none;
  color: var(--text-primary); /* Higher contrast */
  padding: 8px;
  border-radius: 50%; /* For circular hover */
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 38px;
  min-width: 38px;
}

.theme-switcher {
  width: 38px;
  padding: 0;
}

.lang-switcher:hover, .theme-switcher:hover {
  background-color: var(--hover-btn);
  color: var(--text-primary);
}

.new-chat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-input);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  padding: 0 20px;
  height: 38px;
  border-radius: 20px; /* Pill-shaped */
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  min-width: 140px; /* Stabilize size */
}

.new-chat-btn:hover {
  background-color: var(--bg-primary);
  border-color: #9ca3af;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.new-chat-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Chat Window */
.chat-window {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}

.chat-window::-webkit-scrollbar {
  width: 6px;
}
.chat-window::-webkit-scrollbar-thumb {
  background-color: var(--border-input);
  border-radius: 10px;
}

/* Welcome Screen */
.welcome-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  margin: auto; /* Vertically and horizontally centered */
  width: 100%;
  max-width: 800px;
  min-height: min-content;
}

.welcome-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  max-height: 15vh; /* Reduced height as it's smaller now */
}

.welcome-logo img {
  max-height: 100%;
  width: auto;
  height: auto;
  max-width: 100px; /* Reduced to 1/2 size as requested */
  object-fit: contain;
}

.welcome-container h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.welcome-subtitle {
  font-size: clamp(12px, 2vw, 14px);
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.5;
  white-space: nowrap;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Knowledge Base Button */
.knowledge-base-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  border: 1px solid var(--border-input);
  color: var(--text-primary); /* Ensure white in dark mode */
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 32px;
  min-width: 160px; /* Stabilize size */
}

.knowledge-base-btn:hover {
  background-color: var(--hover-btn);
  color: var(--text-primary);
  border-color: #9ca3af;
  transform: translateY(-1px);
}

/* Suggestion Chips */
.suggestion-chips {
  display: flex;
  flex-wrap: nowrap; /* Single line as requested */
  overflow-x: auto; /* Horizontal scroll if too long */
  gap: 12px;
  justify-content: center; /* Center if enough space */
  width: 100%;
  max-width: 800px; /* Wider to match input area visibility better */
  padding: 4px 10px;
  scrollbar-width: none; /* Hide scrollbar Firefox */
  -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
}

.suggestion-chips::-webkit-scrollbar {
  display: none; /* Hide scrollbar Chrome/Safari */
}

.suggestion-chips button {
  flex-shrink: 0; /* Don't squash buttons */
  background-color: var(--bg-primary);
  border: 1px solid var(--border-input);
  color: var(--text-primary); /* Use primary text (white in dark mode) */
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  height: 44px; /* Consistent height */
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.suggestion-chips button:hover {
  background-color: var(--hover-btn);
  border-color: #9ca3af;
  color: var(--text-primary);
  transform: translateY(-1px);
}

/* Messages */
.messages-list {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  gap: 16px;
}

.message-row {
  display: flex;
  padding: 8px 24px;
  gap: 16px;
  width: 100%;
}

.message-row.bot {
  justify-content: flex-start;
  background-color: transparent; /* No background for bot */
}

.message-row.user {
  justify-content: flex-end; /* User on the right */
}

.message-content {
  width: 100%;
  max-width: 100%;
  overflow-wrap: break-word;
  font-size: 16px;
  line-height: 1.6;
}

.message-row.user .message-content {
  display: flex;
  justify-content: flex-end;
  max-width: 80%;
}

.user-text {
  white-space: pre-wrap;
  color: var(--text-on-red);
  background-color: var(--bg-message-user); /* Pizza Hut Red Bubble */
  padding: 12px 18px;
  border-radius: 20px 20px 2px 20px;
  box-shadow: 0 2px 8px rgba(227, 24, 55, 0.15);
}

/* Bot message wrapper for copy button positioning */
.bot-message-wrapper {
  position: relative;
  width: 100%;
}

.copy-btn {
  background-color: transparent;
  color: #9ca3af; /* Gray icon */
  margin-top: 12px;
  margin-left: -8px; /* Alignment with text */
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 50%; /* Circular */
  opacity: 0; /* Hidden by default */
  width: 36px;
  height: 36px;
}

/* Always show icon for the latest response */
.bot-message-wrapper.latest .copy-btn {
  opacity: 1;
}

/* Show icon on hover for all responses */
.bot-message-wrapper:hover .copy-btn {
  opacity: 1;
}

.copy-btn:hover {
  background-color: var(--hover-btn); /* Light circular hover */
  color: var(--text-primary); /* Darker on hover */
}

/* React Markdown Styles */
.markdown-body {
  color: var(--text-primary);
  width: 100%;
}

.markdown-body p {
  margin-bottom: 12px;
}

.markdown-body p:last-child {
  margin-bottom: 0;
}

.markdown-body strong {
  font-weight: 600;
  color: var(--text-primary);
}

.markdown-body ul, .markdown-body ol {
  margin-bottom: 12px;
  padding-left: 24px;
}

.markdown-body li {
  margin-bottom: 4px;
}

.markdown-body code {
  background-color: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Consolas', monospace;
  color: var(--text-primary);
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  height: 24px;
  gap: 4px;
}

.dot {
  width: 6px;
  height: 6px;
  background-color: var(--text-secondary);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.dot1 { animation-delay: -0.32s; }
.dot2 { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Input Area */
.input-area {
  padding: 16px 24px 24px 24px;
  background-color: var(--bg-primary);
}

.input-container {
  display: flex;
  align-items: flex-end;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-input);
  border-radius: 16px;
  padding: 4px;
  transition: all 0.2s;
  position: relative;
}

.input-container:focus-within {
  border-color: #9ca3af;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.chat-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 16px;
  font-size: 16px;
  color: var(--text-primary);
  font-family: inherit;
  resize: none;
  max-height: 200px;
  min-height: 48px;
  line-height: 1.5;
}

.chat-input:focus {
  outline: none;
}

.chat-input::placeholder {
  color: #9ca3af;
}

.send-button {
  background-color: transparent;
  color: #e31837; /* Pizza Hut Red */
  border: none;
  width: 36px;
  height: 48px; /* Match input height */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 8px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.send-button:not(.disabled):hover {
  transform: scale(1.1);
  color: #ff5e62;
}

.send-button.disabled {
  background-color: transparent;
  color: #e5e7eb;
  cursor: not-allowed;
}

.footer-text {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .chatbot-container {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
    max-width: 100%;
  }

  .chat-header {
    padding: 0 16px;
  }

  .header-title h1 {
    font-size: 14px;
  }

  .header-right {
    gap: 8px; /* Tighter gap on mobile */
  }

  .lang-switcher span, .new-chat-btn span {
    display: none; /* Hide text to save space */
  }

  .lang-switcher, .theme-switcher, .new-chat-btn {
    padding: 8px;
    width: 38px;
    min-width: 38px;
    border-radius: 50%; /* Icon only style */
  }

  .welcome-container {
    padding-top: 40px;
  }

  .welcome-logo img {
    max-width: 80px; /* Proportional reduction for mobile */
  }

  .welcome-container h2 {
    font-size: 20px;
  }

  .message-row {
    padding: 8px 16px;
    gap: 12px;
  }

  .message-content {
    max-width: 90%;
    font-size: 15px;
  }

  .user-text {
    padding: 10px 14px;
  }

  .input-area {
    padding: 12px 16px 20px 16px;
  }

  .chat-input {
    font-size: 16px; /* Prevents iOS zoom */
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .header-title {
    display: none; /* Only logo on very small screens if needed */
  }

  .welcome-logo img {
    max-width: 70px; /* Even smaller for very small screens */
  }

  .suggestion-chips {
    justify-content: flex-start; /* Ensure scrolling starts from left */
    padding-left: 16px;
    padding-right: 16px;
  }

  .welcome-subtitle {
    font-size: 13px;
    margin-bottom: 24px;
    padding: 0 10px;
    white-space: normal; /* Allow wrap on very small screens to avoid horizontal scroll of plain text */
    text-overflow: clip;
    overflow: visible;
  }

  .modal-content {
    margin: 20px; /* Prevent touching edges on mobile */
    max-height: 85vh;
  }
}

/* Knowledge Base Button */
.knowledge-base-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 32px;
}

.knowledge-base-btn:hover {
  background-color: #f9fafb;
  color: #374151;
  border-color: #d1d5db;
  transform: translateY(-1px);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6); /* Darker for better contrast */
  backdrop-filter: blur(8px); /* Stronger blur */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  background-color: var(--bg-primary);
  width: 90%;
  max-width: 500px;
  max-height: 90vh; /* Keep within viewport */
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-primary);
  flex-shrink: 0; /* Header stays at the top */
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.close-modal {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  font-size: 18px;
  display: flex;
  transition: color 0.2s;
}

.close-modal:hover {
  color: #374151;
}

.modal-body {
  padding: 24px;
  overflow-y: auto; /* Contents scrollable */
  flex: 1;
}

.modal-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.sources-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.source-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  transition: background-color 0.2s;
  border: 1px solid var(--border-color);
}

.source-item:hover {
  background-color: var(--hover-btn);
}

.source-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.source-icon.pdf { color: #ef4444; }
.source-icon.word { color: #3b82f6; }
.source-icon.db { color: #10b981; }

.source-name {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.4;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}