File size: 1,503 Bytes
effe6e2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 800px;
  margin: auto;
  font-family: Arial, sans-serif;
}

.chat-header {
  padding: 16px;
  background-color: #4a90e2;
  color: white;
  font-size: 1.5rem;
  text-align: center;
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: 70%;
  padding: 12px;
  border-radius: 16px;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.chat-bubble.user {
  align-self: flex-end;
  background-color: #dcf8c6;
}

.chat-bubble.ai {
  align-self: flex-start;
  background-color: #ffffff;
  border: 1px solid #ddd;
}

.chat-bubble.loading {
  font-style: italic;
  opacity: 0.6;
}

.chat-input-area {
  display: flex;
  padding: 12px;
  border-top: 1px solid #ccc;
  background-color: #fff;
}

.chat-input-area input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-right: 8px;
}

.chat-input-area button {
  padding: 8px 16px;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.chat-input-area button:disabled {
  background-color: #a0c4f2;
  cursor: not-allowed;
}

.back-button {
  float: right;
  margin-right: 20px;
  background-color: #f2f2f2;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.back-button:hover {
  background-color: #ddd;
}