File size: 8,620 Bytes
45b17a5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--primary: #7c3aed;
	--primary-light: #a78bfa;
	--primary-dark: #5b21b6;
	--secondary: #f59e0b;
	--bg-deep: #0f0a1e;
	--bg-card: rgba(26, 17, 52, 0.85);
	--bg-message: rgba(49, 32, 95, 0.7);
	--border: rgba(167, 139, 250, 0.15);
	--text-primary: #f5f3ff;
	--text-muted: #a78bfa;
	--user-gradient: linear-gradient(135deg, #7c3aed, #a855f7);
	--accent-glow: rgba(124, 58, 237, 0.4);
}

body, html {
	height: 100%;
	font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
	background: var(--bg-deep);
	color: var(--text-primary);
	overflow: hidden;
}

/* Animated background */
body::before {
	content: '';
	position: fixed;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background:
		radial-gradient(ellipse at 20% 20%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
		radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
		radial-gradient(ellipse at 50% 50%, rgba(245, 158, 11, 0.05) 0%, transparent 60%);
	z-index: -1;
	animation: bgPulse 8s ease-in-out infinite alternate;
}

@keyframes bgPulse {
	0% { transform: scale(1) rotate(0deg); }
	100% { transform: scale(1.05) rotate(2deg); }
}

/* Floating particles */
body::after {
	content: 'πŸŽ“ πŸ“š ✏️ 🏫 πŸ“';
	position: fixed;
	top: 5%;
	right: 3%;
	font-size: 1.2rem;
	opacity: 0.08;
	letter-spacing: 8px;
	writing-mode: vertical-rl;
	z-index: -1;
}

.chat-container {
	display: flex;
	flex-direction: column;
	max-width: 820px;
	height: 92vh;
	margin: 4vh auto;
	background: var(--bg-card);
	border-radius: 24px;
	box-shadow:
		0 32px 64px -12px rgba(0, 0, 0, 0.6),
		0 0 0 1px var(--border),
		inset 0 1px 0 rgba(167, 139, 250, 0.1);
	backdrop-filter: blur(20px);
	overflow: hidden;
}

/* ─── HEADER ─────────────────────────────── */
.chat-header {
	padding: 18px 28px;
	background: linear-gradient(135deg, rgba(91, 33, 182, 0.6), rgba(124, 58, 237, 0.4));
	border-bottom: 1px solid var(--border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
	overflow: hidden;
}

.chat-header::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23a78bfa' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
	opacity: 0.5;
}

.bot-info {
	display: flex;
	align-items: center;
	gap: 14px;
	position: relative;
}

.avatar-container {
	position: relative;
}

.bot-avatar {
	width: 52px;
	height: 52px;
	border-radius: 16px;
	object-fit: cover;
	background: linear-gradient(135deg, #7c3aed, #a855f7);
	padding: 6px;
	box-shadow: 0 0 20px var(--accent-glow), 0 0 0 2px rgba(167, 139, 250, 0.3);
}

.avatar {
	width: 38px;
	height: 38px;
	border-radius: 12px;
	object-fit: cover;
	background: linear-gradient(135deg, #7c3aed, #a855f7);
	padding: 4px;
	flex-shrink: 0;
}

.user-message .avatar {
	background: linear-gradient(135deg, #f59e0b, #fbbf24);
	padding: 3px;
}

.status-indicator {
	position: absolute;
	bottom: -2px;
	right: -2px;
	width: 14px;
	height: 14px;
	background: #10b981;
	border-radius: 50%;
	border: 2px solid #0f0a1e;
	box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
	animation: pulse-status 2s ease-in-out infinite;
}

@keyframes pulse-status {
	0%, 100% { box-shadow: 0 0 8px rgba(16, 185, 129, 0.7); }
	50% { box-shadow: 0 0 16px rgba(16, 185, 129, 1); }
}

.text-info h1 {
	font-size: 1.2rem;
	font-weight: 700;
	color: #f5f3ff;
	letter-spacing: 0.3px;
	margin-bottom: 3px;
}

.text-info p {
	font-size: 0.8rem;
	color: var(--text-muted);
	font-weight: 500;
}

/* Header badge */
.header-badge {
	background: rgba(245, 158, 11, 0.15);
	border: 1px solid rgba(245, 158, 11, 0.3);
	color: #fbbf24;
	font-size: 0.72rem;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 20px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

/* ─── CHAT BOX ─────────────────────────────── */
.chat-box {
	flex: 1;
	overflow-y: auto;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	scroll-behavior: smooth;
}

.chat-box::-webkit-scrollbar { width: 6px; }
.chat-box::-webkit-scrollbar-track { background: transparent; }
.chat-box::-webkit-scrollbar-thumb {
	background: rgba(167, 139, 250, 0.2);
	border-radius: 4px;
}
.chat-box::-webkit-scrollbar-thumb:hover {
	background: rgba(167, 139, 250, 0.4);
}

/* ─── MESSAGES ─────────────────────────────── */
.message {
	display: flex;
	gap: 12px;
	max-width: 82%;
	align-items: flex-end;
}

.user-message { align-self: flex-end; }
.bot-message  { align-self: flex-start; }

.message-content {
	padding: 14px 18px;
	border-radius: 18px;
	font-size: 0.93rem;
	line-height: 1.6;
	position: relative;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.bot-message .message-content {
	background: var(--bg-message);
	color: #ede9fe;
	border-bottom-left-radius: 4px;
	border: 1px solid var(--border);
}

.user-message .message-content {
	background: var(--user-gradient);
	color: #ffffff;
	border-bottom-right-radius: 4px;
	box-shadow: 0 4px 20px var(--accent-glow);
}

.error-message .message-content {
	background: rgba(239, 68, 68, 0.15);
	border: 1px solid rgba(239, 68, 68, 0.35);
	color: #fca5a5;
}

.time {
	display: block;
	font-size: 0.68rem;
	margin-top: 7px;
	opacity: 0.6;
	text-align: right;
	font-weight: 500;
}

/* ─── FOOTER / INPUT ─────────────────────────── */
.chat-footer {
	padding: 18px 28px 22px;
	background: rgba(91, 33, 182, 0.12);
	border-top: 1px solid var(--border);
}

.input-form {
	display: flex;
	gap: 12px;
	background: rgba(167, 139, 250, 0.07);
	border: 1.5px solid rgba(167, 139, 250, 0.2);
	border-radius: 32px;
	padding: 8px 8px 8px 22px;
	transition: all 0.3s ease;
}

.input-form:focus-within {
	border-color: rgba(167, 139, 250, 0.6);
	background: rgba(167, 139, 250, 0.1);
	box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.input-form input {
	flex: 1;
	background: transparent;
	border: none;
	color: #f5f3ff;
	font-size: 0.95rem;
	outline: none;
	font-family: inherit;
	font-weight: 500;
}

.input-form input::placeholder { color: #6d5cae; }

.input-form button {
	background: var(--user-gradient);
	border: none;
	border-radius: 50%;
	width: 46px;
	height: 46px;
	color: white;
	font-size: 1rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	flex-shrink: 0;
	box-shadow: 0 4px 12px var(--accent-glow);
}

.input-form button:hover {
	transform: scale(1.08);
	box-shadow: 0 6px 20px var(--accent-glow);
}

.input-form button:active { transform: scale(0.94); }

/* ─── ANIMATIONS ─────────────────────────────── */
@keyframes slideIn {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}

.slide-in { animation: slideIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; }

.intro-animation {
	animation: slideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
	animation-delay: 0.2s;
}

/* ─── TYPING INDICATOR ─────────────────────────── */
.typing-dots {
	display: flex;
	gap: 5px;
	padding: 4px 6px;
}

.typing-dots span {
	width: 8px;
	height: 8px;
	background: var(--primary-light);
	border-radius: 50%;
	animation: blink 1.4s infinite both;
}

.typing-dots span:nth-child(1) { animation-delay: 0.2s; }
.typing-dots span:nth-child(2) { animation-delay: 0.4s; }
.typing-dots span:nth-child(3) { animation-delay: 0.6s; }

@keyframes blink {
	0%   { opacity: 0.2; transform: scale(0.8) translateY(0); }
	40%  { opacity: 1;   transform: scale(1.1) translateY(-3px); }
	100% { opacity: 0.2; transform: scale(0.8) translateY(0); }
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 768px) {
	.chat-container {
		margin: 0;
		height: 100vh;
		border-radius: 0;
		max-width: 100%;
	}
	.header-badge { display: none; }
}