File size: 5,780 Bytes
70d956a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
body {
  font-family: 'Inter', sans-serif;
  background-color: #f8f9fb;
  color: #1f2937;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Sidebar */
#sidebar {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
}

#sidebar.hidden {
  transform: translateX(-100%);
}

/* Chat alanı */
.chat-container {
  height: calc(100vh - 140px);
  overflow-y: auto;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><path fill='rgba(0,0,0,0.05)' d='M20 4a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm-16 16a2 2 0 1 0 4 0 2 2 0 0 0-4 0zm32 0a2 2 0 1 0 4 0 2 2 0 0 0-4 0zm-16 16a2 2 0 1 0 0 4 2 2 0 0 0 0-4z'/></svg>") repeat;
}

/* Mesaj kutuları */
.message {
  max-width: 75%;
  margin: 8px 16px;
  padding: 12px 16px;
  border-radius: var(--bubble-radius, 12px);
  line-height: 1.6;
  animation: bubblePop 0.3s ease-out;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.message:hover {
  transform: translateY(-2px);
}

.user-message {
  margin-left: auto;
  border-bottom-right-radius: 2px;
}

.bot-message {
  border-bottom-left-radius: 2px;
}

/* Sabitlenen mesaj */
.pinned-message {
  background: #fefcbf !important;
  border: 1px solid #facc15;
  position: sticky;
  top: 0;
  z-index: 10;
  animation: none;
}

/* Yazıyor animasyonu */
.typing {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  margin: 8px 16px;
}

.typing span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: pulse 0.8s infinite alternate;
  background: #4f46e5;
}

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

@keyframes bubblePop {
  from { transform: scale(0.9) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes pulse {
  to { transform: scale(1.3); opacity: 0.6; }
}

/* Bildirim */
.notification {
  animation: slideInLeft 0.3s ease-out, fadeOut 0.3s ease-out 2.7s forwards;
  border-left: 4px solid;
  backdrop-filter: blur(5px);
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; }
}

/* Scrollbar */
.chat-container::-webkit-scrollbar {
  width: 6px;
}

.chat-container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 6px;
}

.chat-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Ripple Efekti */
button {
  cursor: pointer;
  position: relative;
  transition: transform 0.2s, background 0.2s;
}

button:hover {
  transform: scale(1.05);
}

button:active::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: scale(0);
  animation: rippleEffect 0.6s ease-out;
  top: 50%;
  left: 50%;
  transform-origin: center;
}

@keyframes rippleEffect {
  to { transform: scale(4); opacity: 0; }
}

/* Input Alanı */
#message-input {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
}

.dark #message-input {
  background: rgba(31, 41, 55, 0.8);
  color: #f3f4f6;
}

/* Temalar */
:root {
  --bubble-radius: 12px;
}

.theme-default .user-message {
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  color: white;
}

.theme-default .bot-message {
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  color: #1f2937;
}

.theme-blue .user-message {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: white;
}

.theme-blue .bot-message {
  background: linear-gradient(135deg, #bfdbfe, #93c5fd);
  color: #1e3a8a;
}

.theme-green .user-message {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: white;
}

.theme-green .bot-message {
  background: linear-gradient(135deg, #a7f3d0, #6ee7b7);
  color: #064e3b;
}

.theme-purple .user-message {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  color: white;
}

.theme-purple .bot-message {
  background: linear-gradient(135deg, #ddd6fe, #c4b5fd);
  color: #4c1d95;
}

.theme-red .user-message {
  background: linear-gradient(135deg, #ef4444, #f87171);
  color: white;
}

.theme-red .bot-message {
  background: linear-gradient(135deg, #fecaca, #f9a8a8);
  color: #991b1b;
}

/* Koyu mod (yumuşak koyu gri) */
.dark {
  background-color: #1e1e1e;
  color: #e5e7eb;
}

.dark .chat-container {
  background: linear-gradient(135deg, #1e1e1e, #2c2c2c);
}

.dark .bg-white {
  background: #2a2a2a;
  color: #e5e7eb;
}
/* === Tema Uyumu: Sidebar ve Arka Plan === */

/* Aydınlık tema için sidebar ve yazılar */
.theme-default #sidebar {
  background: #f8fafc;
  color: #1e293b;
}
.theme-default .chat-container {
  background: url("https://www.transparenttextures.com/patterns/pw-maze-white.png") repeat;
}

/* Karanlık tema için sidebar ve yazılar */
.dark #sidebar {
  background: #1f2937;
  color: #f8fafc;
}
.dark .chat-container {
  background: url("https://www.transparenttextures.com/patterns/asfalt-dark.png") repeat;
}

/* Sidebar içindeki input/select'ler temaya uyum sağlar */
#sidebar input,
#sidebar select {
  color: inherit;
  background-color: transparent;
}

.dark #sidebar input,
.dark #sidebar select {
  background-color: #374151;
  color: #f1f5f9;
}