Spaces:
Running

axeronis commited on
Commit
ef78ff8
·
1 Parent(s): 1aaa7c6

feat(frontend): Complete Aurora Dark redesign with Russian localization

Browse files

- Updated globals.css with new Aurora palette, gradients, glassmorphism
- Localized Sidebar navigation to Russian
- Redesigned dashboard with Russian metrics labels
- Applied dark theme to chats page and LeadsList component
- Updated brain settings page with Aurora styling

frontend/app/chats/page.tsx CHANGED
@@ -67,16 +67,16 @@ export default function ChatsPage() {
67
 
68
  if (authLoading || !user) {
69
  return (
70
- <div className="flex items-center justify-center h-screen bg-slate-50">
71
- <Loader2 className="w-8 h-8 animate-spin text-indigo-600" />
72
  </div>
73
  )
74
  }
75
 
76
  return (
77
- <div className="flex h-screen overflow-hidden bg-slate-100">
78
  {/* Left Column: Leads List (Collapsible) */}
79
- <div className={`h-full border-r border-slate-200 z-20 transition-all duration-300 ease-in-out overflow-hidden ${isLeadsListOpen ? 'w-1/4 min-w-[300px] max-w-[400px]' : 'w-0 border-none'}`}>
80
  <LeadsList
81
  leads={leads}
82
  isLoading={leadsLoading}
@@ -108,9 +108,9 @@ export default function ChatsPage() {
108
  isLeadsListOpen={isLeadsListOpen}
109
  />
110
  ) : (
111
- <div className="h-full flex flex-col items-center justify-center bg-slate-50 text-slate-400">
112
- <div className="w-16 h-16 bg-white rounded-2xl flex items-center justify-center shadow-sm mb-4">
113
- <Loader2 className="w-8 h-8 animate-spin text-indigo-200" />
114
  {/* Or a static icon if not loading */}
115
  </div>
116
  <p className="font-medium">Выберите диалог из списка</p>
@@ -119,7 +119,7 @@ export default function ChatsPage() {
119
  </div>
120
 
121
  {/* Right Column: Client Intelligence (25%) */}
122
- <div className="w-1/4 min-w-[300px] max-w-[400px] h-full border-l border-slate-200 bg-white hidden lg:block z-20">
123
  {selectedLead ? (
124
  <ClientCard
125
  lead={selectedLead}
@@ -130,7 +130,7 @@ export default function ChatsPage() {
130
  tenantId={user.tenant_id}
131
  />
132
  ) : (
133
- <div className="h-full flex items-center justify-center bg-slate-50/50 text-slate-400 text-sm">
134
  Нет выбранного лида
135
  </div>
136
  )}
 
67
 
68
  if (authLoading || !user) {
69
  return (
70
+ <div className="flex items-center justify-center h-screen bg-[#050510]">
71
+ <Loader2 className="w-8 h-8 animate-spin text-indigo-500" />
72
  </div>
73
  )
74
  }
75
 
76
  return (
77
+ <div className="flex h-screen overflow-hidden bg-[#050510]">
78
  {/* Left Column: Leads List (Collapsible) */}
79
+ <div className={`h-full border-r border-white/10 z-20 transition-all duration-300 ease-in-out overflow-hidden ${isLeadsListOpen ? 'w-1/4 min-w-[300px] max-w-[400px]' : 'w-0 border-none'}`}>
80
  <LeadsList
81
  leads={leads}
82
  isLoading={leadsLoading}
 
108
  isLeadsListOpen={isLeadsListOpen}
109
  />
110
  ) : (
111
+ <div className="h-full flex flex-col items-center justify-center bg-[#0D0E18] text-slate-500">
112
+ <div className="w-16 h-16 bg-[#12131F] rounded-2xl flex items-center justify-center border border-white/10 mb-4">
113
+ <Loader2 className="w-8 h-8 animate-spin text-indigo-500/30" />
114
  {/* Or a static icon if not loading */}
115
  </div>
116
  <p className="font-medium">Выберите диалог из списка</p>
 
119
  </div>
120
 
121
  {/* Right Column: Client Intelligence (25%) */}
122
+ <div className="w-1/4 min-w-[300px] max-w-[400px] h-full border-l border-white/10 bg-[#0D0E18] hidden lg:block z-20">
123
  {selectedLead ? (
124
  <ClientCard
125
  lead={selectedLead}
 
130
  tenantId={user.tenant_id}
131
  />
132
  ) : (
133
+ <div className="h-full flex items-center justify-center bg-[#0D0E18] text-slate-500 text-sm">
134
  Нет выбранного лида
135
  </div>
136
  )}
frontend/app/dashboard/page.tsx CHANGED
@@ -101,10 +101,10 @@ export default function DashboardPage() {
101
 
102
  const getDateRangeLabel = () => {
103
  switch (dateRange) {
104
- case '7d': return '7 Days'
105
- case '30d': return '30 Days'
106
- case '90d': return '90 Days'
107
- case 'all': return 'All Time'
108
  }
109
  }
110
 
@@ -147,7 +147,7 @@ export default function DashboardPage() {
147
  setLastUpdated(new Date())
148
  } catch (err) {
149
  console.error('Analytics fetch error:', err)
150
- setError('System Error. Please retry.')
151
  } finally {
152
  setLoading(false)
153
  }
@@ -157,7 +157,7 @@ export default function DashboardPage() {
157
  if (authLoading) return
158
 
159
  if (!user) {
160
- setError('Unauthorized access')
161
  setLoading(false)
162
  return
163
  }
@@ -213,7 +213,7 @@ export default function DashboardPage() {
213
  <div className="flex items-center justify-center min-h-screen bg-[#030014]">
214
  <div className="flex flex-col items-center gap-4">
215
  <div className="w-8 h-8 rounded-full border-2 border-indigo-500 border-t-transparent animate-spin"></div>
216
- <p className="text-indigo-400 font-mono text-xs animate-pulse">INITIALIZING DASHBOARD...</p>
217
  </div>
218
  </div>
219
  )
@@ -224,14 +224,14 @@ export default function DashboardPage() {
224
  <div className="flex items-center justify-center min-h-screen bg-[#030014]">
225
  <div className="bg-[#0f1117] p-8 rounded-xl border border-red-500/30 max-w-md text-center">
226
  <AlertCircle className="w-8 h-8 text-red-500 mx-auto mb-4" />
227
- <h2 className="text-lg font-bold text-white mb-2 font-mono">SYSTEM ERROR</h2>
228
  <p className="text-slate-400 mb-6 text-sm">{error}</p>
229
  <button
230
  onClick={fetchAnalytics}
231
  className="px-6 py-2 bg-red-600/20 hover:bg-red-600/30 text-red-400 border border-red-500/50 rounded flex items-center gap-2 mx-auto transition-all"
232
  >
233
  <RefreshCw className="w-4 h-4" />
234
- RETRY CONNECTION
235
  </button>
236
  </div>
237
  </div>
@@ -248,10 +248,10 @@ export default function DashboardPage() {
248
  <div className="flex flex-col md:flex-row md:items-center justify-between gap-4 border-b border-white/5 pb-6">
249
  <div>
250
  <h1 className="text-2xl font-black text-white tracking-wider flex items-center gap-3">
251
- COMMAND CENTER <span className="px-2 py-0.5 rounded bg-indigo-500/20 text-indigo-400 text-[10px] font-mono border border-indigo-500/30">LIVESTREAM</span>
252
  </h1>
253
  <div className="flex items-center gap-2 mt-1">
254
- <p className="text-slate-500 text-xs font-mono">Performance Metrics & AI Status</p>
255
  </div>
256
  </div>
257
  <div className="flex items-center gap-3">
@@ -277,10 +277,10 @@ export default function DashboardPage() {
277
  className="absolute top-full right-0 mt-2 w-[180px] bg-[#0f1117] rounded-lg border border-white/10 z-50 overflow-hidden"
278
  >
279
  {[
280
- { val: '7d', label: '7 Days' },
281
- { val: '30d', label: '30 Days' },
282
- { val: '90d', label: '90 Days' },
283
- { val: 'all', label: 'All Time' }
284
  ].map((option) => (
285
  <button
286
  key={option.val}
@@ -319,7 +319,7 @@ export default function DashboardPage() {
319
  {/* Total Leads */}
320
  <div className="glass-card p-5 rounded-xl relative overflow-hidden group">
321
  <div className="flex items-center justify-between mb-2">
322
- <span className="text-slate-500 text-[10px] font-bold uppercase tracking-widest font-mono">Total Leads</span>
323
  <Users className="w-4 h-4 text-slate-600 group-hover:text-indigo-500 transition-colors" />
324
  </div>
325
  <div className="flex items-end justify-between">
@@ -332,7 +332,7 @@ export default function DashboardPage() {
332
  {/* Pipeline Value */}
333
  <div className="glass-card p-5 rounded-xl relative overflow-hidden group">
334
  <div className="flex items-center justify-between mb-2">
335
- <span className="text-slate-500 text-[10px] font-bold uppercase tracking-widest font-mono">Pipeline Value</span>
336
  <DollarSign className="w-4 h-4 text-slate-600 group-hover:text-emerald-500 transition-colors" />
337
  </div>
338
  <div className="flex items-end justify-between">
@@ -347,7 +347,7 @@ export default function DashboardPage() {
347
  {/* Conversion Rate */}
348
  <div className="glass-card p-5 rounded-xl relative overflow-hidden group">
349
  <div className="flex items-center justify-between mb-2">
350
- <span className="text-slate-500 text-[10px] font-bold uppercase tracking-widest font-mono">Conversion</span>
351
  <Target className="w-4 h-4 text-slate-600 group-hover:text-blue-500 transition-colors" />
352
  </div>
353
  <div className="flex items-end justify-between">
@@ -363,14 +363,14 @@ export default function DashboardPage() {
363
  <div className="glass-card p-5 rounded-xl relative overflow-hidden group border-indigo-500/30 bg-indigo-900/10">
364
  <div className="absolute -right-4 -top-4 w-20 h-20 bg-indigo-500/20 blur-xl rounded-full"></div>
365
  <div className="flex items-center justify-between mb-2 relative z-10">
366
- <span className="text-indigo-300 text-[10px] font-bold uppercase tracking-widest font-mono">Active Threads (24h)</span>
367
  <Zap className="w-4 h-4 text-indigo-400 animate-pulse" />
368
  </div>
369
  <div className="flex items-end justify-between relative z-10">
370
  <h3 className="text-3xl font-mono font-bold text-white tracking-tight">
371
  {data.metrics.active_leads_24h}
372
  </h3>
373
- <span className="text-[10px] text-indigo-300 font-mono bg-indigo-500/20 px-1.5 py-0.5 rounded border border-indigo-500/30">ONLINE</span>
374
  </div>
375
  </div>
376
  </div>
@@ -383,7 +383,7 @@ export default function DashboardPage() {
383
  <div className="lg:col-span-2 glass-card p-6 rounded-xl">
384
  <div className="flex items-center justify-between mb-6">
385
  <div>
386
- <h3 className="text-sm font-bold text-white font-mono uppercase">Pipeline Velocity</h3>
387
  </div>
388
  <Activity className="w-4 h-4 text-slate-500" />
389
  </div>
@@ -439,7 +439,7 @@ export default function DashboardPage() {
439
  <div className="glass-card p-6 rounded-xl">
440
  <div className="flex items-center justify-between mb-6">
441
  <div>
442
- <h3 className="text-sm font-bold text-white font-mono uppercase">Conversion Funnel</h3>
443
  </div>
444
  </div>
445
  <div className="space-y-4">
@@ -478,7 +478,7 @@ export default function DashboardPage() {
478
  <div className="glass-card p-6 rounded-xl">
479
  <div className="flex items-center justify-between mb-4">
480
  <div>
481
- <h3 className="text-sm font-bold text-white font-mono uppercase">Psychograpics (DISC)</h3>
482
  </div>
483
  </div>
484
  <div className="h-[200px] w-full relative">
@@ -510,7 +510,7 @@ export default function DashboardPage() {
510
  <div className="absolute inset-0 flex items-center justify-center pointer-events-none">
511
  <div className="text-center">
512
  <span className="block text-xl font-bold text-white font-mono">{data.metrics.total_leads}</span>
513
- <span className="text-[8px] text-slate-500 uppercase tracking-widest">LEADS</span>
514
  </div>
515
  </div>
516
  </div>
 
101
 
102
  const getDateRangeLabel = () => {
103
  switch (dateRange) {
104
+ case '7d': return '7 дней'
105
+ case '30d': return '30 дней'
106
+ case '90d': return '90 дней'
107
+ case 'all': return 'Всё время'
108
  }
109
  }
110
 
 
147
  setLastUpdated(new Date())
148
  } catch (err) {
149
  console.error('Analytics fetch error:', err)
150
+ setError('Ошибка системы. Повторите попытку.')
151
  } finally {
152
  setLoading(false)
153
  }
 
157
  if (authLoading) return
158
 
159
  if (!user) {
160
+ setError('Нет авторизации')
161
  setLoading(false)
162
  return
163
  }
 
213
  <div className="flex items-center justify-center min-h-screen bg-[#030014]">
214
  <div className="flex flex-col items-center gap-4">
215
  <div className="w-8 h-8 rounded-full border-2 border-indigo-500 border-t-transparent animate-spin"></div>
216
+ <p className="text-indigo-400 font-mono text-xs animate-pulse">ЗАГРУЗКА ПАНЕЛИ...</p>
217
  </div>
218
  </div>
219
  )
 
224
  <div className="flex items-center justify-center min-h-screen bg-[#030014]">
225
  <div className="bg-[#0f1117] p-8 rounded-xl border border-red-500/30 max-w-md text-center">
226
  <AlertCircle className="w-8 h-8 text-red-500 mx-auto mb-4" />
227
+ <h2 className="text-lg font-bold text-white mb-2 font-mono">ОШИБКА СИСТЕМЫ</h2>
228
  <p className="text-slate-400 mb-6 text-sm">{error}</p>
229
  <button
230
  onClick={fetchAnalytics}
231
  className="px-6 py-2 bg-red-600/20 hover:bg-red-600/30 text-red-400 border border-red-500/50 rounded flex items-center gap-2 mx-auto transition-all"
232
  >
233
  <RefreshCw className="w-4 h-4" />
234
+ ПОВТОРИТЬ
235
  </button>
236
  </div>
237
  </div>
 
248
  <div className="flex flex-col md:flex-row md:items-center justify-between gap-4 border-b border-white/5 pb-6">
249
  <div>
250
  <h1 className="text-2xl font-black text-white tracking-wider flex items-center gap-3">
251
+ ПАНЕЛЬ УПРАВЛЕНИЯ <span className="px-2 py-0.5 rounded bg-indigo-500/20 text-indigo-400 text-[10px] font-mono border border-indigo-500/30">LIVE</span>
252
  </h1>
253
  <div className="flex items-center gap-2 mt-1">
254
+ <p className="text-slate-500 text-xs font-mono">Метрики и статус ИИ</p>
255
  </div>
256
  </div>
257
  <div className="flex items-center gap-3">
 
277
  className="absolute top-full right-0 mt-2 w-[180px] bg-[#0f1117] rounded-lg border border-white/10 z-50 overflow-hidden"
278
  >
279
  {[
280
+ { val: '7d', label: '7 дней' },
281
+ { val: '30d', label: '30 дней' },
282
+ { val: '90d', label: '90 дней' },
283
+ { val: 'all', label: 'Всё время' }
284
  ].map((option) => (
285
  <button
286
  key={option.val}
 
319
  {/* Total Leads */}
320
  <div className="glass-card p-5 rounded-xl relative overflow-hidden group">
321
  <div className="flex items-center justify-between mb-2">
322
+ <span className="text-slate-500 text-[10px] font-bold uppercase tracking-widest font-mono">Всего лидов</span>
323
  <Users className="w-4 h-4 text-slate-600 group-hover:text-indigo-500 transition-colors" />
324
  </div>
325
  <div className="flex items-end justify-between">
 
332
  {/* Pipeline Value */}
333
  <div className="glass-card p-5 rounded-xl relative overflow-hidden group">
334
  <div className="flex items-center justify-between mb-2">
335
+ <span className="text-slate-500 text-[10px] font-bold uppercase tracking-widest font-mono">Пайплайн</span>
336
  <DollarSign className="w-4 h-4 text-slate-600 group-hover:text-emerald-500 transition-colors" />
337
  </div>
338
  <div className="flex items-end justify-between">
 
347
  {/* Conversion Rate */}
348
  <div className="glass-card p-5 rounded-xl relative overflow-hidden group">
349
  <div className="flex items-center justify-between mb-2">
350
+ <span className="text-slate-500 text-[10px] font-bold uppercase tracking-widest font-mono">Конверсия</span>
351
  <Target className="w-4 h-4 text-slate-600 group-hover:text-blue-500 transition-colors" />
352
  </div>
353
  <div className="flex items-end justify-between">
 
363
  <div className="glass-card p-5 rounded-xl relative overflow-hidden group border-indigo-500/30 bg-indigo-900/10">
364
  <div className="absolute -right-4 -top-4 w-20 h-20 bg-indigo-500/20 blur-xl rounded-full"></div>
365
  <div className="flex items-center justify-between mb-2 relative z-10">
366
+ <span className="text-indigo-300 text-[10px] font-bold uppercase tracking-widest font-mono">Активные (24ч)</span>
367
  <Zap className="w-4 h-4 text-indigo-400 animate-pulse" />
368
  </div>
369
  <div className="flex items-end justify-between relative z-10">
370
  <h3 className="text-3xl font-mono font-bold text-white tracking-tight">
371
  {data.metrics.active_leads_24h}
372
  </h3>
373
+ <span className="text-[10px] text-indigo-300 font-mono bg-indigo-500/20 px-1.5 py-0.5 rounded border border-indigo-500/30">ОНЛАЙН</span>
374
  </div>
375
  </div>
376
  </div>
 
383
  <div className="lg:col-span-2 glass-card p-6 rounded-xl">
384
  <div className="flex items-center justify-between mb-6">
385
  <div>
386
+ <h3 className="text-sm font-bold text-white font-mono uppercase">Динамика пайплайна</h3>
387
  </div>
388
  <Activity className="w-4 h-4 text-slate-500" />
389
  </div>
 
439
  <div className="glass-card p-6 rounded-xl">
440
  <div className="flex items-center justify-between mb-6">
441
  <div>
442
+ <h3 className="text-sm font-bold text-white font-mono uppercase">Воронка продаж</h3>
443
  </div>
444
  </div>
445
  <div className="space-y-4">
 
478
  <div className="glass-card p-6 rounded-xl">
479
  <div className="flex items-center justify-between mb-4">
480
  <div>
481
+ <h3 className="text-sm font-bold text-white font-mono uppercase">Психотипы (DISC)</h3>
482
  </div>
483
  </div>
484
  <div className="h-[200px] w-full relative">
 
510
  <div className="absolute inset-0 flex items-center justify-center pointer-events-none">
511
  <div className="text-center">
512
  <span className="block text-xl font-bold text-white font-mono">{data.metrics.total_leads}</span>
513
+ <span className="text-[8px] text-slate-500 uppercase tracking-widest">ЛИДЫ</span>
514
  </div>
515
  </div>
516
  </div>
frontend/app/globals.css CHANGED
@@ -6,74 +6,94 @@ html {
6
  }
7
 
8
  /*
9
- DESIGN SYSTEM: DARK MODE ENTERPRISE
10
- "Command Center" Aesthetic
11
  */
12
  :root {
13
- /* The Void (Base) */
14
- --background: #030014;
15
- /* Deep Space */
16
- --surface: #0f1117;
17
- /* Gunmetal */
18
- --surface-highlight: #1e293b;
19
-
20
- /* The Energy (Accents) */
21
- --primary: #6366f1;
22
- /* Indigo */
23
- --primary-glow: rgba(99, 102, 241, 0.5);
24
- --accent: #f43f5e;
25
- /* Rose Neon */
26
- --cyan: #06b6d4;
27
- /* Cyber Blue */
 
 
 
 
 
28
 
29
  /* Text */
30
- --foreground: #f8fafc;
31
- --text-muted: #94a3b8;
 
 
32
 
33
- /* Structure */
34
  --border: rgba(255, 255, 255, 0.08);
 
35
  --border-active: rgba(99, 102, 241, 0.5);
36
- --radius-sm: 4px;
37
- --radius-md: 8px;
 
 
 
 
 
 
 
 
 
38
  }
39
 
40
  body {
41
  background-color: var(--background);
42
- /* Hex Grid Background Pattern */
43
  background-image:
44
- linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
45
- linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
46
- background-size: 50px 50px;
47
- background-position: center top;
48
  color: var(--foreground);
49
- font-family: 'Inter', system-ui, sans-serif;
50
  overflow-x: hidden;
51
  min-height: 100vh;
 
 
52
  }
53
 
54
- /* Add a vignette to focus center */
55
- body::after {
56
- content: "";
57
- position: fixed;
58
- inset: 0;
59
- background: radial-gradient(circle at 50% 50%, transparent 0%, #030014 90%);
60
- pointer-events: none;
61
- z-index: -1;
 
62
  }
63
 
64
- /* UTILITIES */
65
-
66
- /* Inputs & Textareas - High Visibility */
67
  input,
68
  textarea,
69
  select {
70
- color: #f8fafc !important;
71
- /* White text */
72
- background-color: rgba(15, 23, 42, 0.6) !important;
73
- /* Semi-transparent dark */
74
  border: 1px solid var(--border) !important;
75
  border-radius: var(--radius-md) !important;
76
  transition: all 0.2s ease;
 
 
 
 
 
 
77
  }
78
 
79
  input:focus,
@@ -81,129 +101,254 @@ textarea:focus,
81
  select:focus {
82
  outline: none !important;
83
  border-color: var(--primary) !important;
84
- box-shadow: 0 0 15px -3px var(--primary-glow) !important;
85
  }
86
 
87
- /* Chrome/Edge Autofill Fix */
88
  input:-webkit-autofill,
89
  input:-webkit-autofill:hover,
90
- input:-webkit-autofill:focus,
91
- input:-webkit-autofill:active {
92
  -webkit-background-clip: text;
93
- -webkit-text-fill-color: #ffffff !important;
94
  transition: background-color 5000s ease-in-out 0s;
95
- box-shadow: inset 0 0 20px 20px #0f172a29;
96
  }
97
 
98
- /* Scrollbar - Sleek */
99
  ::-webkit-scrollbar {
100
  width: 6px;
 
101
  }
102
 
103
  ::-webkit-scrollbar-track {
104
- background: #020005;
105
  }
106
 
107
  ::-webkit-scrollbar-thumb {
108
- background: #334155;
109
  border-radius: 3px;
110
  }
111
 
112
  ::-webkit-scrollbar-thumb:hover {
113
- background: #475569;
114
  }
115
 
116
- /* Glass Cards - Sharper */
117
  .glass-card {
118
- background: rgba(15, 17, 23, 0.7);
119
- /* Darker, less transparent */
120
- backdrop-filter: blur(12px);
121
  border: 1px solid var(--border);
122
- box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
 
123
  }
124
 
125
  .glass-card:hover {
126
- border-color: rgba(255, 255, 255, 0.15);
 
127
  }
128
 
129
- /* Neon Text */
130
- .text-neon {
131
- color: #fff;
132
- text-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
133
  }
134
 
135
- /* Text Gradients */
136
  .text-gradient-primary {
137
- background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
138
  -webkit-background-clip: text;
 
139
  -webkit-text-fill-color: transparent;
140
  }
141
 
142
- .text-gradient-accent {
143
- background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
144
  -webkit-background-clip: text;
 
145
  -webkit-text-fill-color: transparent;
146
  }
147
 
148
- /* Glow Effects */
149
- .glow-point {
150
- position: absolute;
151
- width: 300px;
152
- height: 300px;
153
- background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
154
- border-radius: 50%;
155
- pointer-events: none;
156
- z-index: 0;
157
  }
158
 
159
- /* Spotlight Effect */
160
- .spotlight-card {
161
- position: relative;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
162
  overflow: hidden;
163
  }
164
 
165
- .spotlight-card::before {
166
- content: '';
167
  position: absolute;
168
- top: 0;
169
- left: -100%;
170
- width: 200%;
171
- height: 100%;
172
- background: linear-gradient(115deg,
173
- transparent 0%,
174
- transparent 40%,
175
- rgba(255, 255, 255, 0.05) 45%,
176
- rgba(255, 255, 255, 0.1) 50%,
177
- rgba(255, 255, 255, 0.05) 55%,
178
- transparent 60%,
179
- transparent 100%);
180
- transform: skewX(-20deg);
181
- transition: left 0.5s;
182
- pointer-events: none;
183
  }
184
 
185
- .spotlight-card:hover::before {
186
- left: 100%;
187
- transition: left 0.7s;
 
 
 
188
  }
189
 
190
- /* Animations */
191
- @keyframes float {
192
- 0% {
193
- transform: translateY(0px);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
194
  }
195
 
196
  50% {
197
- transform: translateY(-10px);
198
  }
199
 
200
- 100% {
201
- transform: translateY(0px);
202
  }
203
  }
204
 
205
- .animate-float {
206
- animation: float 6s ease-in-out infinite;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
207
  }
208
 
209
  @keyframes pulse-glow {
@@ -211,22 +356,18 @@ input:-webkit-autofill:active {
211
  0%,
212
  100% {
213
  opacity: 0.5;
214
- transform: scale(1);
215
  }
216
 
217
  50% {
218
- opacity: 0.8;
219
- transform: scale(1.05);
220
  }
221
  }
222
 
223
- .animate-pulse-glow {
224
- animation: pulse-glow 4s ease-in-out infinite;
225
- }
226
-
227
  @keyframes shimmer {
228
  from {
229
- background-position: 0 0;
230
  }
231
 
232
  to {
@@ -234,26 +375,120 @@ input:-webkit-autofill:active {
234
  }
235
  }
236
 
237
- .animate-shimmer {
238
- animation: shimmer 2s linear infinite;
239
- }
240
 
241
- /* Animations */
242
- @keyframes grid-move {
243
- 0% {
244
  transform: translateY(0);
245
  }
246
 
247
- 100% {
248
- transform: translateY(50px);
249
  }
250
  }
251
 
252
- .animate-grid {
253
- animation: grid-move 20s linear infinite;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
254
  }
255
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
256
  .input-glow:focus-within {
257
- box-shadow: 0 0 20px -5px rgba(99, 102, 241, 0.4);
258
- border-color: rgba(99, 102, 241, 0.5);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
259
  }
 
6
  }
7
 
8
  /*
9
+ DESIGN SYSTEM: AURORA DARK
10
+ Premium, bold design with gradients and glassmorphism
11
  */
12
  :root {
13
+ /* === AURORA PALETTE === */
14
+
15
+ /* Backgrounds */
16
+ --background: #050510;
17
+ --surface: #0D0E18;
18
+ --surface-elevated: #12131F;
19
+ --surface-hover: #1A1B2E;
20
+
21
+ /* Primary Gradient (Indigo → Violet → Pink) */
22
+ --primary: #6366F1;
23
+ --primary-light: #818CF8;
24
+ --secondary: #8B5CF6;
25
+ --accent: #EC4899;
26
+ --accent-cyan: #22D3EE;
27
+
28
+ /* Semantic Colors */
29
+ --success: #10B981;
30
+ --warning: #F59E0B;
31
+ --error: #EF4444;
32
+ --info: #3B82F6;
33
 
34
  /* Text */
35
+ --foreground: #F8FAFC;
36
+ --text-secondary: #CBD5E1;
37
+ --text-muted: #64748B;
38
+ --text-dim: #475569;
39
 
40
+ /* Borders */
41
  --border: rgba(255, 255, 255, 0.08);
42
+ --border-hover: rgba(255, 255, 255, 0.15);
43
  --border-active: rgba(99, 102, 241, 0.5);
44
+
45
+ /* Glow Effects */
46
+ --glow-primary: rgba(99, 102, 241, 0.4);
47
+ --glow-accent: rgba(236, 72, 153, 0.4);
48
+ --glow-success: rgba(16, 185, 129, 0.4);
49
+
50
+ /* Radius */
51
+ --radius-sm: 6px;
52
+ --radius-md: 10px;
53
+ --radius-lg: 16px;
54
+ --radius-xl: 24px;
55
  }
56
 
57
  body {
58
  background-color: var(--background);
 
59
  background-image:
60
+ radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
61
+ radial-gradient(ellipse 60% 40% at 100% 100%, rgba(139, 92, 246, 0.1), transparent),
62
+ radial-gradient(ellipse 50% 30% at 0% 100%, rgba(236, 72, 153, 0.08), transparent);
 
63
  color: var(--foreground);
64
+ font-family: 'Inter', system-ui, -apple-system, sans-serif;
65
  overflow-x: hidden;
66
  min-height: 100vh;
67
+ -webkit-font-smoothing: antialiased;
68
+ -moz-osx-font-smoothing: grayscale;
69
  }
70
 
71
+ /* === TYPOGRAPHY === */
72
+ h1,
73
+ h2,
74
+ h3,
75
+ h4,
76
+ h5,
77
+ h6 {
78
+ font-weight: 700;
79
+ letter-spacing: -0.02em;
80
  }
81
 
82
+ /* === INPUTS & FORMS === */
 
 
83
  input,
84
  textarea,
85
  select {
86
+ color: var(--foreground) !important;
87
+ background-color: var(--surface) !important;
 
 
88
  border: 1px solid var(--border) !important;
89
  border-radius: var(--radius-md) !important;
90
  transition: all 0.2s ease;
91
+ font-size: 14px;
92
+ }
93
+
94
+ input::placeholder,
95
+ textarea::placeholder {
96
+ color: var(--text-muted) !important;
97
  }
98
 
99
  input:focus,
 
101
  select:focus {
102
  outline: none !important;
103
  border-color: var(--primary) !important;
104
+ box-shadow: 0 0 0 3px var(--glow-primary), 0 0 20px -5px var(--glow-primary) !important;
105
  }
106
 
107
+ /* Chrome Autofill Fix */
108
  input:-webkit-autofill,
109
  input:-webkit-autofill:hover,
110
+ input:-webkit-autofill:focus {
 
111
  -webkit-background-clip: text;
112
+ -webkit-text-fill-color: var(--foreground) !important;
113
  transition: background-color 5000s ease-in-out 0s;
114
+ box-shadow: inset 0 0 20px 20px var(--surface);
115
  }
116
 
117
+ /* === SCROLLBAR === */
118
  ::-webkit-scrollbar {
119
  width: 6px;
120
+ height: 6px;
121
  }
122
 
123
  ::-webkit-scrollbar-track {
124
+ background: var(--background);
125
  }
126
 
127
  ::-webkit-scrollbar-thumb {
128
+ background: var(--text-dim);
129
  border-radius: 3px;
130
  }
131
 
132
  ::-webkit-scrollbar-thumb:hover {
133
+ background: var(--text-muted);
134
  }
135
 
136
+ /* === GLASS CARDS === */
137
  .glass-card {
138
+ background: rgba(13, 14, 24, 0.8);
139
+ backdrop-filter: blur(16px);
140
+ -webkit-backdrop-filter: blur(16px);
141
  border: 1px solid var(--border);
142
+ border-radius: var(--radius-lg);
143
+ transition: all 0.3s ease;
144
  }
145
 
146
  .glass-card:hover {
147
+ border-color: var(--border-hover);
148
+ box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.5);
149
  }
150
 
151
+ /* Glass card with gradient border on hover */
152
+ .glass-card-gradient {
153
+ background: rgba(13, 14, 24, 0.8);
154
+ backdrop-filter: blur(16px);
155
+ -webkit-backdrop-filter: blur(16px);
156
+ border-radius: var(--radius-lg);
157
+ position: relative;
158
+ transition: all 0.3s ease;
159
+ }
160
+
161
+ .glass-card-gradient::before {
162
+ content: "";
163
+ position: absolute;
164
+ inset: 0;
165
+ border-radius: var(--radius-lg);
166
+ padding: 1px;
167
+ background: linear-gradient(135deg, transparent 40%, var(--primary) 50%, var(--accent) 60%, transparent 70%);
168
+ background-size: 300% 300%;
169
+ background-position: 0% 0%;
170
+ -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
171
+ mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
172
+ -webkit-mask-composite: xor;
173
+ mask-composite: exclude;
174
+ opacity: 0;
175
+ transition: all 0.5s ease;
176
+ }
177
+
178
+ .glass-card-gradient:hover::before {
179
+ opacity: 1;
180
+ background-position: 100% 100%;
181
+ }
182
+
183
+ /* === GRADIENT TEXT === */
184
+ .text-gradient-aurora {
185
+ background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
186
+ -webkit-background-clip: text;
187
+ background-clip: text;
188
+ -webkit-text-fill-color: transparent;
189
  }
190
 
 
191
  .text-gradient-primary {
192
+ background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
193
  -webkit-background-clip: text;
194
+ background-clip: text;
195
  -webkit-text-fill-color: transparent;
196
  }
197
 
198
+ .text-gradient-success {
199
+ background: linear-gradient(135deg, var(--success) 0%, #34D399 100%);
200
  -webkit-background-clip: text;
201
+ background-clip: text;
202
  -webkit-text-fill-color: transparent;
203
  }
204
 
205
+ /* === GLOW EFFECTS === */
206
+ .glow-primary {
207
+ box-shadow: 0 0 20px -5px var(--glow-primary);
 
 
 
 
 
 
208
  }
209
 
210
+ .glow-accent {
211
+ box-shadow: 0 0 20px -5px var(--glow-accent);
212
+ }
213
+
214
+ .glow-success {
215
+ box-shadow: 0 0 20px -5px var(--glow-success);
216
+ }
217
+
218
+ /* Text glow */
219
+ .text-glow-primary {
220
+ text-shadow: 0 0 20px var(--glow-primary);
221
+ }
222
+
223
+ .text-glow-accent {
224
+ text-shadow: 0 0 20px var(--glow-accent);
225
+ }
226
+
227
+ /* === BUTTONS === */
228
+ .btn-primary {
229
+ background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
230
+ color: white;
231
+ font-weight: 600;
232
+ padding: 12px 24px;
233
+ border-radius: var(--radius-md);
234
+ border: none;
235
+ cursor: pointer;
236
+ transition: all 0.3s ease;
237
+ box-shadow: 0 4px 15px -3px var(--glow-primary);
238
+ }
239
+
240
+ .btn-primary:hover {
241
+ transform: translateY(-2px);
242
+ box-shadow: 0 8px 25px -5px var(--glow-primary);
243
+ }
244
+
245
+ .btn-primary:active {
246
+ transform: translateY(0);
247
+ }
248
+
249
+ .btn-secondary {
250
+ background: var(--surface-elevated);
251
+ color: var(--foreground);
252
+ font-weight: 600;
253
+ padding: 12px 24px;
254
+ border-radius: var(--radius-md);
255
+ border: 1px solid var(--border);
256
+ cursor: pointer;
257
+ transition: all 0.3s ease;
258
+ }
259
+
260
+ .btn-secondary:hover {
261
+ background: var(--surface-hover);
262
+ border-color: var(--border-hover);
263
+ }
264
+
265
+ /* === AURORA BACKGROUND ACCENTS === */
266
+ .aurora-bg {
267
+ position: fixed;
268
+ inset: 0;
269
+ pointer-events: none;
270
+ z-index: -1;
271
  overflow: hidden;
272
  }
273
 
274
+ .aurora-blob {
 
275
  position: absolute;
276
+ border-radius: 50%;
277
+ filter: blur(80px);
278
+ opacity: 0.5;
279
+ animation: aurora-float 20s ease-in-out infinite;
 
 
 
 
 
 
 
 
 
 
 
280
  }
281
 
282
+ .aurora-blob-1 {
283
+ width: 600px;
284
+ height: 600px;
285
+ background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
286
+ top: -200px;
287
+ left: -100px;
288
  }
289
 
290
+ .aurora-blob-2 {
291
+ width: 500px;
292
+ height: 500px;
293
+ background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
294
+ bottom: -150px;
295
+ right: -100px;
296
+ animation-delay: -10s;
297
+ }
298
+
299
+ .aurora-blob-3 {
300
+ width: 400px;
301
+ height: 400px;
302
+ background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
303
+ top: 50%;
304
+ left: 50%;
305
+ transform: translate(-50%, -50%);
306
+ animation-delay: -5s;
307
+ }
308
+
309
+ /* === ANIMATIONS === */
310
+ @keyframes aurora-float {
311
+
312
+ 0%,
313
+ 100% {
314
+ transform: translate(0, 0) scale(1);
315
+ }
316
+
317
+ 25% {
318
+ transform: translate(30px, -30px) scale(1.05);
319
  }
320
 
321
  50% {
322
+ transform: translate(-20px, 20px) scale(0.95);
323
  }
324
 
325
+ 75% {
326
+ transform: translate(-30px, -10px) scale(1.02);
327
  }
328
  }
329
 
330
+ @keyframes fade-in {
331
+ from {
332
+ opacity: 0;
333
+ transform: translateY(10px);
334
+ }
335
+
336
+ to {
337
+ opacity: 1;
338
+ transform: translateY(0);
339
+ }
340
+ }
341
+
342
+ @keyframes scale-in {
343
+ from {
344
+ opacity: 0;
345
+ transform: scale(0.95);
346
+ }
347
+
348
+ to {
349
+ opacity: 1;
350
+ transform: scale(1);
351
+ }
352
  }
353
 
354
  @keyframes pulse-glow {
 
356
  0%,
357
  100% {
358
  opacity: 0.5;
359
+ box-shadow: 0 0 20px -5px var(--glow-primary);
360
  }
361
 
362
  50% {
363
+ opacity: 1;
364
+ box-shadow: 0 0 30px -3px var(--glow-primary);
365
  }
366
  }
367
 
 
 
 
 
368
  @keyframes shimmer {
369
  from {
370
+ background-position: 200% 0;
371
  }
372
 
373
  to {
 
375
  }
376
  }
377
 
378
+ @keyframes float {
 
 
379
 
380
+ 0%,
381
+ 100% {
 
382
  transform: translateY(0);
383
  }
384
 
385
+ 50% {
386
+ transform: translateY(-10px);
387
  }
388
  }
389
 
390
+ .animate-fade-in {
391
+ animation: fade-in 0.5s ease-out forwards;
392
+ }
393
+
394
+ .animate-scale-in {
395
+ animation: scale-in 0.3s ease-out forwards;
396
+ }
397
+
398
+ .animate-pulse-glow {
399
+ animation: pulse-glow 3s ease-in-out infinite;
400
+ }
401
+
402
+ .animate-shimmer {
403
+ background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
404
+ background-size: 200% 100%;
405
+ animation: shimmer 2s linear infinite;
406
  }
407
 
408
+ .animate-float {
409
+ animation: float 6s ease-in-out infinite;
410
+ }
411
+
412
+ /* === SPOTLIGHT EFFECT === */
413
+ .spotlight-card {
414
+ position: relative;
415
+ overflow: hidden;
416
+ }
417
+
418
+ .spotlight-card::before {
419
+ content: '';
420
+ position: absolute;
421
+ top: 0;
422
+ left: -100%;
423
+ width: 200%;
424
+ height: 100%;
425
+ background: linear-gradient(115deg,
426
+ transparent 0%,
427
+ transparent 40%,
428
+ rgba(255, 255, 255, 0.03) 45%,
429
+ rgba(255, 255, 255, 0.08) 50%,
430
+ rgba(255, 255, 255, 0.03) 55%,
431
+ transparent 60%,
432
+ transparent 100%);
433
+ transform: skewX(-20deg);
434
+ transition: left 0.6s ease;
435
+ pointer-events: none;
436
+ }
437
+
438
+ .spotlight-card:hover::before {
439
+ left: 100%;
440
+ }
441
+
442
+ /* === UTILITY CLASSES === */
443
  .input-glow:focus-within {
444
+ box-shadow: 0 0 0 3px var(--glow-primary);
445
+ border-color: var(--primary);
446
+ }
447
+
448
+ /* Heat badges */
449
+ .badge-hot {
450
+ background: linear-gradient(135deg, #EF4444 0%, #F97316 100%);
451
+ color: white;
452
+ text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
453
+ }
454
+
455
+ .badge-warm {
456
+ background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
457
+ color: #1F2937;
458
+ }
459
+
460
+ .badge-cold {
461
+ background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
462
+ color: white;
463
+ text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
464
+ }
465
+
466
+ /* Status indicators */
467
+ .status-online {
468
+ background: var(--success);
469
+ box-shadow: 0 0 8px var(--glow-success);
470
+ }
471
+
472
+ .status-offline {
473
+ background: var(--text-dim);
474
+ }
475
+
476
+ .status-busy {
477
+ background: var(--warning);
478
+ box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
479
+ }
480
+
481
+ /* Gradient borders */
482
+ .border-gradient {
483
+ border: 1px solid transparent;
484
+ background: linear-gradient(var(--surface), var(--surface)) padding-box,
485
+ linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) border-box;
486
+ }
487
+
488
+ /* Loading skeleton */
489
+ .skeleton {
490
+ background: linear-gradient(90deg, var(--surface) 25%, var(--surface-elevated) 50%, var(--surface) 75%);
491
+ background-size: 200% 100%;
492
+ animation: shimmer 1.5s infinite;
493
+ border-radius: var(--radius-md);
494
  }
frontend/app/settings/brain/page.tsx CHANGED
@@ -290,8 +290,8 @@ export default function BrainSettingsPage() {
290
 
291
  if (loading) {
292
  return (
293
- <div className="flex items-center justify-center min-h-screen bg-slate-50">
294
- <Loader2 className="w-12 h-12 animate-spin text-indigo-600" />
295
  </div>
296
  )
297
  }
@@ -312,7 +312,7 @@ export default function BrainSettingsPage() {
312
  }
313
 
314
  return (
315
- <div className="min-h-screen bg-slate-100 p-8">
316
  <div className="max-w-5xl mx-auto">
317
  <motion.div
318
  initial={{ opacity: 0, y: -20 }}
@@ -320,28 +320,28 @@ export default function BrainSettingsPage() {
320
  className="mb-8"
321
  >
322
  <div className="flex items-center gap-4 mb-6">
323
- <div className="p-3 bg-gradient-to-br from-indigo-600 to-purple-600 rounded-2xl shadow-lg shadow-indigo-200">
324
  <Brain className="w-8 h-8 text-white" />
325
  </div>
326
  <div>
327
- <h1 className="text-3xl font-bold text-slate-900 mb-1 tracking-tight">
328
  База Знаний (Brain)
329
  </h1>
330
- <p className="text-slate-600">
331
  Управление интеллектом, знаниями и навыками вашего цифрового сотрудника
332
  </p>
333
  </div>
334
  </div>
335
 
336
  {/* Navigation Tabs */}
337
- <div className="flex flex-wrap gap-2 p-1 bg-white rounded-xl border border-slate-200 w-fit">
338
  <button
339
  onClick={() => setActiveTab('persona')}
340
  className={cn(
341
  "px-6 py-2.5 rounded-lg text-sm font-bold flex items-center gap-2 transition-all",
342
  activeTab === 'persona'
343
- ? "bg-slate-100 text-slate-900 shadow-sm"
344
- : "text-slate-500 hover:text-slate-700 hover:bg-slate-50"
345
  )}
346
  >
347
  <Sparkles className="w-4 h-4" />
@@ -353,8 +353,8 @@ export default function BrainSettingsPage() {
353
  className={cn(
354
  "px-6 py-2.5 rounded-lg text-sm font-bold flex items-center gap-2 transition-all",
355
  activeTab === 'knowledge'
356
- ? "bg-slate-100 text-slate-900 shadow-sm"
357
- : "text-slate-500 hover:text-slate-700 hover:bg-slate-50"
358
  )}
359
  >
360
  <FileText className="w-4 h-4" />
@@ -366,8 +366,8 @@ export default function BrainSettingsPage() {
366
  className={cn(
367
  "px-6 py-2.5 rounded-lg text-sm font-bold flex items-center gap-2 transition-all",
368
  activeTab === 'catalog'
369
- ? "bg-slate-100 text-slate-900 shadow-sm"
370
- : "text-slate-500 hover:text-slate-700 hover:bg-slate-50"
371
  )}
372
  >
373
  <ShoppingBag className="w-4 h-4" />
@@ -379,8 +379,8 @@ export default function BrainSettingsPage() {
379
  className={cn(
380
  "px-6 py-2.5 rounded-lg text-sm font-bold flex items-center gap-2 transition-all",
381
  activeTab === 'booking'
382
- ? "bg-slate-100 text-slate-900 shadow-sm"
383
- : "text-slate-500 hover:text-slate-700 hover:bg-slate-50"
384
  )}
385
  >
386
  <Calendar className="w-4 h-4" />
 
290
 
291
  if (loading) {
292
  return (
293
+ <div className="flex items-center justify-center min-h-screen bg-[#050510]">
294
+ <Loader2 className="w-12 h-12 animate-spin text-indigo-500" />
295
  </div>
296
  )
297
  }
 
312
  }
313
 
314
  return (
315
+ <div className="min-h-screen bg-[#050510] p-8">
316
  <div className="max-w-5xl mx-auto">
317
  <motion.div
318
  initial={{ opacity: 0, y: -20 }}
 
320
  className="mb-8"
321
  >
322
  <div className="flex items-center gap-4 mb-6">
323
+ <div className="p-3 bg-gradient-to-br from-indigo-600 to-purple-600 rounded-2xl shadow-lg shadow-indigo-500/20">
324
  <Brain className="w-8 h-8 text-white" />
325
  </div>
326
  <div>
327
+ <h1 className="text-3xl font-bold text-white mb-1 tracking-tight">
328
  База Знаний (Brain)
329
  </h1>
330
+ <p className="text-slate-400">
331
  Управление интеллектом, знаниями и навыками вашего цифрового сотрудника
332
  </p>
333
  </div>
334
  </div>
335
 
336
  {/* Navigation Tabs */}
337
+ <div className="flex flex-wrap gap-2 p-1 bg-[#0D0E18] rounded-xl border border-white/10 w-fit">
338
  <button
339
  onClick={() => setActiveTab('persona')}
340
  className={cn(
341
  "px-6 py-2.5 rounded-lg text-sm font-bold flex items-center gap-2 transition-all",
342
  activeTab === 'persona'
343
+ ? "bg-indigo-600 text-white shadow-sm"
344
+ : "text-slate-400 hover:text-white hover:bg-white/5"
345
  )}
346
  >
347
  <Sparkles className="w-4 h-4" />
 
353
  className={cn(
354
  "px-6 py-2.5 rounded-lg text-sm font-bold flex items-center gap-2 transition-all",
355
  activeTab === 'knowledge'
356
+ ? "bg-indigo-600 text-white shadow-sm"
357
+ : "text-slate-400 hover:text-white hover:bg-white/5"
358
  )}
359
  >
360
  <FileText className="w-4 h-4" />
 
366
  className={cn(
367
  "px-6 py-2.5 rounded-lg text-sm font-bold flex items-center gap-2 transition-all",
368
  activeTab === 'catalog'
369
+ ? "bg-indigo-600 text-white shadow-sm"
370
+ : "text-slate-400 hover:text-white hover:bg-white/5"
371
  )}
372
  >
373
  <ShoppingBag className="w-4 h-4" />
 
379
  className={cn(
380
  "px-6 py-2.5 rounded-lg text-sm font-bold flex items-center gap-2 transition-all",
381
  activeTab === 'booking'
382
+ ? "bg-indigo-600 text-white shadow-sm"
383
+ : "text-slate-400 hover:text-white hover:bg-white/5"
384
  )}
385
  >
386
  <Calendar className="w-4 h-4" />
frontend/components/LeadsList.tsx CHANGED
@@ -48,12 +48,12 @@ export function LeadsList({
48
  }) || []
49
 
50
  return (
51
- <div className="flex flex-col h-full bg-slate-50/50 border-r border-slate-200">
52
  {/* Header & Search */}
53
- <div className="p-4 border-b border-slate-100 space-y-3 flex-shrink-0 bg-white shadow-sm z-10">
54
  <div className="flex items-center justify-between">
55
- <h2 className="text-lg font-bold text-slate-900 tracking-tight">Входящие</h2>
56
- <span className="text-xs font-semibold text-slate-500 bg-slate-100 px-2.5 py-1 rounded-full border border-slate-200">
57
  {leads?.length || 0}
58
  </span>
59
  </div>
@@ -66,19 +66,19 @@ export function LeadsList({
66
  placeholder="Поиск..."
67
  value={searchQuery}
68
  onChange={(e) => setSearchQuery(e.target.value)}
69
- className="w-full pl-9 pr-4 py-2.5 bg-slate-50 border border-slate-200 rounded-xl text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/20 focus:border-indigo-500 transition-all placeholder:text-slate-400"
70
  />
71
  </div>
72
 
73
  {/* Tabs */}
74
  <div className="flex flex-col gap-2">
75
  {/* Main Status Tabs */}
76
- <div className="flex p-1 bg-slate-100 rounded-xl border border-slate-200">
77
  <button
78
  onClick={() => setActiveTab('all')}
79
  className={cn(
80
  "flex-1 py-1.5 text-xs font-bold rounded-lg transition-all",
81
- activeTab === 'all' ? "bg-white text-slate-900 shadow-sm ring-1 ring-black/5" : "text-slate-500 hover:text-slate-700 hover:bg-slate-200/50"
82
  )}
83
  >
84
  Все
@@ -87,7 +87,7 @@ export function LeadsList({
87
  onClick={() => setActiveTab('hot')}
88
  className={cn(
89
  "flex-1 py-1.5 text-xs font-bold rounded-lg transition-all flex items-center justify-center gap-1",
90
- activeTab === 'hot' ? "bg-white text-red-600 shadow-sm ring-1 ring-black/5" : "text-slate-500 hover:text-slate-700 hover:bg-slate-200/50"
91
  )}
92
  >
93
  <Flame className="w-3 h-3" />
@@ -97,7 +97,7 @@ export function LeadsList({
97
  onClick={() => setActiveTab('unread')}
98
  className={cn(
99
  "flex-1 py-1.5 text-xs font-bold rounded-lg transition-all",
100
- activeTab === 'unread' ? "bg-white text-indigo-600 shadow-sm ring-1 ring-black/5" : "text-slate-500 hover:text-slate-700 hover:bg-slate-200/50"
101
  )}
102
  >
103
  Новые
@@ -111,8 +111,8 @@ export function LeadsList({
111
  className={cn(
112
  "flex items-center gap-1.5 px-3 py-1.5 rounded-full text-[10px] font-semibold border transition-all whitespace-nowrap",
113
  activeTab === 'whatsapp'
114
- ? "bg-green-50 text-green-700 border-green-200 ring-1 ring-green-100"
115
- : "bg-white text-slate-500 border-slate-200 hover:border-green-200 hover:text-green-600"
116
  )}
117
  >
118
  <MessageCircle className="w-3 h-3" />
@@ -123,8 +123,8 @@ export function LeadsList({
123
  className={cn(
124
  "flex items-center gap-1.5 px-3 py-1.5 rounded-full text-[10px] font-semibold border transition-all whitespace-nowrap",
125
  activeTab === 'email'
126
- ? "bg-blue-50 text-blue-700 border-blue-200 ring-1 ring-blue-100"
127
- : "bg-white text-slate-500 border-slate-200 hover:border-blue-200 hover:text-blue-600"
128
  )}
129
  >
130
  <Mail className="w-3 h-3" />
@@ -135,8 +135,8 @@ export function LeadsList({
135
  className={cn(
136
  "flex items-center gap-1.5 px-3 py-1.5 rounded-full text-[10px] font-semibold border transition-all whitespace-nowrap",
137
  activeTab === 'linkedin'
138
- ? "bg-sky-50 text-sky-700 border-sky-200 ring-1 ring-sky-100"
139
- : "bg-white text-slate-500 border-slate-200 hover:border-sky-200 hover:text-sky-600"
140
  )}
141
  >
142
  <Linkedin className="w-3 h-3" />
@@ -152,14 +152,14 @@ export function LeadsList({
152
  // Skeleton Loading
153
  <div className="space-y-3">
154
  {[1, 2, 3, 4, 5].map((i) => (
155
- <div key={i} className="p-3 flex gap-3 animate-pulse bg-white rounded-xl border border-slate-100 shadow-sm">
156
- <div className="w-10 h-10 rounded-full bg-slate-100 flex-shrink-0" />
157
  <div className="flex-1 space-y-2">
158
  <div className="flex justify-between">
159
- <div className="h-4 bg-slate-100 rounded w-24"></div>
160
- <div className="h-3 bg-slate-100 rounded w-12"></div>
161
  </div>
162
- <div className="h-3 bg-slate-100 rounded w-3/4"></div>
163
  </div>
164
  </div>
165
  ))}
@@ -185,8 +185,8 @@ export function LeadsList({
185
  className={cn(
186
  "p-3 rounded-2xl cursor-pointer transition-all duration-200 group relative overflow-hidden border",
187
  isSelected
188
- ? "bg-indigo-50 border-indigo-200 shadow-sm"
189
- : "bg-white border-transparent hover:bg-slate-50 hover:shadow-sm"
190
  )}
191
  >
192
  <div className="flex justify-between items-start mb-1">
@@ -196,19 +196,19 @@ export function LeadsList({
196
 
197
  <h3 className={cn(
198
  "font-bold text-sm truncate max-w-[140px] transition-colors",
199
- isSelected ? "text-indigo-900" : "text-slate-900 group-hover:text-indigo-700"
200
  )}>
201
  {lead.name || 'Без имени'}
202
  </h3>
203
  </div>
204
- <span className="text-[10px] text-slate-400 font-medium whitespace-nowrap ml-2 bg-slate-50 px-1.5 py-0.5 rounded-md border border-slate-100">
205
  {new Date(lead.last_message_at).toLocaleTimeString('ru-RU', { hour: '2-digit', minute: '2-digit' })}
206
  </span>
207
  </div>
208
 
209
  <p className={cn(
210
  "text-xs truncate leading-relaxed transition-colors",
211
- isSelected ? "text-indigo-600 font-medium" : "text-slate-500 group-hover:text-slate-600"
212
  )}>
213
  {lead.ai_summary_json?.intent || lead.ai_summary_json?.recommendation || 'Нет анализа'}
214
  </p>
@@ -217,7 +217,7 @@ export function LeadsList({
217
  })}
218
  </>
219
  ) : (
220
- <div className="text-center py-10 text-slate-400 text-sm">
221
  Нет активных диалогов
222
  </div>
223
  )}
 
48
  }) || []
49
 
50
  return (
51
+ <div className="flex flex-col h-full bg-[#0D0E18] border-r border-white/10">
52
  {/* Header & Search */}
53
+ <div className="p-4 border-b border-white/10 space-y-3 flex-shrink-0 bg-[#12131F] z-10">
54
  <div className="flex items-center justify-between">
55
+ <h2 className="text-lg font-bold text-white tracking-tight">Входящие</h2>
56
+ <span className="text-xs font-semibold text-slate-400 bg-white/10 px-2.5 py-1 rounded-full border border-white/10">
57
  {leads?.length || 0}
58
  </span>
59
  </div>
 
66
  placeholder="Поиск..."
67
  value={searchQuery}
68
  onChange={(e) => setSearchQuery(e.target.value)}
69
+ className="w-full pl-9 pr-4 py-2.5 bg-[#0D0E18] border border-white/10 rounded-xl text-sm text-white focus:outline-none focus:ring-2 focus:ring-indigo-500/30 focus:border-indigo-500 transition-all placeholder:text-slate-500"
70
  />
71
  </div>
72
 
73
  {/* Tabs */}
74
  <div className="flex flex-col gap-2">
75
  {/* Main Status Tabs */}
76
+ <div className="flex p-1 bg-white/5 rounded-xl border border-white/10">
77
  <button
78
  onClick={() => setActiveTab('all')}
79
  className={cn(
80
  "flex-1 py-1.5 text-xs font-bold rounded-lg transition-all",
81
+ activeTab === 'all' ? "bg-indigo-600 text-white shadow-sm" : "text-slate-400 hover:text-white hover:bg-white/5"
82
  )}
83
  >
84
  Все
 
87
  onClick={() => setActiveTab('hot')}
88
  className={cn(
89
  "flex-1 py-1.5 text-xs font-bold rounded-lg transition-all flex items-center justify-center gap-1",
90
+ activeTab === 'hot' ? "bg-red-600 text-white shadow-sm" : "text-slate-400 hover:text-white hover:bg-white/5"
91
  )}
92
  >
93
  <Flame className="w-3 h-3" />
 
97
  onClick={() => setActiveTab('unread')}
98
  className={cn(
99
  "flex-1 py-1.5 text-xs font-bold rounded-lg transition-all",
100
+ activeTab === 'unread' ? "bg-indigo-600 text-white shadow-sm" : "text-slate-400 hover:text-white hover:bg-white/5"
101
  )}
102
  >
103
  Новые
 
111
  className={cn(
112
  "flex items-center gap-1.5 px-3 py-1.5 rounded-full text-[10px] font-semibold border transition-all whitespace-nowrap",
113
  activeTab === 'whatsapp'
114
+ ? "bg-green-500/20 text-green-400 border-green-500/30"
115
+ : "bg-white/5 text-slate-400 border-white/10 hover:border-green-500/30 hover:text-green-400"
116
  )}
117
  >
118
  <MessageCircle className="w-3 h-3" />
 
123
  className={cn(
124
  "flex items-center gap-1.5 px-3 py-1.5 rounded-full text-[10px] font-semibold border transition-all whitespace-nowrap",
125
  activeTab === 'email'
126
+ ? "bg-blue-500/20 text-blue-400 border-blue-500/30"
127
+ : "bg-white/5 text-slate-400 border-white/10 hover:border-blue-500/30 hover:text-blue-400"
128
  )}
129
  >
130
  <Mail className="w-3 h-3" />
 
135
  className={cn(
136
  "flex items-center gap-1.5 px-3 py-1.5 rounded-full text-[10px] font-semibold border transition-all whitespace-nowrap",
137
  activeTab === 'linkedin'
138
+ ? "bg-sky-500/20 text-sky-400 border-sky-500/30"
139
+ : "bg-white/5 text-slate-400 border-white/10 hover:border-sky-500/30 hover:text-sky-400"
140
  )}
141
  >
142
  <Linkedin className="w-3 h-3" />
 
152
  // Skeleton Loading
153
  <div className="space-y-3">
154
  {[1, 2, 3, 4, 5].map((i) => (
155
+ <div key={i} className="p-3 flex gap-3 animate-pulse bg-white/5 rounded-xl border border-white/10">
156
+ <div className="w-10 h-10 rounded-full bg-white/10 flex-shrink-0" />
157
  <div className="flex-1 space-y-2">
158
  <div className="flex justify-between">
159
+ <div className="h-4 bg-white/10 rounded w-24"></div>
160
+ <div className="h-3 bg-white/10 rounded w-12"></div>
161
  </div>
162
+ <div className="h-3 bg-white/10 rounded w-3/4"></div>
163
  </div>
164
  </div>
165
  ))}
 
185
  className={cn(
186
  "p-3 rounded-2xl cursor-pointer transition-all duration-200 group relative overflow-hidden border",
187
  isSelected
188
+ ? "bg-indigo-500/20 border-indigo-500/50 shadow-[0_0_15px_-3px_rgba(99,102,241,0.3)]"
189
+ : "bg-white/5 border-white/10 hover:bg-white/10 hover:border-white/15"
190
  )}
191
  >
192
  <div className="flex justify-between items-start mb-1">
 
196
 
197
  <h3 className={cn(
198
  "font-bold text-sm truncate max-w-[140px] transition-colors",
199
+ isSelected ? "text-white" : "text-slate-200 group-hover:text-indigo-400"
200
  )}>
201
  {lead.name || 'Без имени'}
202
  </h3>
203
  </div>
204
+ <span className="text-[10px] text-slate-500 font-medium whitespace-nowrap ml-2 bg-white/5 px-1.5 py-0.5 rounded-md border border-white/10">
205
  {new Date(lead.last_message_at).toLocaleTimeString('ru-RU', { hour: '2-digit', minute: '2-digit' })}
206
  </span>
207
  </div>
208
 
209
  <p className={cn(
210
  "text-xs truncate leading-relaxed transition-colors",
211
+ isSelected ? "text-indigo-300 font-medium" : "text-slate-500 group-hover:text-slate-400"
212
  )}>
213
  {lead.ai_summary_json?.intent || lead.ai_summary_json?.recommendation || 'Нет анализа'}
214
  </p>
 
217
  })}
218
  </>
219
  ) : (
220
+ <div className="text-center py-10 text-slate-500 text-sm">
221
  Нет активных диалогов
222
  </div>
223
  )}
frontend/components/Sidebar.tsx CHANGED
@@ -125,7 +125,7 @@ export function Sidebar() {
125
  variants={itemVariants}
126
  >
127
  <p className="px-4 text-[10px] font-bold text-slate-500 uppercase tracking-widest mb-2 font-mono">
128
- / MAIN_TERMINAL
129
  </p>
130
  <div className="space-y-1">
131
  {/* Admin Link - Only for Superusers */}
@@ -137,7 +137,7 @@ export function Sidebar() {
137
  : "text-red-400 border-transparent hover:bg-red-500/5 hover:border-red-500/20"
138
  )}>
139
  <Shield className={cn("w-4 h-4 transition-colors", isActive('/admin') ? "text-red-500" : "text-red-400")} />
140
- <span className="font-mono">ADMIN_ACCESS</span>
141
  {isActive('/admin') && <div className="ml-auto w-1.5 h-1.5 rounded-full bg-red-500 animate-pulse" />}
142
  </Link>
143
  )}
@@ -149,7 +149,7 @@ export function Sidebar() {
149
  : "text-slate-400 border-transparent hover:text-white hover:bg-white/5 hover:border-white/10"
150
  )}>
151
  <LayoutDashboard className={cn("w-4 h-4 transition-colors", isActive('/dashboard') ? "text-indigo-400" : "text-slate-500 group-hover:text-indigo-400")} />
152
- <span>Dashboard</span>
153
  {isActive('/dashboard') && <div className="ml-auto w-1.5 h-1.5 rounded-full bg-indigo-500 animate-pulse" />}
154
  </Link>
155
 
@@ -160,7 +160,7 @@ export function Sidebar() {
160
  : "text-slate-400 border-transparent hover:text-white hover:bg-white/5 hover:border-white/10"
161
  )}>
162
  <MessageSquare className={cn("w-4 h-4 transition-colors", isActive('/chats') ? "text-indigo-400" : "text-slate-500 group-hover:text-indigo-400")} />
163
- <span>Live Chats</span>
164
  {/* Badge for unread messages could go here */}
165
  </Link>
166
 
@@ -171,7 +171,7 @@ export function Sidebar() {
171
  : "text-slate-400 border-transparent hover:text-white hover:bg-white/5 hover:border-white/10"
172
  )}>
173
  <Calendar className={cn("w-4 h-4 transition-colors", isActive('/appointments') ? "text-indigo-400" : "text-slate-500 group-hover:text-indigo-400")} />
174
- <span>Calendar</span>
175
  </Link>
176
 
177
 
@@ -185,7 +185,7 @@ export function Sidebar() {
185
  variants={itemVariants}
186
  >
187
  <p className="px-4 text-[10px] font-bold text-slate-500 uppercase tracking-widest mb-2 font-mono">
188
- / NEURAL_NET
189
  </p>
190
  <div className="space-y-1">
191
 
@@ -197,7 +197,7 @@ export function Sidebar() {
197
  : "text-slate-400 border-transparent hover:text-white hover:bg-white/5 hover:border-white/10"
198
  )}>
199
  <Plug className={cn("w-4 h-4 transition-colors", isActive('/channels') ? "text-indigo-400" : "text-slate-500 group-hover:text-indigo-400")} />
200
- <span>Connections</span>
201
  </Link>
202
  </div>
203
  </motion.div>
@@ -209,7 +209,7 @@ export function Sidebar() {
209
  variants={itemVariants}
210
  >
211
  <p className="px-4 text-[10px] font-bold text-slate-500 uppercase tracking-widest mb-2 font-mono">
212
- / SYSTEM_CONFIG
213
  </p>
214
  <div className="space-y-1">
215
  <Link href="/settings/brain" className={cn(
@@ -219,7 +219,7 @@ export function Sidebar() {
219
  : "text-slate-400 border-transparent hover:text-white hover:bg-white/5 hover:border-white/10"
220
  )}>
221
  <Sparkles className={cn("w-4 h-4 transition-colors", isActive('/settings/brain') ? "text-indigo-400" : "text-slate-500 group-hover:text-indigo-400")} />
222
- <span>AI Brain</span>
223
  </Link>
224
 
225
  <Link href="/settings/crm" className={cn(
@@ -229,7 +229,7 @@ export function Sidebar() {
229
  : "text-slate-400 border-transparent hover:text-white hover:bg-white/5 hover:border-white/10"
230
  )}>
231
  <Database className={cn("w-4 h-4 transition-colors", isActive('/settings/crm') ? "text-indigo-400" : "text-slate-500 group-hover:text-indigo-400")} />
232
- <span>CRM Sync</span>
233
  </Link>
234
 
235
  <Link href="/settings/playbook" className={cn(
@@ -239,7 +239,7 @@ export function Sidebar() {
239
  : "text-slate-400 border-transparent hover:text-white hover:bg-white/5 hover:border-white/10"
240
  )}>
241
  <Target className={cn("w-4 h-4 transition-colors", isActive('/settings/playbook') ? "text-indigo-400" : "text-slate-500 group-hover:text-indigo-400")} />
242
- <span>Sales Scripts</span>
243
  </Link>
244
 
245
  <Link href="/settings/team" className={cn(
@@ -249,7 +249,7 @@ export function Sidebar() {
249
  : "text-slate-400 border-transparent hover:text-white hover:bg-white/5 hover:border-white/10"
250
  )}>
251
  <Users className={cn("w-4 h-4 transition-colors", isActive('/settings/team') ? "text-indigo-400" : "text-slate-500 group-hover:text-indigo-400")} />
252
- <span>Team</span>
253
  </Link>
254
 
255
  <Link href="/settings/notifications" className={cn(
@@ -259,7 +259,7 @@ export function Sidebar() {
259
  : "text-slate-400 border-transparent hover:text-white hover:bg-white/5 hover:border-white/10"
260
  )}>
261
  <Bell className={cn("w-4 h-4 transition-colors", isActive('/settings/notifications') ? "text-indigo-400" : "text-slate-500 group-hover:text-indigo-400")} />
262
- <span>Alerts</span>
263
  </Link>
264
 
265
 
@@ -271,7 +271,7 @@ export function Sidebar() {
271
  : "text-slate-400 border-transparent hover:text-white hover:bg-white/5 hover:border-white/10"
272
  )}>
273
  <DollarSign className={cn("w-4 h-4 transition-colors", isActive('/settings/billing') ? "text-indigo-400" : "text-slate-500 group-hover:text-indigo-400")} />
274
- <span>Billing</span>
275
  </Link>
276
 
277
  <Link href="/settings/account" className={cn(
@@ -281,7 +281,7 @@ export function Sidebar() {
281
  : "text-slate-400 border-transparent hover:text-white hover:bg-white/5 hover:border-white/10"
282
  )}>
283
  <User className={cn("w-4 h-4 transition-colors", isActive('/settings/account') ? "text-indigo-400" : "text-slate-500 group-hover:text-indigo-400")} />
284
- <span>Profile</span>
285
  </Link>
286
  </div>
287
  </motion.div>
 
125
  variants={itemVariants}
126
  >
127
  <p className="px-4 text-[10px] font-bold text-slate-500 uppercase tracking-widest mb-2 font-mono">
128
+ / ГЛАВНАЯ
129
  </p>
130
  <div className="space-y-1">
131
  {/* Admin Link - Only for Superusers */}
 
137
  : "text-red-400 border-transparent hover:bg-red-500/5 hover:border-red-500/20"
138
  )}>
139
  <Shield className={cn("w-4 h-4 transition-colors", isActive('/admin') ? "text-red-500" : "text-red-400")} />
140
+ <span className="font-mono">АДМИН</span>
141
  {isActive('/admin') && <div className="ml-auto w-1.5 h-1.5 rounded-full bg-red-500 animate-pulse" />}
142
  </Link>
143
  )}
 
149
  : "text-slate-400 border-transparent hover:text-white hover:bg-white/5 hover:border-white/10"
150
  )}>
151
  <LayoutDashboard className={cn("w-4 h-4 transition-colors", isActive('/dashboard') ? "text-indigo-400" : "text-slate-500 group-hover:text-indigo-400")} />
152
+ <span>Панель</span>
153
  {isActive('/dashboard') && <div className="ml-auto w-1.5 h-1.5 rounded-full bg-indigo-500 animate-pulse" />}
154
  </Link>
155
 
 
160
  : "text-slate-400 border-transparent hover:text-white hover:bg-white/5 hover:border-white/10"
161
  )}>
162
  <MessageSquare className={cn("w-4 h-4 transition-colors", isActive('/chats') ? "text-indigo-400" : "text-slate-500 group-hover:text-indigo-400")} />
163
+ <span>Диалоги</span>
164
  {/* Badge for unread messages could go here */}
165
  </Link>
166
 
 
171
  : "text-slate-400 border-transparent hover:text-white hover:bg-white/5 hover:border-white/10"
172
  )}>
173
  <Calendar className={cn("w-4 h-4 transition-colors", isActive('/appointments') ? "text-indigo-400" : "text-slate-500 group-hover:text-indigo-400")} />
174
+ <span>Календарь</span>
175
  </Link>
176
 
177
 
 
185
  variants={itemVariants}
186
  >
187
  <p className="px-4 text-[10px] font-bold text-slate-500 uppercase tracking-widest mb-2 font-mono">
188
+ / ИНТЕГРАЦИИ
189
  </p>
190
  <div className="space-y-1">
191
 
 
197
  : "text-slate-400 border-transparent hover:text-white hover:bg-white/5 hover:border-white/10"
198
  )}>
199
  <Plug className={cn("w-4 h-4 transition-colors", isActive('/channels') ? "text-indigo-400" : "text-slate-500 group-hover:text-indigo-400")} />
200
+ <span>Подключения</span>
201
  </Link>
202
  </div>
203
  </motion.div>
 
209
  variants={itemVariants}
210
  >
211
  <p className="px-4 text-[10px] font-bold text-slate-500 uppercase tracking-widest mb-2 font-mono">
212
+ / НАСТРОЙКИ
213
  </p>
214
  <div className="space-y-1">
215
  <Link href="/settings/brain" className={cn(
 
219
  : "text-slate-400 border-transparent hover:text-white hover:bg-white/5 hover:border-white/10"
220
  )}>
221
  <Sparkles className={cn("w-4 h-4 transition-colors", isActive('/settings/brain') ? "text-indigo-400" : "text-slate-500 group-hover:text-indigo-400")} />
222
+ <span>ИИ Мозг</span>
223
  </Link>
224
 
225
  <Link href="/settings/crm" className={cn(
 
229
  : "text-slate-400 border-transparent hover:text-white hover:bg-white/5 hover:border-white/10"
230
  )}>
231
  <Database className={cn("w-4 h-4 transition-colors", isActive('/settings/crm') ? "text-indigo-400" : "text-slate-500 group-hover:text-indigo-400")} />
232
+ <span>CRM</span>
233
  </Link>
234
 
235
  <Link href="/settings/playbook" className={cn(
 
239
  : "text-slate-400 border-transparent hover:text-white hover:bg-white/5 hover:border-white/10"
240
  )}>
241
  <Target className={cn("w-4 h-4 transition-colors", isActive('/settings/playbook') ? "text-indigo-400" : "text-slate-500 group-hover:text-indigo-400")} />
242
+ <span>Скрипты</span>
243
  </Link>
244
 
245
  <Link href="/settings/team" className={cn(
 
249
  : "text-slate-400 border-transparent hover:text-white hover:bg-white/5 hover:border-white/10"
250
  )}>
251
  <Users className={cn("w-4 h-4 transition-colors", isActive('/settings/team') ? "text-indigo-400" : "text-slate-500 group-hover:text-indigo-400")} />
252
+ <span>Команда</span>
253
  </Link>
254
 
255
  <Link href="/settings/notifications" className={cn(
 
259
  : "text-slate-400 border-transparent hover:text-white hover:bg-white/5 hover:border-white/10"
260
  )}>
261
  <Bell className={cn("w-4 h-4 transition-colors", isActive('/settings/notifications') ? "text-indigo-400" : "text-slate-500 group-hover:text-indigo-400")} />
262
+ <span>Уведомления</span>
263
  </Link>
264
 
265
 
 
271
  : "text-slate-400 border-transparent hover:text-white hover:bg-white/5 hover:border-white/10"
272
  )}>
273
  <DollarSign className={cn("w-4 h-4 transition-colors", isActive('/settings/billing') ? "text-indigo-400" : "text-slate-500 group-hover:text-indigo-400")} />
274
+ <span>Оплата</span>
275
  </Link>
276
 
277
  <Link href="/settings/account" className={cn(
 
281
  : "text-slate-400 border-transparent hover:text-white hover:bg-white/5 hover:border-white/10"
282
  )}>
283
  <User className={cn("w-4 h-4 transition-colors", isActive('/settings/account') ? "text-indigo-400" : "text-slate-500 group-hover:text-indigo-400")} />
284
+ <span>Профиль</span>
285
  </Link>
286
  </div>
287
  </motion.div>