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
|
@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
/* Light theme */
--bg-primary: #ffffff;
--bg-secondary: #f9fafb;
--bg-tertiary: #f3f4f6;
--bg-canvas: #f8fafc;
--text-primary: #111827;
--text-secondary: #374151;
--text-muted: #6b7280;
--border-color: #e5e7eb;
--border-light: #f3f4f6;
--accent-blue: #3b82f6;
--accent-blue-hover: #2563eb;
--node-bg: #ffffff;
--node-border: #e5e7eb;
--node-selected: #3b82f6;
}
.dark {
/* Dark theme */
--bg-primary: #1f2937;
--bg-secondary: #111827;
--bg-tertiary: #374151;
--bg-canvas: #0f172a;
--text-primary: #f9fafb;
--text-secondary: #e5e7eb;
--text-muted: #9ca3af;
--border-color: #374151;
--border-light: #4b5563;
--accent-blue: #60a5fa;
--accent-blue-hover: #3b82f6;
--node-bg: #1f2937;
--node-border: #374151;
--node-selected: #60a5fa;
}
html, body, #root {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
overflow: hidden;
}
/* ReactFlow dark mode overrides */
.dark .react-flow__background {
background-color: var(--bg-canvas);
}
.dark .react-flow__controls button {
background-color: var(--bg-primary);
border-color: var(--border-color);
color: var(--text-primary);
}
.dark .react-flow__controls button:hover {
background-color: var(--bg-tertiary);
}
.dark .react-flow__minimap {
background-color: var(--bg-secondary);
}
.dark .react-flow__edge-path {
stroke: var(--text-muted);
}
/* Dark mode form elements */
.dark input,
.dark textarea,
.dark select {
background-color: var(--bg-tertiary) !important;
border-color: var(--border-color) !important;
color: var(--text-primary) !important;
}
.dark input::placeholder,
.dark textarea::placeholder {
color: var(--text-muted) !important;
}
.dark input:focus,
.dark textarea:focus,
.dark select:focus {
border-color: var(--accent-blue) !important;
ring-color: var(--accent-blue) !important;
}
/* Dark mode labels and text */
.dark label {
color: var(--text-secondary);
}
/* Dark mode buttons */
.dark .bg-blue-600 {
background-color: #2563eb;
}
.dark .bg-blue-600:hover {
background-color: #1d4ed8;
}
.dark .bg-gray-50 {
background-color: var(--bg-secondary);
}
.dark .bg-gray-100 {
background-color: var(--bg-tertiary);
}
.dark .text-gray-700 {
color: var(--text-secondary);
}
.dark .text-gray-600 {
color: var(--text-muted);
}
.dark .text-gray-500 {
color: var(--text-muted);
}
.dark .border-gray-200 {
border-color: var(--border-color);
}
.dark .border-gray-300 {
border-color: var(--border-color);
}
/* Dark mode modals and overlays */
.dark .bg-white {
background-color: var(--bg-primary);
}
/* Quick Chat specific dark mode */
.dark .bg-blue-500 {
background-color: #3b82f6;
}
.dark .bg-gray-100 {
background-color: var(--bg-tertiary);
}
.dark .text-gray-800 {
color: var(--text-primary);
}
/* Dark mode hover states */
.dark .hover\:bg-gray-50:hover {
background-color: var(--bg-tertiary) !important;
}
.dark .hover\:bg-gray-100:hover {
background-color: var(--bg-tertiary) !important;
}
.dark .hover\:bg-gray-200:hover {
background-color: #4b5563 !important;
}
.dark .hover\:text-gray-900:hover {
color: var(--text-primary) !important;
}
.dark .hover\:bg-blue-50:hover {
background-color: rgba(59, 130, 246, 0.2) !important;
}
.dark .hover\:bg-blue-100:hover {
background-color: rgba(59, 130, 246, 0.3) !important;
}
/* Dark mode for radio/checkbox */
.dark input[type="radio"],
.dark input[type="checkbox"] {
accent-color: var(--accent-blue);
}
/* Hide the selection box that wraps selected nodes */
.react-flow__nodesselection-rect {
display: none !important;
}
.react-flow__nodesselection {
display: none !important;
}
|