Spaces:
Running

axeronis commited on
Commit
c67852d
·
1 Parent(s): cd438c3

style: Update ProductSettings and BookingSettings to dark theme

Browse files
frontend/components/BookingSettings.tsx CHANGED
@@ -71,13 +71,13 @@ export default function BookingSettings({ settings, onSave, loading }: BookingSe
71
  }
72
 
73
  return (
74
- <div className="bg-white rounded-2xl shadow-sm border border-slate-200 p-8">
75
  <div className="flex items-center gap-3 mb-6">
76
  <div className="p-2 bg-blue-50 rounded-xl text-blue-600">
77
  <Calendar className="w-6 h-6" />
78
  </div>
79
  <div>
80
- <h2 className="text-xl font-bold text-slate-900">Настройки записи</h2>
81
  <p className="text-sm text-slate-500">Укажите ваше рабочее время для AI ассистента</p>
82
  </div>
83
  </div>
@@ -85,7 +85,7 @@ export default function BookingSettings({ settings, onSave, loading }: BookingSe
85
  <div className="space-y-8">
86
  {/* Working Days */}
87
  <div>
88
- <label className="block text-sm font-bold text-slate-700 mb-3">Рабочие дни</label>
89
  <div className="flex gap-2">
90
  {DAYS.map((day) => {
91
  const isSelected = localSettings.working_days?.includes(day.id)
@@ -97,7 +97,7 @@ export default function BookingSettings({ settings, onSave, loading }: BookingSe
97
  "w-10 h-10 rounded-lg font-medium transition-all flex items-center justify-center border-2",
98
  isSelected
99
  ? "bg-blue-600 border-blue-600 text-white shadow-md shadow-blue-200"
100
- : "bg-white border-slate-200 text-slate-600 hover:border-blue-300 hover:bg-blue-50"
101
  )}
102
  >
103
  {day.label}
@@ -110,7 +110,7 @@ export default function BookingSettings({ settings, onSave, loading }: BookingSe
110
  {/* Working Hours */}
111
  <div className="grid grid-cols-2 gap-6">
112
  <div>
113
- <label className="block text-sm font-bold text-slate-700 mb-2">Начало работы</label>
114
  <div className="relative">
115
  <Clock className="absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400" />
116
  <input
@@ -120,12 +120,12 @@ export default function BookingSettings({ settings, onSave, loading }: BookingSe
120
  ...localSettings,
121
  working_hours: { ...localSettings.working_hours, start: e.target.value }
122
  })}
123
- className="w-full pl-10 pr-4 py-2 bg-slate-50 border border-slate-200 rounded-xl focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 outline-none"
124
  />
125
  </div>
126
  </div>
127
  <div>
128
- <label className="block text-sm font-bold text-slate-700 mb-2">Конец работы</label>
129
  <div className="relative">
130
  <Clock className="absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400" />
131
  <input
@@ -135,7 +135,7 @@ export default function BookingSettings({ settings, onSave, loading }: BookingSe
135
  ...localSettings,
136
  working_hours: { ...localSettings.working_hours, end: e.target.value }
137
  })}
138
- className="w-full pl-10 pr-4 py-2 bg-slate-50 border border-slate-200 rounded-xl focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 outline-none"
139
  />
140
  </div>
141
  </div>
@@ -143,7 +143,7 @@ export default function BookingSettings({ settings, onSave, loading }: BookingSe
143
 
144
  {/* Slot Duration */}
145
  <div>
146
- <label className="block text-sm font-bold text-slate-700 mb-3">Длительность встречи (минут)</label>
147
  <div className="flex gap-3">
148
  {[15, 30, 45, 60].map((duration) => (
149
  <button
@@ -153,7 +153,7 @@ export default function BookingSettings({ settings, onSave, loading }: BookingSe
153
  "px-4 py-2 rounded-lg font-medium transition-all border-2",
154
  localSettings.slot_duration === duration
155
  ? "bg-blue-50 border-blue-600 text-blue-700"
156
- : "bg-white border-slate-200 text-slate-600 hover:border-blue-300"
157
  )}
158
  >
159
  {duration} мин
@@ -166,7 +166,7 @@ export default function BookingSettings({ settings, onSave, loading }: BookingSe
166
  <div className="pt-6 border-t border-slate-100">
167
  <div className="flex items-center gap-2 mb-4">
168
  <CheckCircle2 className="w-5 h-5 text-green-600" />
169
- <h3 className="font-bold text-slate-900">Напоминания</h3>
170
  </div>
171
 
172
  <label className="flex items-center gap-3 mb-4 cursor-pointer">
@@ -176,15 +176,15 @@ export default function BookingSettings({ settings, onSave, loading }: BookingSe
176
  onChange={(e) => setLocalSettings({ ...localSettings, reminders_enabled: e.target.checked })}
177
  className="w-5 h-5 rounded border-slate-300 text-blue-600 focus:ring-blue-500"
178
  />
179
- <span className="text-sm font-medium text-slate-700">Включить утренние напоминания (Daily Job)</span>
180
  </label>
181
 
182
- <label className="block text-sm font-bold text-slate-700 mb-2">Шаблон сообщения</label>
183
  <p className="text-xs text-slate-500 mb-2">Доступные переменные: {'{name}'}, {'{time}'}</p>
184
  <textarea
185
  value={localSettings.reminder_template || "👋 Здравствуйте, {name}! Напоминаем о вашей встрече сегодня в {time}. Будем ждать вас!"}
186
  onChange={(e) => setLocalSettings({ ...localSettings, reminder_template: e.target.value })}
187
- className="w-full h-24 p-3 bg-slate-50 border border-slate-200 rounded-xl focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 outline-none text-sm"
188
  placeholder="Текст напоминания..."
189
  />
190
  </div>
 
71
  }
72
 
73
  return (
74
+ <div className="bg-surface-elevated rounded-2xl shadow-sm border border-white/10 p-8">
75
  <div className="flex items-center gap-3 mb-6">
76
  <div className="p-2 bg-blue-50 rounded-xl text-blue-600">
77
  <Calendar className="w-6 h-6" />
78
  </div>
79
  <div>
80
+ <h2 className="text-xl font-bold text-white">Настройки записи</h2>
81
  <p className="text-sm text-slate-500">Укажите ваше рабочее время для AI ассистента</p>
82
  </div>
83
  </div>
 
85
  <div className="space-y-8">
86
  {/* Working Days */}
87
  <div>
88
+ <label className="block text-sm font-bold text-slate-300 mb-3">Рабочие дни</label>
89
  <div className="flex gap-2">
90
  {DAYS.map((day) => {
91
  const isSelected = localSettings.working_days?.includes(day.id)
 
97
  "w-10 h-10 rounded-lg font-medium transition-all flex items-center justify-center border-2",
98
  isSelected
99
  ? "bg-blue-600 border-blue-600 text-white shadow-md shadow-blue-200"
100
+ : "bg-surface-elevated border-white/10 text-slate-600 hover:border-blue-300 hover:bg-blue-50"
101
  )}
102
  >
103
  {day.label}
 
110
  {/* Working Hours */}
111
  <div className="grid grid-cols-2 gap-6">
112
  <div>
113
+ <label className="block text-sm font-bold text-slate-300 mb-2">Начало работы</label>
114
  <div className="relative">
115
  <Clock className="absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400" />
116
  <input
 
120
  ...localSettings,
121
  working_hours: { ...localSettings.working_hours, start: e.target.value }
122
  })}
123
+ className="w-full pl-10 pr-4 py-2 bg-surface border border-white/10 rounded-xl focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 outline-none"
124
  />
125
  </div>
126
  </div>
127
  <div>
128
+ <label className="block text-sm font-bold text-slate-300 mb-2">Конец работы</label>
129
  <div className="relative">
130
  <Clock className="absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400" />
131
  <input
 
135
  ...localSettings,
136
  working_hours: { ...localSettings.working_hours, end: e.target.value }
137
  })}
138
+ className="w-full pl-10 pr-4 py-2 bg-surface border border-white/10 rounded-xl focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 outline-none"
139
  />
140
  </div>
141
  </div>
 
143
 
144
  {/* Slot Duration */}
145
  <div>
146
+ <label className="block text-sm font-bold text-slate-300 mb-3">Длительность встречи (минут)</label>
147
  <div className="flex gap-3">
148
  {[15, 30, 45, 60].map((duration) => (
149
  <button
 
153
  "px-4 py-2 rounded-lg font-medium transition-all border-2",
154
  localSettings.slot_duration === duration
155
  ? "bg-blue-50 border-blue-600 text-blue-700"
156
+ : "bg-surface-elevated border-white/10 text-slate-600 hover:border-blue-300"
157
  )}
158
  >
159
  {duration} мин
 
166
  <div className="pt-6 border-t border-slate-100">
167
  <div className="flex items-center gap-2 mb-4">
168
  <CheckCircle2 className="w-5 h-5 text-green-600" />
169
+ <h3 className="font-bold text-white">Напоминания</h3>
170
  </div>
171
 
172
  <label className="flex items-center gap-3 mb-4 cursor-pointer">
 
176
  onChange={(e) => setLocalSettings({ ...localSettings, reminders_enabled: e.target.checked })}
177
  className="w-5 h-5 rounded border-slate-300 text-blue-600 focus:ring-blue-500"
178
  />
179
+ <span className="text-sm font-medium text-slate-300">Включить утренние напоминания (Daily Job)</span>
180
  </label>
181
 
182
+ <label className="block text-sm font-bold text-slate-300 mb-2">Шаблон сообщения</label>
183
  <p className="text-xs text-slate-500 mb-2">Доступные переменные: {'{name}'}, {'{time}'}</p>
184
  <textarea
185
  value={localSettings.reminder_template || "👋 Здравствуйте, {name}! Напоминаем о вашей встрече сегодня в {time}. Будем ждать вас!"}
186
  onChange={(e) => setLocalSettings({ ...localSettings, reminder_template: e.target.value })}
187
+ className="w-full h-24 p-3 bg-surface border border-white/10 rounded-xl focus:ring-2 focus:ring-blue-500/20 focus:border-blue-500 outline-none text-sm"
188
  placeholder="Текст напоминания..."
189
  />
190
  </div>
frontend/components/settings/ProductSettings.tsx CHANGED
@@ -138,14 +138,14 @@ export default function ProductSettings() {
138
  return (
139
  <div className="space-y-6">
140
  {/* Header / Actions */}
141
- <div className="bg-white rounded-2xl p-6 border border-slate-200 shadow-sm">
142
  <div className="flex flex-col md:flex-row md:items-center justify-between gap-4">
143
  <div className="flex items-center gap-4">
144
  <div className="p-3 bg-gradient-to-br from-pink-500 to-rose-500 rounded-2xl shadow-lg shadow-pink-200">
145
  <ShoppingBag className="w-6 h-6 text-white" />
146
  </div>
147
  <div>
148
- <h2 className="text-xl font-bold text-slate-900">Товары и Услуги</h2>
149
  <p className="text-sm text-slate-500">Загрузите товары, чтобы AI мог их продавать</p>
150
  </div>
151
  </div>
@@ -158,7 +158,7 @@ export default function ProductSettings() {
158
  placeholder="Поиск..."
159
  value={search}
160
  onChange={(e) => setSearch(e.target.value)}
161
- className="pl-9 pr-4 py-2 bg-slate-50 border border-slate-200 rounded-xl focus:ring-2 focus:ring-pink-500/20 focus:border-pink-500 outline-none w-full md:w-64 text-sm"
162
  />
163
  </div>
164
  <button
@@ -182,10 +182,10 @@ export default function ProductSettings() {
182
  initial={{ opacity: 0, scale: 0.9 }}
183
  animate={{ opacity: 1, scale: 1 }}
184
  exit={{ opacity: 0, scale: 0.9 }}
185
- className="bg-white rounded-2xl border border-slate-200 overflow-hidden hover:shadow-lg transition-all group"
186
  >
187
  {/* Image Area */}
188
- <div className="aspect-[4/3] bg-slate-100 relative overflow-hidden">
189
  {product.image_url ? (
190
  <img
191
  src={product.image_url}
@@ -203,13 +203,13 @@ export default function ProductSettings() {
203
  <div className="absolute top-3 right-3 flex gap-2 opacity-0 group-hover:opacity-100 transition-opacity translate-y-2 group-hover:translate-y-0">
204
  <button
205
  onClick={() => handleOpenModal(product)}
206
- className="p-2 bg-white/90 backdrop-blur rounded-lg text-slate-700 hover:text-indigo-600 shadow-sm"
207
  >
208
  <Edit3 className="w-3 h-3" />
209
  </button>
210
  <button
211
  onClick={() => handleDelete(product.id)}
212
- className="p-2 bg-white/90 backdrop-blur rounded-lg text-slate-700 hover:text-red-600 shadow-sm"
213
  >
214
  <Trash2 className="w-3 h-3" />
215
  </button>
@@ -219,7 +219,7 @@ export default function ProductSettings() {
219
  {/* Content */}
220
  <div className="p-4">
221
  <div className="flex items-start justify-between gap-2 mb-2">
222
- <h3 className="font-bold text-slate-900 line-clamp-1 text-sm" title={product.name}>
223
  {product.name}
224
  </h3>
225
  <span className="font-bold text-emerald-600 whitespace-nowrap text-sm">
@@ -228,7 +228,7 @@ export default function ProductSettings() {
228
  </div>
229
 
230
  <div className="flex items-center gap-2 mb-2">
231
- <span className="inline-flex items-center gap-1 px-2 py-0.5 rounded-md bg-slate-100 text-[10px] font-medium text-slate-600 uppercase tracking-wider">
232
  <Tag className="w-3 h-3" />
233
  {product.category}
234
  </span>
@@ -252,9 +252,9 @@ export default function ProductSettings() {
252
  whileHover={{ scale: 1.02 }}
253
  whileTap={{ scale: 0.98 }}
254
  onClick={() => handleOpenModal()}
255
- className="bg-slate-50 rounded-2xl border-2 border-dashed border-slate-300 flex flex-col items-center justify-center gap-3 min-h-[250px] hover:border-pink-400 hover:bg-pink-50/50 transition-all group"
256
  >
257
- <div className="p-3 bg-white rounded-full shadow-sm group-hover:shadow-md transition-shadow">
258
  <Plus className="w-6 h-6 text-slate-400 group-hover:text-pink-500" />
259
  </div>
260
  <p className="font-medium text-sm text-slate-500 group-hover:text-pink-600">Добавить товар</p>
@@ -269,11 +269,11 @@ export default function ProductSettings() {
269
  initial={{ opacity: 0, scale: 0.95 }}
270
  animate={{ opacity: 1, scale: 1 }}
271
  exit={{ opacity: 0, scale: 0.95 }}
272
- className="bg-white rounded-2xl shadow-xl w-full max-w-lg overflow-hidden"
273
  >
274
  <form onSubmit={handleSave}>
275
- <div className="p-5 border-b border-slate-100 flex items-center justify-between bg-slate-50/50">
276
- <h2 className="text-lg font-bold text-slate-900">
277
  {editingProduct ? 'Редактирование товара' : 'Новый товар'}
278
  </h2>
279
  <button
@@ -287,19 +287,19 @@ export default function ProductSettings() {
287
 
288
  <div className="p-5 space-y-4">
289
  <div>
290
- <label className="block text-xs font-bold text-slate-700 mb-1">Название</label>
291
  <input
292
  required
293
  value={formData.name}
294
  onChange={e => setFormData({ ...formData, name: e.target.value })}
295
- className="w-full px-4 py-2 bg-slate-50 border border-slate-200 rounded-xl focus:ring-2 focus:ring-pink-500/20 focus:border-pink-500 outline-none text-sm"
296
  placeholder="Например: iPhone 15 Pro"
297
  />
298
  </div>
299
 
300
  <div className="grid grid-cols-2 gap-4">
301
  <div>
302
- <label className="block text-xs font-bold text-slate-700 mb-1">Цена ($)</label>
303
  <div className="relative">
304
  <DollarSign className="w-3.5 h-3.5 text-slate-400 absolute left-3 top-1/2 -translate-y-1/2" />
305
  <input
@@ -311,30 +311,30 @@ export default function ProductSettings() {
311
  const val = parseFloat(e.target.value)
312
  setFormData({ ...formData, price: isNaN(val) ? 0 : val })
313
  }}
314
- className="w-full pl-8 pr-4 py-2 bg-slate-50 border border-slate-200 rounded-xl focus:ring-2 focus:ring-pink-500/20 focus:border-pink-500 outline-none text-sm"
315
  />
316
  </div>
317
  </div>
318
  <div>
319
- <label className="block text-xs font-bold text-slate-700 mb-1">Категория</label>
320
  <input
321
  required
322
  value={formData.category}
323
  onChange={e => setFormData({ ...formData, category: e.target.value })}
324
- className="w-full px-4 py-2 bg-slate-50 border border-slate-200 rounded-xl focus:ring-2 focus:ring-pink-500/20 focus:border-pink-500 outline-none text-sm"
325
  placeholder="Electronics"
326
  />
327
  </div>
328
  </div>
329
 
330
  <div>
331
- <label className="block text-xs font-bold text-slate-700 mb-1">Изображение</label>
332
  <div className="flex gap-3 items-start">
333
  <div className="flex-1 space-y-2">
334
  <input
335
  value={formData.image_url}
336
  onChange={e => setFormData({ ...formData, image_url: e.target.value })}
337
- className="w-full px-4 py-2 bg-slate-50 border border-slate-200 rounded-xl focus:ring-2 focus:ring-pink-500/20 focus:border-pink-500 outline-none text-xs text-slate-600"
338
  placeholder="URL изображения..."
339
  />
340
  <div className="relative">
@@ -360,7 +360,7 @@ export default function ProductSettings() {
360
  />
361
  <label
362
  htmlFor="product-image-upload-modal"
363
- className="inline-flex items-center gap-2 px-3 py-1.5 bg-slate-100 text-slate-600 rounded-lg text-xs font-medium cursor-pointer hover:bg-slate-200 transition-colors"
364
  >
365
  <ImageIcon className="w-3.5 h-3.5" />
366
  Загрузить файл
@@ -369,7 +369,7 @@ export default function ProductSettings() {
369
  </div>
370
 
371
  {formData.image_url && (
372
- <div className="w-16 h-16 rounded-lg border border-slate-200 overflow-hidden bg-slate-50 flex-shrink-0">
373
  <img
374
  src={formData.image_url}
375
  alt="Preview"
@@ -381,22 +381,22 @@ export default function ProductSettings() {
381
  </div>
382
 
383
  <div>
384
- <label className="block text-xs font-bold text-slate-700 mb-1">Описание</label>
385
  <textarea
386
  rows={3}
387
  value={formData.description}
388
  onChange={e => setFormData({ ...formData, description: e.target.value })}
389
- className="w-full px-4 py-2 bg-slate-50 border border-slate-200 rounded-xl focus:ring-2 focus:ring-pink-500/20 focus:border-pink-500 outline-none resize-none text-sm"
390
  placeholder="Краткое описание товара для AI..."
391
  />
392
  </div>
393
  </div>
394
 
395
- <div className="p-5 border-t border-slate-100 bg-slate-50/50 flex justify-end gap-3">
396
  <button
397
  type="button"
398
  onClick={() => setIsModalOpen(false)}
399
- className="px-4 py-2 text-slate-600 font-medium hover:bg-slate-100 rounded-xl transition-colors text-sm"
400
  >
401
  Отмена
402
  </button>
 
138
  return (
139
  <div className="space-y-6">
140
  {/* Header / Actions */}
141
+ <div className="bg-surface-elevated rounded-2xl p-6 border border-white/10 shadow-sm">
142
  <div className="flex flex-col md:flex-row md:items-center justify-between gap-4">
143
  <div className="flex items-center gap-4">
144
  <div className="p-3 bg-gradient-to-br from-pink-500 to-rose-500 rounded-2xl shadow-lg shadow-pink-200">
145
  <ShoppingBag className="w-6 h-6 text-white" />
146
  </div>
147
  <div>
148
+ <h2 className="text-xl font-bold text-white">Товары и Услуги</h2>
149
  <p className="text-sm text-slate-500">Загрузите товары, чтобы AI мог их продавать</p>
150
  </div>
151
  </div>
 
158
  placeholder="Поиск..."
159
  value={search}
160
  onChange={(e) => setSearch(e.target.value)}
161
+ className="pl-9 pr-4 py-2 bg-surface border border-white/10 rounded-xl focus:ring-2 focus:ring-pink-500/20 focus:border-pink-500 outline-none w-full md:w-64 text-sm"
162
  />
163
  </div>
164
  <button
 
182
  initial={{ opacity: 0, scale: 0.9 }}
183
  animate={{ opacity: 1, scale: 1 }}
184
  exit={{ opacity: 0, scale: 0.9 }}
185
+ className="bg-surface-elevated rounded-2xl border border-white/10 overflow-hidden hover:shadow-lg transition-all group"
186
  >
187
  {/* Image Area */}
188
+ <div className="aspect-[4/3] bg-white/5 relative overflow-hidden">
189
  {product.image_url ? (
190
  <img
191
  src={product.image_url}
 
203
  <div className="absolute top-3 right-3 flex gap-2 opacity-0 group-hover:opacity-100 transition-opacity translate-y-2 group-hover:translate-y-0">
204
  <button
205
  onClick={() => handleOpenModal(product)}
206
+ className="p-2 bg-surface-elevated/90 backdrop-blur rounded-lg text-slate-300 hover:text-indigo-600 shadow-sm"
207
  >
208
  <Edit3 className="w-3 h-3" />
209
  </button>
210
  <button
211
  onClick={() => handleDelete(product.id)}
212
+ className="p-2 bg-surface-elevated/90 backdrop-blur rounded-lg text-slate-300 hover:text-red-600 shadow-sm"
213
  >
214
  <Trash2 className="w-3 h-3" />
215
  </button>
 
219
  {/* Content */}
220
  <div className="p-4">
221
  <div className="flex items-start justify-between gap-2 mb-2">
222
+ <h3 className="font-bold text-white line-clamp-1 text-sm" title={product.name}>
223
  {product.name}
224
  </h3>
225
  <span className="font-bold text-emerald-600 whitespace-nowrap text-sm">
 
228
  </div>
229
 
230
  <div className="flex items-center gap-2 mb-2">
231
+ <span className="inline-flex items-center gap-1 px-2 py-0.5 rounded-md bg-white/5 text-[10px] font-medium text-slate-600 uppercase tracking-wider">
232
  <Tag className="w-3 h-3" />
233
  {product.category}
234
  </span>
 
252
  whileHover={{ scale: 1.02 }}
253
  whileTap={{ scale: 0.98 }}
254
  onClick={() => handleOpenModal()}
255
+ className="bg-surface rounded-2xl border-2 border-dashed border-slate-300 flex flex-col items-center justify-center gap-3 min-h-[250px] hover:border-pink-400 hover:bg-pink-50/50 transition-all group"
256
  >
257
+ <div className="p-3 bg-surface-elevated rounded-full shadow-sm group-hover:shadow-md transition-shadow">
258
  <Plus className="w-6 h-6 text-slate-400 group-hover:text-pink-500" />
259
  </div>
260
  <p className="font-medium text-sm text-slate-500 group-hover:text-pink-600">Добавить товар</p>
 
269
  initial={{ opacity: 0, scale: 0.95 }}
270
  animate={{ opacity: 1, scale: 1 }}
271
  exit={{ opacity: 0, scale: 0.95 }}
272
+ className="bg-surface-elevated rounded-2xl shadow-xl w-full max-w-lg overflow-hidden"
273
  >
274
  <form onSubmit={handleSave}>
275
+ <div className="p-5 border-b border-slate-100 flex items-center justify-between bg-surface/50">
276
+ <h2 className="text-lg font-bold text-white">
277
  {editingProduct ? 'Редактирование товара' : 'Новый товар'}
278
  </h2>
279
  <button
 
287
 
288
  <div className="p-5 space-y-4">
289
  <div>
290
+ <label className="block text-xs font-bold text-slate-300 mb-1">Название</label>
291
  <input
292
  required
293
  value={formData.name}
294
  onChange={e => setFormData({ ...formData, name: e.target.value })}
295
+ className="w-full px-4 py-2 bg-surface border border-white/10 rounded-xl focus:ring-2 focus:ring-pink-500/20 focus:border-pink-500 outline-none text-sm"
296
  placeholder="Например: iPhone 15 Pro"
297
  />
298
  </div>
299
 
300
  <div className="grid grid-cols-2 gap-4">
301
  <div>
302
+ <label className="block text-xs font-bold text-slate-300 mb-1">Цена ($)</label>
303
  <div className="relative">
304
  <DollarSign className="w-3.5 h-3.5 text-slate-400 absolute left-3 top-1/2 -translate-y-1/2" />
305
  <input
 
311
  const val = parseFloat(e.target.value)
312
  setFormData({ ...formData, price: isNaN(val) ? 0 : val })
313
  }}
314
+ className="w-full pl-8 pr-4 py-2 bg-surface border border-white/10 rounded-xl focus:ring-2 focus:ring-pink-500/20 focus:border-pink-500 outline-none text-sm"
315
  />
316
  </div>
317
  </div>
318
  <div>
319
+ <label className="block text-xs font-bold text-slate-300 mb-1">Категория</label>
320
  <input
321
  required
322
  value={formData.category}
323
  onChange={e => setFormData({ ...formData, category: e.target.value })}
324
+ className="w-full px-4 py-2 bg-surface border border-white/10 rounded-xl focus:ring-2 focus:ring-pink-500/20 focus:border-pink-500 outline-none text-sm"
325
  placeholder="Electronics"
326
  />
327
  </div>
328
  </div>
329
 
330
  <div>
331
+ <label className="block text-xs font-bold text-slate-300 mb-1">Изображение</label>
332
  <div className="flex gap-3 items-start">
333
  <div className="flex-1 space-y-2">
334
  <input
335
  value={formData.image_url}
336
  onChange={e => setFormData({ ...formData, image_url: e.target.value })}
337
+ className="w-full px-4 py-2 bg-surface border border-white/10 rounded-xl focus:ring-2 focus:ring-pink-500/20 focus:border-pink-500 outline-none text-xs text-slate-600"
338
  placeholder="URL изображения..."
339
  />
340
  <div className="relative">
 
360
  />
361
  <label
362
  htmlFor="product-image-upload-modal"
363
+ className="inline-flex items-center gap-2 px-3 py-1.5 bg-white/5 text-slate-600 rounded-lg text-xs font-medium cursor-pointer hover:bg-slate-200 transition-colors"
364
  >
365
  <ImageIcon className="w-3.5 h-3.5" />
366
  Загрузить файл
 
369
  </div>
370
 
371
  {formData.image_url && (
372
+ <div className="w-16 h-16 rounded-lg border border-white/10 overflow-hidden bg-surface flex-shrink-0">
373
  <img
374
  src={formData.image_url}
375
  alt="Preview"
 
381
  </div>
382
 
383
  <div>
384
+ <label className="block text-xs font-bold text-slate-300 mb-1">Описание</label>
385
  <textarea
386
  rows={3}
387
  value={formData.description}
388
  onChange={e => setFormData({ ...formData, description: e.target.value })}
389
+ className="w-full px-4 py-2 bg-surface border border-white/10 rounded-xl focus:ring-2 focus:ring-pink-500/20 focus:border-pink-500 outline-none resize-none text-sm"
390
  placeholder="Краткое описание товара для AI..."
391
  />
392
  </div>
393
  </div>
394
 
395
+ <div className="p-5 border-t border-slate-100 bg-surface/50 flex justify-end gap-3">
396
  <button
397
  type="button"
398
  onClick={() => setIsModalOpen(false)}
399
+ className="px-4 py-2 text-slate-600 font-medium hover:bg-white/5 rounded-xl transition-colors text-sm"
400
  >
401
  Отмена
402
  </button>