File size: 3,007 Bytes
2df36ec
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
body {
    font-family: system-ui, sans-serif;
    margin: 0;
    background: #f4f6fb;
  }
  
  header {
    background: #232946;
    color: #fff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
  }
  
  header select, header button {
    font-size: 1em;
    padding: 4px 8px;
    border-radius: 4px;
    border: none;
  }
  
  #chatContainer {
    max-width: 600px;
    margin: 30px auto 0 auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    min-height: 400px;
    padding: 18px 10px 70px 10px;
    overflow-y: auto;
    height: 60vh;
    display: flex;
    flex-direction: column;
  }
  
  .message {
    display: flex;
    margin-bottom: 10px;
    align-items: flex-end;
  }
  
  .message.user {
    justify-content: flex-end;
  }
  
  .message.bot {
    justify-content: flex-start;
  }
  
  .bubble {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 1em;
    line-height: 1.5;
    word-break: break-word;
  }
  
  .user .bubble {
    background: #232946;
    color: #fff;
    border-bottom-right-radius: 4px;
  }
  
  .bot .bubble {
    background: #e7eaf6;
    color: #232946;
    border-bottom-left-radius: 4px;
  }
  
  #inputForm {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 12px 10px;
    border-top: 1px solid #e7eaf6;
  }
  
  #userInput {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1em;
  }
  
  #inputForm button {
    padding: 0 18px;
    border-radius: 6px;
    background: #232946;
    color: #fff;
    border: none;
    font-size: 1em;
    cursor: pointer;
  }
  
  .typing {
    font-size: 0.95em;
    color: #888;
    margin-left: 18px;
    margin-bottom: 8px;
  }
  
  .hidden {
    display: none !important;
  }
  
  /* Modal */
  .modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
  }
  
  .modal-content {
    background: #fff;
    padding: 32px 28px 24px 28px;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.12);
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .modal-content input {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1em;
  }
  
.toggle-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 1em;
  color: #fff;
}
.toggle-label input[type="checkbox"] {
  accent-color: #232946;
  width: 16px;
  height: 16px;
}
  .modal-content button {
    padding: 8px 0;
    border-radius: 6px;
    background: #232946;
    color: #fff;
    border: none;
    font-size: 1em;
    cursor: pointer;
  }
  
  .error {
    color: #c00;
    font-size: 0.95em;
    min-height: 18px;
  }