MarcRyan commited on
Commit
89d2cd8
·
verified ·
1 Parent(s): f0156f1

Add 3 files

Browse files
Files changed (3) hide show
  1. README.md +6 -4
  2. index.html +1661 -19
  3. prompts.txt +3 -0
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Post Collapse Resource Optimization Network
3
- emoji: 🚀
4
  colorFrom: blue
5
- colorTo: blue
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: post-collapse-resource-optimization-network
3
+ emoji: 🐳
4
  colorFrom: blue
5
+ colorTo: pink
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
index.html CHANGED
@@ -1,19 +1,1661 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Apocalypse Profit Miners - Enhanced</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
10
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
11
+ <style>
12
+ /* Previous CSS styles remain unchanged */
13
+ @keyframes float {
14
+ 0% { transform: translateY(0px); }
15
+ 50% { transform: translateY(-10px); }
16
+ 100% { transform: translateY(0px); }
17
+ }
18
+
19
+ .miner-head {
20
+ animation: float 4s ease-in-out infinite;
21
+ transition: all 0.3s ease;
22
+ border: 2px solid;
23
+ cursor: pointer;
24
+ }
25
+
26
+ .miner-head:hover {
27
+ transform: scale(1.05) !important;
28
+ animation-play-state: paused;
29
+ }
30
+
31
+ .visionary {
32
+ animation-delay: 0s;
33
+ border-color: #3b82f6;
34
+ }
35
+
36
+ .strategist {
37
+ animation-delay: 0.5s;
38
+ border-color: #ef4444;
39
+ }
40
+
41
+ .alchemist {
42
+ animation-delay: 1s;
43
+ border-color: #10b981;
44
+ }
45
+
46
+ .hustler {
47
+ animation-delay: 1.5s;
48
+ border-color: #8b5cf6;
49
+ }
50
+
51
+ .chat-container {
52
+ height: 500px;
53
+ overflow-y: auto;
54
+ scrollbar-width: thin;
55
+ scrollbar-color: #4b5563 #1f2937;
56
+ }
57
+
58
+ .chat-container::-webkit-scrollbar {
59
+ width: 8px;
60
+ }
61
+
62
+ .chat-container::-webkit-scrollbar-track {
63
+ background: #1f2937;
64
+ }
65
+
66
+ .chat-container::-webkit-scrollbar-thumb {
67
+ background-color: #4b5563;
68
+ border-radius: 4px;
69
+ }
70
+
71
+ .message {
72
+ max-width: 80%;
73
+ word-wrap: break-word;
74
+ }
75
+
76
+ .typing-indicator {
77
+ display: inline-block;
78
+ width: 10px;
79
+ height: 10px;
80
+ border-radius: 50%;
81
+ background-color: #6b7280;
82
+ margin-right: 4px;
83
+ animation: bounce 1.5s infinite ease-in-out;
84
+ }
85
+
86
+ .typing-indicator:nth-child(2) {
87
+ animation-delay: 0.2s;
88
+ }
89
+
90
+ .typing-indicator:nth-child(3) {
91
+ animation-delay: 0.4s;
92
+ }
93
+
94
+ @keyframes bounce {
95
+ 0%, 100% { transform: translateY(0); }
96
+ 50% { transform: translateY(-5px); }
97
+ }
98
+
99
+ .gold-text {
100
+ color: #f59e0b;
101
+ text-shadow: 1px 1px 2px #000;
102
+ }
103
+
104
+ .apocalypse-bg {
105
+ background-image: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
106
+ }
107
+
108
+ .clickable-topic {
109
+ cursor: pointer;
110
+ text-decoration: underline;
111
+ color: #f59e0b;
112
+ transition: all 0.2s;
113
+ }
114
+
115
+ .clickable-topic:hover {
116
+ color: #fcd34d;
117
+ text-shadow: 0 0 5px rgba(245, 158, 11, 0.5);
118
+ }
119
+
120
+ .highlight {
121
+ animation: highlight-pulse 1.5s ease-out;
122
+ }
123
+
124
+ @keyframes highlight-pulse {
125
+ 0% { background-color: rgba(245, 158, 11, 0); }
126
+ 50% { background-color: rgba(245, 158, 11, 0.3); }
127
+ 100% { background-color: rgba(245, 158, 11, 0); }
128
+ }
129
+
130
+ .profit-meter {
131
+ height: 20px;
132
+ background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #ef4444 100%);
133
+ border-radius: 10px;
134
+ position: relative;
135
+ }
136
+
137
+ .profit-marker {
138
+ position: absolute;
139
+ width: 2px;
140
+ height: 30px;
141
+ background-color: white;
142
+ top: -5px;
143
+ }
144
+
145
+ .archetype-badge {
146
+ font-size: 0.6rem;
147
+ padding: 2px 4px;
148
+ border-radius: 4px;
149
+ margin-left: 4px;
150
+ }
151
+
152
+ .chart-container {
153
+ position: relative;
154
+ height: 300px;
155
+ width: 100%;
156
+ }
157
+
158
+ .timeline-item {
159
+ position: relative;
160
+ padding-left: 30px;
161
+ margin-bottom: 20px;
162
+ }
163
+
164
+ .timeline-item:before {
165
+ content: '';
166
+ position: absolute;
167
+ left: 0;
168
+ top: 5px;
169
+ width: 15px;
170
+ height: 15px;
171
+ border-radius: 50%;
172
+ background: #f59e0b;
173
+ }
174
+
175
+ .timeline-connector {
176
+ position: absolute;
177
+ left: 7px;
178
+ top: 20px;
179
+ bottom: -15px;
180
+ width: 1px;
181
+ background: #4b5563;
182
+ }
183
+
184
+ .idea-card {
185
+ transition: all 0.3s ease;
186
+ border-left: 4px solid;
187
+ }
188
+
189
+ .idea-card:hover {
190
+ transform: translateY(-5px);
191
+ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
192
+ }
193
+
194
+ .today-idea {
195
+ animation: pulse 2s infinite;
196
+ }
197
+
198
+ @keyframes pulse {
199
+ 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
200
+ 70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
201
+ 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
202
+ }
203
+
204
+ .response-group {
205
+ border-left: 3px solid #4b5563;
206
+ margin-left: 10px;
207
+ padding-left: 10px;
208
+ }
209
+
210
+ .response-header {
211
+ font-size: 0.8rem;
212
+ color: #9ca3af;
213
+ margin-bottom: 5px;
214
+ display: flex;
215
+ align-items: center;
216
+ }
217
+
218
+ .response-header i {
219
+ margin-right: 5px;
220
+ }
221
+
222
+ .report-section {
223
+ display: none;
224
+ background: rgba(30, 41, 59, 0.8);
225
+ border-radius: 0.5rem;
226
+ padding: 1rem;
227
+ margin-top: 1rem;
228
+ border: 1px solid rgba(100, 116, 139, 0.5);
229
+ }
230
+
231
+ .detailed-analysis {
232
+ background: rgba(15, 23, 42, 0.7);
233
+ padding: 1rem;
234
+ border-radius: 0.5rem;
235
+ margin-top: 0.5rem;
236
+ border-left: 3px solid #f59e0b;
237
+ }
238
+
239
+ .data-point {
240
+ display: flex;
241
+ justify-content: space-between;
242
+ margin-bottom: 0.3rem;
243
+ font-size: 0.85rem;
244
+ }
245
+
246
+ .data-label {
247
+ color: #9ca3af;
248
+ }
249
+
250
+ .data-value {
251
+ font-weight: 500;
252
+ }
253
+
254
+ .conversation-memory {
255
+ font-size: 0.75rem;
256
+ color: #6b7280;
257
+ margin-top: 0.5rem;
258
+ padding-top: 0.5rem;
259
+ border-top: 1px dashed #4b5563;
260
+ }
261
+
262
+ .download-btn {
263
+ transition: all 0.3s ease;
264
+ }
265
+
266
+ .download-btn:hover {
267
+ transform: translateY(-2px);
268
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
269
+ }
270
+
271
+ .knowledge-graph {
272
+ display: grid;
273
+ grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
274
+ gap: 10px;
275
+ margin-top: 10px;
276
+ }
277
+
278
+ .knowledge-node {
279
+ background: rgba(30, 41, 59, 0.5);
280
+ border-radius: 5px;
281
+ padding: 8px;
282
+ font-size: 0.8rem;
283
+ border-left: 3px solid #f59e0b;
284
+ }
285
+
286
+ .knowledge-node-header {
287
+ font-weight: bold;
288
+ margin-bottom: 5px;
289
+ color: #f59e0b;
290
+ }
291
+
292
+ .knowledge-node-content {
293
+ font-size: 0.75rem;
294
+ }
295
+
296
+ .data-visualization {
297
+ background: rgba(15, 23, 42, 0.7);
298
+ padding: 10px;
299
+ border-radius: 5px;
300
+ margin-top: 10px;
301
+ }
302
+
303
+ .data-table {
304
+ width: 100%;
305
+ font-size: 0.75rem;
306
+ border-collapse: collapse;
307
+ }
308
+
309
+ .data-table th, .data-table td {
310
+ padding: 5px;
311
+ text-align: left;
312
+ border-bottom: 1px solid #4b5563;
313
+ }
314
+
315
+ .data-table th {
316
+ color: #f59e0b;
317
+ font-weight: bold;
318
+ }
319
+
320
+ .trend-indicator {
321
+ display: inline-block;
322
+ width: 0;
323
+ height: 0;
324
+ margin-left: 5px;
325
+ vertical-align: middle;
326
+ }
327
+
328
+ .trend-up {
329
+ border-left: 5px solid transparent;
330
+ border-right: 5px solid transparent;
331
+ border-bottom: 5px solid #10b981;
332
+ }
333
+
334
+ .trend-down {
335
+ border-left: 5px solid transparent;
336
+ border-right: 5px solid transparent;
337
+ border-top: 5px solid #ef4444;
338
+ }
339
+
340
+ .trend-neutral {
341
+ border-left: 5px solid transparent;
342
+ border-right: 5px solid transparent;
343
+ border-bottom: 5px solid #f59e0b;
344
+ border-top: 5px solid #f59e0b;
345
+ height: 2px;
346
+ margin-bottom: 3px;
347
+ }
348
+
349
+ .interactive-data {
350
+ cursor: pointer;
351
+ transition: all 0.2s;
352
+ }
353
+
354
+ .interactive-data:hover {
355
+ background: rgba(245, 158, 11, 0.1);
356
+ }
357
+
358
+ .knowledge-connection {
359
+ height: 1px;
360
+ background: linear-gradient(90deg, transparent, #4b5563, transparent);
361
+ margin: 5px 0;
362
+ }
363
+
364
+ /* New enhanced styles for expanded data sections */
365
+ .data-section {
366
+ margin-bottom: 20px;
367
+ border-radius: 8px;
368
+ overflow: hidden;
369
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
370
+ }
371
+
372
+ .data-section-header {
373
+ padding: 12px 15px;
374
+ font-weight: 600;
375
+ display: flex;
376
+ justify-content: space-between;
377
+ align-items: center;
378
+ cursor: pointer;
379
+ transition: background-color 0.3s;
380
+ }
381
+
382
+ .data-section-header:hover {
383
+ background-color: rgba(255, 255, 255, 0.05);
384
+ }
385
+
386
+ .data-section-content {
387
+ padding: 15px;
388
+ background-color: rgba(15, 23, 42, 0.7);
389
+ }
390
+
391
+ .data-grid {
392
+ display: grid;
393
+ grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
394
+ gap: 15px;
395
+ }
396
+
397
+ .data-card {
398
+ background: rgba(30, 41, 59, 0.5);
399
+ border-radius: 6px;
400
+ padding: 12px;
401
+ border-left: 4px solid;
402
+ }
403
+
404
+ .data-card-header {
405
+ font-weight: 600;
406
+ margin-bottom: 8px;
407
+ display: flex;
408
+ justify-content: space-between;
409
+ }
410
+
411
+ .data-card-content {
412
+ font-size: 0.85rem;
413
+ }
414
+
415
+ .data-card-footer {
416
+ margin-top: 8px;
417
+ font-size: 0.75rem;
418
+ color: #9ca3af;
419
+ }
420
+
421
+ /* Bot response enhancements */
422
+ .bot-response {
423
+ position: relative;
424
+ padding-left: 40px;
425
+ margin-bottom: 15px;
426
+ }
427
+
428
+ .bot-avatar {
429
+ position: absolute;
430
+ left: 0;
431
+ top: 0;
432
+ width: 30px;
433
+ height: 30px;
434
+ border-radius: 50%;
435
+ display: flex;
436
+ align-items: center;
437
+ justify-content: center;
438
+ font-size: 14px;
439
+ }
440
+
441
+ .bot-message {
442
+ background: rgba(30, 41, 59, 0.7);
443
+ border-radius: 8px;
444
+ padding: 12px;
445
+ border-left: 3px solid;
446
+ }
447
+
448
+ .bot-meta {
449
+ font-size: 0.75rem;
450
+ color: #9ca3af;
451
+ margin-top: 5px;
452
+ display: flex;
453
+ justify-content: space-between;
454
+ }
455
+
456
+ /* Enhanced data visualization */
457
+ .mini-chart {
458
+ height: 60px;
459
+ width: 100%;
460
+ margin-top: 10px;
461
+ }
462
+
463
+ .data-badge {
464
+ display: inline-block;
465
+ padding: 2px 6px;
466
+ border-radius: 4px;
467
+ font-size: 0.7rem;
468
+ font-weight: 600;
469
+ }
470
+
471
+ .badge-positive {
472
+ background-color: rgba(16, 185, 129, 0.2);
473
+ color: #10b981;
474
+ }
475
+
476
+ .badge-negative {
477
+ background-color: rgba(239, 68, 68, 0.2);
478
+ color: #ef4444;
479
+ }
480
+
481
+ .badge-neutral {
482
+ background-color: rgba(245, 158, 11, 0.2);
483
+ color: #f59e0b;
484
+ }
485
+
486
+ /* Responsive adjustments */
487
+ @media (max-width: 768px) {
488
+ .data-grid {
489
+ grid-template-columns: 1fr;
490
+ }
491
+
492
+ .chat-container {
493
+ height: 400px;
494
+ }
495
+ }
496
+
497
+ /* Animation for new data cards */
498
+ @keyframes slideIn {
499
+ from {
500
+ opacity: 0;
501
+ transform: translateY(20px);
502
+ }
503
+ to {
504
+ opacity: 1;
505
+ transform: translateY(0);
506
+ }
507
+ }
508
+
509
+ .animate-slide-in {
510
+ animation: slideIn 0.3s ease-out forwards;
511
+ }
512
+
513
+ /* Tooltip styles */
514
+ .tooltip {
515
+ position: relative;
516
+ display: inline-block;
517
+ }
518
+
519
+ .tooltip .tooltip-text {
520
+ visibility: hidden;
521
+ width: 200px;
522
+ background-color: #1e293b;
523
+ color: #fff;
524
+ text-align: center;
525
+ border-radius: 6px;
526
+ padding: 5px;
527
+ position: absolute;
528
+ z-index: 1;
529
+ bottom: 125%;
530
+ left: 50%;
531
+ margin-left: -100px;
532
+ opacity: 0;
533
+ transition: opacity 0.3s;
534
+ font-size: 0.8rem;
535
+ border: 1px solid #334155;
536
+ }
537
+
538
+ .tooltip:hover .tooltip-text {
539
+ visibility: visible;
540
+ opacity: 1;
541
+ }
542
+ </style>
543
+ </head>
544
+ <body class="apocalypse-bg text-gray-200 min-h-screen">
545
+ <div class="container mx-auto px-4 py-8">
546
+ <header class="flex flex-col md:flex-row justify-between items-center mb-8">
547
+ <div class="flex items-center mb-4 md:mb-0">
548
+ <img src="https://via.placeholder.com/80" alt="Logo" class="h-16 w-16 mr-4 rounded-full border-2 border-yellow-500">
549
+ <div>
550
+ <h1 class="text-3xl font-bold gold-text">Apocalypse Profit Miners</h1>
551
+ <p class="text-gray-400">Post-Collapse Resource Optimization Network</p>
552
+ </div>
553
+ </div>
554
+ <div class="flex items-center space-x-4">
555
+ <div class="bg-gray-800 px-4 py-2 rounded-lg">
556
+ <div class="text-sm text-gray-400">Current Cycle</div>
557
+ <div class="font-bold">Q3 2023</div>
558
+ </div>
559
+ <div class="bg-gray-800 px-4 py-2 rounded-lg">
560
+ <div class="text-sm text-gray-400">Profit Index</div>
561
+ <div class="font-bold text-yellow-500">87.6 <span class="text-green-500 text-sm">↑2.4%</span></div>
562
+ </div>
563
+ </div>
564
+ </header>
565
+
566
+ <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8">
567
+ <!-- Miner Heads -->
568
+ <div class="lg:col-span-1 bg-gray-800 bg-opacity-50 rounded-xl p-6">
569
+ <h2 class="text-xl font-bold mb-4 gold-text">Miner Command</h2>
570
+ <div class="grid grid-cols-2 gap-4">
571
+ <div class="miner-head visionary rounded-full p-4 flex flex-col items-center">
572
+ <img src="https://via.placeholder.com/100" alt="Visionary" class="h-20 w-20 rounded-full mb-2">
573
+ <div class="text-center">
574
+ <div class="font-bold">Visionary</div>
575
+ <div class="text-xs text-gray-400">Long-term Forecasting</div>
576
+ </div>
577
+ </div>
578
+ <div class="miner-head strategist rounded-full p-4 flex flex-col items-center">
579
+ <img src="https://via.placeholder.com/100" alt="Strategist" class="h-20 w-20 rounded-full mb-2">
580
+ <div class="text-center">
581
+ <div class="font-bold">Strategist</div>
582
+ <div class="text-xs text-gray-400">Tactical Planning</div>
583
+ </div>
584
+ </div>
585
+ <div class="miner-head alchemist rounded-full p-4 flex flex-col items-center">
586
+ <img src="https://via.placeholder.com/100" alt="Alchemist" class="h-20 w-20 rounded-full mb-2">
587
+ <div class="text-center">
588
+ <div class="font-bold">Alchemist</div>
589
+ <div class="text-xs text-gray-400">Resource Conversion</div>
590
+ </div>
591
+ </div>
592
+ <div class="miner-head hustler rounded-full p-4 flex flex-col items-center">
593
+ <img src="https://via.placeholder.com/100" alt="Hustler" class="h-20 w-20 rounded-full mb-2">
594
+ <div class="text-center">
595
+ <div class="font-bold">Hustler</div>
596
+ <div class="text-xs text-gray-400">Opportunity Execution</div>
597
+ </div>
598
+ </div>
599
+ </div>
600
+ </div>
601
+
602
+ <!-- Profit Report -->
603
+ <div class="lg:col-span-2 bg-gray-800 bg-opacity-50 rounded-xl p-6">
604
+ <div class="flex justify-between items-center mb-4">
605
+ <h2 class="text-xl font-bold gold-text">Enhanced Profit Report</h2>
606
+ <button id="downloadReport" class="download-btn bg-yellow-600 hover:bg-yellow-700 text-white px-4 py-2 rounded-lg flex items-center">
607
+ <i class="fas fa-download mr-2"></i> Export
608
+ </button>
609
+ </div>
610
+
611
+ <!-- Profit Meter -->
612
+ <div class="mb-6">
613
+ <div class="flex justify-between mb-2">
614
+ <span>Risk</span>
615
+ <span>Balance</span>
616
+ <span>Reward</span>
617
+ </div>
618
+ <div class="profit-meter relative">
619
+ <div class="profit-marker" style="left: 30%;"></div>
620
+ <div class="profit-marker" style="left: 65%;"></div>
621
+ </div>
622
+ <div class="flex justify-between mt-1 text-xs text-gray-400">
623
+ <span>Current: 65%</span>
624
+ <span>Optimal: 45-75%</span>
625
+ <span>Last: 62%</span>
626
+ </div>
627
+ </div>
628
+
629
+ <!-- Expanded Profit Report Sections -->
630
+ <div id="profitReportContent">
631
+ <!-- Sector Performance -->
632
+ <div class="data-section mb-6 bg-gray-900 rounded-lg">
633
+ <div class="data-section-header bg-gray-800">
634
+ <div class="flex items-center">
635
+ <i class="fas fa-chart-pie mr-2 text-blue-400"></i>
636
+ <span>Sector Performance Analysis</span>
637
+ </div>
638
+ <i class="fas fa-chevron-down text-gray-400"></i>
639
+ </div>
640
+ <div class="data-section-content">
641
+ <div class="data-grid">
642
+ <div class="data-card border-blue-500 animate-slide-in">
643
+ <div class="data-card-header">
644
+ <span>Water Purification</span>
645
+ <span class="badge-positive">+12.4%</span>
646
+ </div>
647
+ <div class="data-card-content">
648
+ <p>Demand remains high with 87% utilization. New filtration tech increased output by 18%.</p>
649
+ <div class="mini-chart mt-2" id="waterChart"></div>
650
+ </div>
651
+ <div class="data-card-footer">
652
+ <span>Last updated: 2 hours ago</span>
653
+ <span class="text-blue-400">Strategic Priority</span>
654
+ </div>
655
+ </div>
656
+
657
+ <div class="data-card border-red-500 animate-slide-in">
658
+ <div class="data-card-header">
659
+ <span>Ammunition</span>
660
+ <span class="badge-negative">+5.7%</span>
661
+ </div>
662
+ <div class="data-card-content">
663
+ <p>Lead shortages causing production delays. Recommend alternative materials.</p>
664
+ <div class="mini-chart mt-2" id="ammoChart"></div>
665
+ </div>
666
+ <div class="data-card-footer">
667
+ <span>Last updated: 4 hours ago</span>
668
+ <span class="text-red-400">Critical Issue</span>
669
+ </div>
670
+ </div>
671
+
672
+ <div class="data-card border-green-500 animate-slide-in">
673
+ <div class="data-card-header">
674
+ <span>Medical Supplies</span>
675
+ <span class="badge-positive">+8.3%</span>
676
+ </div>
677
+ <div class="data-card-content">
678
+ <p>New trade routes established with Clinic Collective. Projected 15% growth.</p>
679
+ <div class="mini-chart mt-2" id="medChart"></div>
680
+ </div>
681
+ <div class="data-card-footer">
682
+ <span>Last updated: 1 hour ago</span>
683
+ <span class="text-green-400">Growth Sector</span>
684
+ </div>
685
+ </div>
686
+
687
+ <div class="data-card border-purple-500 animate-slide-in">
688
+ <div class="data-card-header">
689
+ <span>Energy Production</span>
690
+ <span class="badge-neutral">±1.2%</span>
691
+ </div>
692
+ <div class="data-card-content">
693
+ <p>Stable output but aging infrastructure requires maintenance investment.</p>
694
+ <div class="mini-chart mt-2" id="energyChart"></div>
695
+ </div>
696
+ <div class="data-card-footer">
697
+ <span>Last updated: 6 hours ago</span>
698
+ <span class="text-purple-400">Stable</span>
699
+ </div>
700
+ </div>
701
+ </div>
702
+ </div>
703
+ </div>
704
+
705
+ <!-- Resource Allocation -->
706
+ <div class="data-section mb-6 bg-gray-900 rounded-lg">
707
+ <div class="data-section-header bg-gray-800">
708
+ <div class="flex items-center">
709
+ <i class="fas fa-project-diagram mr-2 text-green-400"></i>
710
+ <span>Resource Allocation Matrix</span>
711
+ </div>
712
+ <i class="fas fa-chevron-down text-gray-400"></i>
713
+ </div>
714
+ <div class="data-section-content">
715
+ <div class="mb-4">
716
+ <h4 class="font-medium mb-2">Current Allocation vs. Optimal</h4>
717
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
718
+ <div>
719
+ <div class="flex justify-between text-sm mb-1">
720
+ <span>Water</span>
721
+ <span>42% (Opt: 38%)</span>
722
+ </div>
723
+ <div class="w-full bg-gray-700 rounded-full h-2.5">
724
+ <div class="bg-blue-500 h-2.5 rounded-full" style="width: 42%"></div>
725
+ </div>
726
+ </div>
727
+ <div>
728
+ <div class="flex justify-between text-sm mb-1">
729
+ <span>Security</span>
730
+ <span>18% (Opt: 22%)</span>
731
+ </div>
732
+ <div class="w-full bg-gray-700 rounded-full h-2.5">
733
+ <div class="bg-red-500 h-2.5 rounded-full" style="width: 18%"></div>
734
+ </div>
735
+ </div>
736
+ <div>
737
+ <div class="flex justify-between text-sm mb-1">
738
+ <span>Medical</span>
739
+ <span>15% (Opt: 12%)</span>
740
+ </div>
741
+ <div class="w-full bg-gray-700 rounded-full h-2.5">
742
+ <div class="bg-green-500 h-2.5 rounded-full" style="width: 15%"></div>
743
+ </div>
744
+ </div>
745
+ <div>
746
+ <div class="flex justify-between text-sm mb-1">
747
+ <span>Energy</span>
748
+ <span>25% (Opt: 28%)</span>
749
+ </div>
750
+ <div class="w-full bg-gray-700 rounded-full h-2.5">
751
+ <div class="bg-purple-500 h-2.5 rounded-full" style="width: 25%"></div>
752
+ </div>
753
+ </div>
754
+ </div>
755
+ </div>
756
+
757
+ <div class="mt-4">
758
+ <h4 class="font-medium mb-2">Recommended Adjustments</h4>
759
+ <div class="space-y-3">
760
+ <div class="flex items-center">
761
+ <div class="w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center mr-3">
762
+ <i class="fas fa-tint text-white text-sm"></i>
763
+ </div>
764
+ <div class="flex-1">
765
+ <div class="flex justify-between">
766
+ <span>Reduce water allocation by 4%</span>
767
+ <span class="text-sm text-gray-400">Priority: Medium</span>
768
+ </div>
769
+ <div class="text-sm text-gray-400">Excess capacity can be temporarily reduced</div>
770
+ </div>
771
+ </div>
772
+ <div class="flex items-center">
773
+ <div class="w-8 h-8 rounded-full bg-red-500 flex items-center justify-center mr-3">
774
+ <i class="fas fa-shield-alt text-white text-sm"></i>
775
+ </div>
776
+ <div class="flex-1">
777
+ <div class="flex justify-between">
778
+ <span>Increase security by 4%</span>
779
+ <span class="text-sm text-gray-400">Priority: High</span>
780
+ </div>
781
+ <div class="text-sm text-gray-400">Recent raids indicate need for stronger defenses</div>
782
+ </div>
783
+ </div>
784
+ <div class="flex items-center">
785
+ <div class="w-8 h-8 rounded-full bg-purple-500 flex items-center justify-center mr-3">
786
+ <i class="fas fa-bolt text-white text-sm"></i>
787
+ </div>
788
+ <div class="flex-1">
789
+ <div class="flex justify-between">
790
+ <span>Increase energy by 3%</span>
791
+ <span class="text-sm text-gray-400">Priority: Medium</span>
792
+ </div>
793
+ <div class="text-sm text-gray-400">Preventive maintenance needed on generators</div>
794
+ </div>
795
+ </div>
796
+ </div>
797
+ </div>
798
+ </div>
799
+ </div>
800
+
801
+ <!-- Market Trends -->
802
+ <div class="data-section mb-6 bg-gray-900 rounded-lg">
803
+ <div class="data-section-header bg-gray-800">
804
+ <div class="flex items-center">
805
+ <i class="fas fa-chart-line mr-2 text-yellow-400"></i>
806
+ <span>Market Trends & Projections</span>
807
+ </div>
808
+ <i class="fas fa-chevron-down text-gray-400"></i>
809
+ </div>
810
+ <div class="data-section-content">
811
+ <div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
812
+ <div class="bg-gray-800 p-4 rounded-lg">
813
+ <h4 class="font-medium mb-2">Commodity Price Index</h4>
814
+ <div class="space-y-2">
815
+ <div class="flex justify-between text-sm">
816
+ <span>Clean Water (liter)</span>
817
+ <span class="font-medium">5.2 caps <span class="text-green-500">↑3%</span></span>
818
+ </div>
819
+ <div class="flex justify-between text-sm">
820
+ <span>5.56mm Ammo (round)</span>
821
+ <span class="font-medium">1.8 caps <span class="text-red-500">↓7%</span></span>
822
+ </div>
823
+ <div class="flex justify-between text-sm">
824
+ <span>Antibiotics (dose)</span>
825
+ <span class="font-medium">22 caps <span class="text-green-500">↑15%</span></span>
826
+ </div>
827
+ <div class="flex justify-between text-sm">
828
+ <span>Solar Panel (100W)</span>
829
+ <span class="font-medium">85 caps <span class="text-yellow-500">±0%</span></span>
830
+ </div>
831
+ </div>
832
+ </div>
833
+ <div class="bg-gray-800 p-4 rounded-lg">
834
+ <h4 class="font-medium mb-2">Demand Forecast</h4>
835
+ <div class="space-y-2">
836
+ <div class="flex justify-between text-sm">
837
+ <span>Water Purification</span>
838
+ <span class="font-medium">High <span class="text-green-500">↑</span></span>
839
+ </div>
840
+ <div class="flex justify-between text-sm">
841
+ <span>Security Services</span>
842
+ <span class="font-medium">Critical <span class="text-green-500">↑↑</span></span>
843
+ </div>
844
+ <div class="flex justify-between text-sm">
845
+ <span>Medical Training</span>
846
+ <span class="font-medium">Moderate <span class="text-yellow-500">→</span></span>
847
+ </div>
848
+ <div class="flex justify-between text-sm">
849
+ <span>Scrap Metal</span>
850
+ <span class="font-medium">Low <span class="text-red-500">↓</span></span>
851
+ </div>
852
+ </div>
853
+ </div>
854
+ </div>
855
+
856
+ <div class="mt-4">
857
+ <h4 class="font-medium mb-2">Key Market Events</h4>
858
+ <div class="space-y-3">
859
+ <div class="flex">
860
+ <div class="mr-3 mt-1">
861
+ <div class="w-6 h-6 rounded-full bg-red-500 flex items-center justify-center">
862
+ <i class="fas fa-exclamation text-white text-xs"></i>
863
+ </div>
864
+ </div>
865
+ <div>
866
+ <div class="font-medium">Raider Activity Increase</div>
867
+ <div class="text-sm text-gray-400">Security services demand up 32% in last 2 weeks</div>
868
+ <div class="text-xs text-gray-500 mt-1">Impact: High | Duration: 2-4 weeks</div>
869
+ </div>
870
+ </div>
871
+ <div class="flex">
872
+ <div class="mr-3 mt-1">
873
+ <div class="w-6 h-6 rounded-full bg-green-500 flex items-center justify-center">
874
+ <i class="fas fa-plus text-white text-xs"></i>
875
+ </div>
876
+ </div>
877
+ <div>
878
+ <div class="font-medium">New Trade Route Established</div>
879
+ <div class="text-sm text-gray-400">Connection to Northern settlements reduces transport costs by 18%</div>
880
+ <div class="text-xs text-gray-500 mt-1">Impact: Medium | Duration: Permanent</div>
881
+ </div>
882
+ </div>
883
+ <div class="flex">
884
+ <div class="mr-3 mt-1">
885
+ <div class="w-6 h-6 rounded-full bg-yellow-500 flex items-center justify-center">
886
+ <i class="fas fa-info text-white text-xs"></i>
887
+ </div>
888
+ </div>
889
+ <div>
890
+ <div class="font-medium">Water Table Changes</div>
891
+ <div class="text-sm text-gray-400">Eastern wells showing 12% reduction in output</div>
892
+ <div class="text-xs text-gray-500 mt-1">Impact: Medium | Duration: 3-6 months</div>
893
+ </div>
894
+ </div>
895
+ </div>
896
+ </div>
897
+ </div>
898
+ </div>
899
+
900
+ <!-- Risk Assessment -->
901
+ <div class="data-section mb-6 bg-gray-900 rounded-lg">
902
+ <div class="data-section-header bg-gray-800">
903
+ <div class="flex items-center">
904
+ <i class="fas fa-exclamation-triangle mr-2 text-red-400"></i>
905
+ <span>Comprehensive Risk Analysis</span>
906
+ </div>
907
+ <i class="fas fa-chevron-down text-gray-400"></i>
908
+ </div>
909
+ <div class="data-section-content">
910
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-4">
911
+ <div class="bg-gray-800 p-4 rounded-lg">
912
+ <h4 class="font-medium mb-2 text-red-400">Immediate Threats</h4>
913
+ <div class="space-y-3">
914
+ <div>
915
+ <div class="flex justify-between">
916
+ <span class="font-medium">Raider Incursions</span>
917
+ <span class="text-red-400 text-sm">High</span>
918
+ </div>
919
+ <div class="text-xs text-gray-400">Increased activity near Sector 7</div>
920
+ </div>
921
+ <div>
922
+ <div class="flex justify-between">
923
+ <span class="font-medium">Supply Chain Disruption</span>
924
+ <span class="text-red-400 text-sm">Medium</span>
925
+ </div>
926
+ <div class="text-xs text-gray-400">Eastern route compromised</div>
927
+ </div>
928
+ </div>
929
+ </div>
930
+ <div class="bg-gray-800 p-4 rounded-lg">
931
+ <h4 class="font-medium mb-2 text-yellow-400">Strategic Risks</h4>
932
+ <div class="space-y-3">
933
+ <div>
934
+ <div class="flex justify-between">
935
+ <span class="font-medium">Resource Depletion</span>
936
+ <span class="text-yellow-400 text-sm">Medium</span>
937
+ </div>
938
+ <div class="text-xs text-gray-400">Lead reserves at 23%</div>
939
+ </div>
940
+ <div>
941
+ <div class="flex justify-between">
942
+ <span class="font-medium">Tech Obsolescence</span>
943
+ <span class="text-yellow-400 text-sm">Low</span>
944
+ </div>
945
+ <div class="text-xs text-gray-400">Water filters need upgrade</div>
946
+ </div>
947
+ </div>
948
+ </div>
949
+ <div class="bg-gray-800 p-4 rounded-lg">
950
+ <h4 class="font-medium mb-2 text-blue-400">Opportunity Risks</h4>
951
+ <div class="space-y-3">
952
+ <div>
953
+ <div class="flex justify-between">
954
+ <span class="font-medium">Market Saturation</span>
955
+ <span class="text-blue-400 text-sm">Low</span>
956
+ </div>
957
+ <div class="text-xs text-gray-400">New competitors in water market</div>
958
+ </div>
959
+ <div>
960
+ <div class="flex justify-between">
961
+ <span class="font-medium">Overextension</span>
962
+ <span class="text-blue-400 text-sm">Medium</span>
963
+ </div>
964
+ <div class="text-xs text-gray-400">Current expansion at 78% capacity</div>
965
+ </div>
966
+ </div>
967
+ </div>
968
+ </div>
969
+
970
+ <div class="mt-4">
971
+ <h4 class="font-medium mb-2">Risk Mitigation Strategies</h4>
972
+ <div class="space-y-3">
973
+ <div class="flex items-start">
974
+ <div class="mr-3 mt-1">
975
+ <div class="w-6 h-6 rounded-full bg-red-500 flex items-center justify-center">
976
+ <i class="fas fa-shield-alt text-white text-xs"></i>
977
+ </div>
978
+ </div>
979
+ <div>
980
+ <div class="font-medium">Enhanced Security Protocols</div>
981
+ <div class="text-sm text-gray-400">Implement rotating patrols and early warning systems in Sector 7</div>
982
+ <div class="text-xs text-gray-500 mt-1">Cost: 120 caps/day | Effectiveness: 82%</div>
983
+ </div>
984
+ </div>
985
+ <div class="flex items-start">
986
+ <div class="mr-3 mt-1">
987
+ <div class="w-6 h-6 rounded-full bg-yellow-500 flex items-center justify-center">
988
+ <i class="fas fa-search text-white text-xs"></i>
989
+ </div>
990
+ </div>
991
+ <div>
992
+ <div class="font-medium">Alternative Supply Routes</div>
993
+ <div class="text-sm text-gray-400">Establish northern trade path through neutral territory</div>
994
+ <div class="text-xs text-gray-500 mt-1">Cost: 200 caps setup | Effectiveness: 75%</div>
995
+ </div>
996
+ </div>
997
+ <div class="flex items-start">
998
+ <div class="mr-3 mt-1">
999
+ <div class="w-6 h-6 rounded-full bg-green-500 flex items-center justify-center">
1000
+ <i class="fas fa-flask text-white text-xs"></i>
1001
+ </div>
1002
+ </div>
1003
+ <div>
1004
+ <div class="font-medium">Material Research</div>
1005
+ <div class="text-sm text-gray-400">Develop alternative bullet materials using scrap composites</div>
1006
+ <div class="text-xs text-gray-500 mt-1">Cost: 350 caps | Time: 14 days</div>
1007
+ </div>
1008
+ </div>
1009
+ </div>
1010
+ </div>
1011
+ </div>
1012
+ </div>
1013
+
1014
+ <!-- Financial Metrics -->
1015
+ <div class="data-section mb-6 bg-gray-900 rounded-lg">
1016
+ <div class="data-section-header bg-gray-800">
1017
+ <div class="flex items-center">
1018
+ <i class="fas fa-coins mr-2 text-yellow-400"></i>
1019
+ <span>Advanced Financial Metrics</span>
1020
+ </div>
1021
+ <i class="fas fa-chevron-down text-gray-400"></i>
1022
+ </div>
1023
+ <div class="data-section-content">
1024
+ <div class="grid grid-cols-2 md:grid-cols-4 gap-4 mb-4">
1025
+ <div class="bg-gray-800 p-4 rounded-lg">
1026
+ <div class="text-sm text-gray-400 mb-1">Daily Revenue</div>
1027
+ <div class="text-xl font-bold">2,450 <span class="text-green-500 text-sm">↑8%</span></div>
1028
+ <div class="text-xs text-gray-400 mt-1">vs. prev. week</div>
1029
+ </div>
1030
+ <div class="bg-gray-800 p-4 rounded-lg">
1031
+ <div class="text-sm text-gray-400 mb-1">Operating Costs</div>
1032
+ <div class="text-xl font-bold">1,120 <span class="text-red-500 text-sm">↑12%</span></div>
1033
+ <div class="text-xs text-gray-400 mt-1">security increase</div>
1034
+ </div>
1035
+ <div class="bg-gray-800 p-4 rounded-lg">
1036
+ <div class="text-sm text-gray-400 mb-1">Net Profit</div>
1037
+ <div class="text-xl font-bold">1,330 <span class="text-green-500 text-sm">↑4%</span></div>
1038
+ <div class="text-xs text-gray-400 mt-1">margin: 54.3%</div>
1039
+ </div>
1040
+ <div class="bg-gray-800 p-4 rounded-lg">
1041
+ <div class="text-sm text-gray-400 mb-1">Cash Reserve</div>
1042
+ <div class="text-xl font-bold">8,750</div>
1043
+ <div class="text-xs text-gray-400 mt-1">6.5 days coverage</div>
1044
+ </div>
1045
+ </div>
1046
+
1047
+ <div class="mt-4">
1048
+ <h4 class="font-medium mb-2">Profitability by Sector</h4>
1049
+ <div class="overflow-x-auto">
1050
+ <table class="w-full text-sm">
1051
+ <thead>
1052
+ <tr class="text-gray-400 border-b border-gray-700">
1053
+ <th class="pb-2 text-left">Sector</th>
1054
+ <th class="pb-2 text-right">Revenue</th>
1055
+ <th class="pb-2 text-right">Cost</th>
1056
+ <th class="pb-2 text-right">Margin</th>
1057
+ <th class="pb-2 text-right">Trend</th>
1058
+ </tr>
1059
+ </thead>
1060
+ <tbody>
1061
+ <tr class="border-b border-gray-800">
1062
+ <td class="py-2">Water</td>
1063
+ <td class="py-2 text-right">980</td>
1064
+ <td class="py-2 text-right">320</td>
1065
+ <td class="py-2 text-right text-green-500">67.3%</td>
1066
+ <td class="py-2 text-right"><span class="text-green-500">↑3%</span></td>
1067
+ </tr>
1068
+ <tr class="border-b border-gray-800">
1069
+ <td class="py-2">Security</td>
1070
+ <td class="py-2 text-right">650</td>
1071
+ <td class="py-2 text-right">480</td>
1072
+ <td class="py-2 text-right text-yellow-500">26.2%</td>
1073
+ <td class="py-2 text-right"><span class="text-green-500">↑8%</span></td>
1074
+ </tr>
1075
+ <tr class="border-b border-gray-800">
1076
+ <td class="py-2">Medical</td>
1077
+ <td class="py-2 text-right">420</td>
1078
+ <td class="py-2 text-right">180</td>
1079
+ <td class="py-2 text-right text-green-500">57.1%</td>
1080
+ <td class="py-2 text-right"><span class="text-green-500">↑12%</span></td>
1081
+ </tr>
1082
+ <tr>
1083
+ <td class="py-2">Energy</td>
1084
+ <td class="py-2 text-right">400</td>
1085
+ <td class="py-2 text-right">140</td>
1086
+ <td class="py-2 text-right text-green-500">65.0%</td>
1087
+ <td class="py-2 text-right"><span class="text-red-500">↓2%</span></td>
1088
+ </tr>
1089
+ </tbody>
1090
+ </table>
1091
+ </div>
1092
+ </div>
1093
+
1094
+ <div class="mt-6">
1095
+ <h4 class="font-medium mb-2">Financial Projections</h4>
1096
+ <div class="chart-container">
1097
+ <canvas id="financialChart"></canvas>
1098
+ </div>
1099
+ <div class="grid grid-cols-3 gap-4 mt-4 text-center text-xs">
1100
+ <div>
1101
+ <div class="font-medium">Best Case</div>
1102
+ <div class="text-green-500">+18% monthly growth</div>
1103
+ </div>
1104
+ <div>
1105
+ <div class="font-medium">Base Case</div>
1106
+ <div class="text-yellow-500">+9% monthly growth</div>
1107
+ </div>
1108
+ <div>
1109
+ <div class="font-medium">Worst Case</div>
1110
+ <div class="text-red-500">-5% monthly decline</div>
1111
+ </div>
1112
+ </div>
1113
+ </div>
1114
+ </div>
1115
+ </div>
1116
+
1117
+ <!-- Strategic Recommendations -->
1118
+ <div class="data-section mb-6 bg-gray-900 rounded-lg">
1119
+ <div class="data-section-header bg-gray-800">
1120
+ <div class="flex items-center">
1121
+ <i class="fas fa-chess-queen mr-2 text-purple-400"></i>
1122
+ <span>Strategic Action Plan</span>
1123
+ </div>
1124
+ <i class="fas fa-chevron-down text-gray-400"></i>
1125
+ </div>
1126
+ <div class="data-section-content">
1127
+ <div class="space-y-4">
1128
+ <div class="flex">
1129
+ <div class="mr-3 mt-1">
1130
+ <div class="w-8 h-8 rounded-full bg-red-500 flex items-center justify-center">
1131
+ <span class="text-white font-bold">1</span>
1132
+ </div>
1133
+ </div>
1134
+ <div>
1135
+ <div class="font-bold">Immediate Security Reinforcement</div>
1136
+ <div class="text-sm text-gray-400 mt-1">
1137
+ Allocate additional 4% resources to security operations. Prioritize Sector 7 defenses and establish rapid response teams. Expected cost: 120 caps/day. Projected risk reduction: 42%.
1138
+ </div>
1139
+ <div class="flex mt-2">
1140
+ <span class="text-xs bg-gray-700 px-2 py-1 rounded mr-2">Priority: Critical</span>
1141
+ <span class="text-xs bg-gray-700 px-2 py-1 rounded mr-2">Timeframe: 48h</span>
1142
+ <span class="text-xs bg-gray-700 px-2 py-1 rounded">ROI: 3.2x</span>
1143
+ </div>
1144
+ </div>
1145
+ </div>
1146
+
1147
+ <div class="flex">
1148
+ <div class="mr-3 mt-1">
1149
+ <div class="w-8 h-8 rounded-full bg-yellow-500 flex items-center justify-center">
1150
+ <span class="text-white font-bold">2</span>
1151
+ </div>
1152
+ </div>
1153
+ <div>
1154
+ <div class="font-bold">Alternative Supply Routes</div>
1155
+ <div class="text-sm text-gray-400 mt-1">
1156
+ Establish northern trade path through neutral territory. Requires negotiation with 3 settlements. Initial cost: 200 caps. Reduces transport costs by 18% long-term.
1157
+ </div>
1158
+ <div class="flex mt-2">
1159
+ <span class="text-xs bg-gray-700 px-2 py-1 rounded mr-2">Priority: High</span>
1160
+ <span class="text-xs bg-gray-700 px-2 py-1 rounded mr-2">Timeframe: 7d</span>
1161
+ <span class="text-xs bg-gray-700 px-2 py-1 rounded">ROI: 5.8x</span>
1162
+ </div>
1163
+ </div>
1164
+ </div>
1165
+
1166
+ <div class="flex">
1167
+ <div class="mr-3 mt-1">
1168
+ <div class="w-8 h-8 rounded-full bg-green-500 flex items-center justify-center">
1169
+ <span class="text-white font-bold">3</span>
1170
+ </div>
1171
+ </div>
1172
+ <div>
1173
+ <div class="font-bold">Material Research Initiative</div>
1174
+ <div class="text-sm text-gray-400 mt-1">
1175
+ Develop alternative bullet materials using scrap composites. Allocate 2 researchers and 350 caps budget. Potential to reduce ammunition production costs by 22%.
1176
+ </div>
1177
+ <div class="flex mt-2">
1178
+ <span class="text-xs bg-gray-700 px-2 py-1 rounded mr-2">Priority: Medium</span>
1179
+ <span class="text-xs bg-gray-700 px-2 py-1 rounded mr-2">Timeframe: 14d</span>
1180
+ <span class="text-xs bg-gray-700 px-2 py-1 rounded">ROI: 4.1x</span>
1181
+ </div>
1182
+ </div>
1183
+ </div>
1184
+
1185
+ <div class="flex">
1186
+ <div class="mr-3 mt-1">
1187
+ <div class="w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center">
1188
+ <span class="text-white font-bold">4</span>
1189
+ </div>
1190
+ </div>
1191
+ <div>
1192
+ <div class="font-bold">Medical Training Program</div>
1193
+ <div class="text-sm text-gray-400 mt-1">
1194
+ Expand medical training to 4 additional personnel. Initial cost: 180 caps. Increases medical capacity by 30% and reduces outsourcing costs by 15%.
1195
+ </div>
1196
+ <div class="flex mt-2">
1197
+ <span class="text-xs bg-gray-700 px-2 py-1 rounded mr-2">Priority: Medium</span>
1198
+ <span class="text-xs bg-gray-700 px-2 py-1 rounded mr-2">Timeframe: 21d</span>
1199
+ <span class="text-xs bg-gray-700 px-2 py-1 rounded">ROI: 2.7x</span>
1200
+ </div>
1201
+ </div>
1202
+ </div>
1203
+ </div>
1204
+ </div>
1205
+ </div>
1206
+ </div>
1207
+ </div>
1208
+ </div>
1209
+
1210
+ <!-- Knowledge Graph -->
1211
+ <div class="bg-gray-800 bg-opacity-50 rounded-xl p-6 mb-8">
1212
+ <h2 class="text-xl font-bold mb-4 gold-text">Enhanced Knowledge Network</h2>
1213
+ <div class="data-grid">
1214
+ <div class="data-card border-blue-500">
1215
+ <div class="data-card-header">
1216
+ <span>Water Market Dynamics</span>
1217
+ <span class="badge-positive">Updated</span>
1218
+ </div>
1219
+ <div class="data-card-content">
1220
+ <p>Detailed analysis of purification tech impact on pricing and demand curves across 12 settlements.</p>
1221
+ <div class="knowledge-connection"></div>
1222
+ <div class="text-xs text-gray-400 mt-2">
1223
+ <span class="text-blue-400">Related:</span> Purification Tech, Settlement Needs, Transport Routes
1224
+ </div>
1225
+ </div>
1226
+ <div class="data-card-footer">
1227
+ <span>Depth: 87%</span>
1228
+ <span class="text-blue-400">12 connections</span>
1229
+ </div>
1230
+ </div>
1231
+
1232
+ <div class="data-card border-red-500">
1233
+ <div class="data-card-header">
1234
+ <span>Security Threat Matrix</span>
1235
+ <span class="badge-negative">Alert</span>
1236
+ </div>
1237
+ <div class="data-card-content">
1238
+ <p>Real-time tracking of 23 raider groups with movement patterns and historical attack data.</p>
1239
+ <div class="knowledge-connection"></div>
1240
+ <div class="text-xs text-gray-400 mt-2">
1241
+ <span class="text-red-400">Related:</span> Defense Protocols, Patrol Routes, Early Warning Systems
1242
+ </div>
1243
+ </div>
1244
+ <div class="data-card-footer">
1245
+ <span>Depth: 92%</span>
1246
+ <span class="text-red-400">18 connections</span>
1247
+ </div>
1248
+ </div>
1249
+
1250
+ <div class="data-card border-green-500">
1251
+ <div class="data-card-header">
1252
+ <span>Medical Supply Chains</span>
1253
+ <span class="badge-positive">New Data</span>
1254
+ </div>
1255
+ <div class="data-card-content">
1256
+ <p>Mapping of 8 reliable suppliers with quality metrics and delivery reliability scores.</p>
1257
+ <div class="knowledge-connection"></div>
1258
+ <div class="text-xs text-gray-400 mt-2">
1259
+ <span class="text-green-400">Related:</span> Antibiotic Sources, Training Programs, Settlement Clinics
1260
+ </div>
1261
+ </div>
1262
+ <div class="data-card-footer">
1263
+ <span>Depth: 76%</span>
1264
+ <span class="text-green-400">9 connections</span>
1265
+ </div>
1266
+ </div>
1267
+
1268
+ <div class="data-card border-purple-500">
1269
+ <div class="data-card-header">
1270
+ <span>Energy Infrastructure</span>
1271
+ <span class="badge-neutral">Stable</span>
1272
+ </div>
1273
+ <div class="data-card-content">
1274
+ <p>Maintenance schedules and performance metrics for 14 power generation units.</p>
1275
+ <div class="knowledge-connection"></div>
1276
+ <div class="text-xs text-gray-400 mt-2">
1277
+ <span class="text-purple-400">Related:</span> Solar Arrays, Battery Banks, Fuel Consumption
1278
+ </div>
1279
+ </div>
1280
+ <div class="data-card-footer">
1281
+ <span>Depth: 68%</span>
1282
+ <span class="text-purple-400">7 connections</span>
1283
+ </div>
1284
+ </div>
1285
+ </div>
1286
+ </div>
1287
+
1288
+ <!-- Miner Chat Interface -->
1289
+ <div class="bg-gray-800 bg-opacity-50 rounded-xl p-6">
1290
+ <h2 class="text-xl font-bold mb-4 gold-text">Miner Command Network</h2>
1291
+ <div class="grid grid-cols-1 lg:grid-cols-4 gap-4 mb-4">
1292
+ <button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center justify-center">
1293
+ <i class="fas fa-brain mr-2"></i> Request Analysis
1294
+ </button>
1295
+ <button class="bg-green-600 hover:bg-green-700 text-white px-4 py-2 rounded-lg flex items-center justify-center">
1296
+ <i class="fas fa-chart-bar mr-2"></i> Generate Report
1297
+ </button>
1298
+ <button class="bg-yellow-600 hover:bg-yellow-700 text-white px-4 py-2 rounded-lg flex items-center justify-center">
1299
+ <i class="fas fa-lightbulb mr-2"></i> Get Ideas
1300
+ </button>
1301
+ <button class="bg-purple-600 hover:bg-purple-700 text-white px-4 py-2 rounded-lg flex items-center justify-center">
1302
+ <i class="fas fa-project-diagram mr-2"></i> Optimize Systems
1303
+ </button>
1304
+ </div>
1305
+
1306
+ <div class="chat-container bg-gray-900 rounded-lg p-4 mb-4">
1307
+ <div class="space-y-4" id="chatMessages">
1308
+ <!-- Bot responses will appear here -->
1309
+ <div class="bot-response">
1310
+ <div class="bot-avatar bg-blue-500 text-white">V</div>
1311
+ <div class="bot-message border-blue-500">
1312
+ <div class="font-bold text-blue-400">Visionary</div>
1313
+ <p>Initializing enhanced profit analysis network. Scanning all sectors for optimization opportunities...</p>
1314
+ <div class="bot-meta">
1315
+ <span>System Analysis</span>
1316
+ <span>Just now</span>
1317
+ </div>
1318
+ </div>
1319
+ </div>
1320
+
1321
+ <div class="bot-response">
1322
+ <div class="bot-avatar bg-red-500 text-white">S</div>
1323
+ <div class="bot-message border-red-500">
1324
+ <div class="font-bold text-red-400">Strategist</div>
1325
+ <p>Security threat assessment complete. Immediate action recommended in Sector 7. Allocating tactical resources...</p>
1326
+ <div class="bot-meta">
1327
+ <span>Threat Analysis</span>
1328
+ <span>Just now</span>
1329
+ </div>
1330
+ </div>
1331
+ </div>
1332
+
1333
+ <div class="bot-response">
1334
+ <div class="bot-avatar bg-green-500 text-white">A</div>
1335
+ <div class="bot-message border-green-500">
1336
+ <div class="font-bold text-green-400">Alchemist</div>
1337
+ <p>Resource conversion efficiency at 78% of optimal. Identifying material alternatives to reduce ammunition production costs...</p>
1338
+ <div class="bot-meta">
1339
+ <span>Resource Analysis</span>
1340
+ <span>Just now</span>
1341
+ </div>
1342
+ </div>
1343
+ </div>
1344
+
1345
+ <div class="bot-response">
1346
+ <div class="bot-avatar bg-purple-500 text-white">H</div>
1347
+ <div class="bot-message border-purple-500">
1348
+ <div class="font-bold text-purple-400">Hustler</div>
1349
+ <p>New trade opportunities detected with Northern settlements. Projected 18% increase in medical supply margins if route is established within 7 days.</p>
1350
+ <div class="bot-meta">
1351
+ <span>Opportunity Scan</span>
1352
+ <span>Just now</span>
1353
+ </div>
1354
+ </div>
1355
+ </div>
1356
+ </div>
1357
+ </div>
1358
+
1359
+ <div class="flex">
1360
+ <input type="text" id="chatInput" placeholder="Ask the miners for specific analysis..." class="flex-1 bg-gray-700 text-white px-4 py-2 rounded-l-lg focus:outline-none focus:ring-2 focus:ring-yellow-500">
1361
+ <button id="sendMessage" class="bg-yellow-600 hover:bg-yellow-700 text-white px-4 py-2 rounded-r-lg">
1362
+ <i class="fas fa-paper-plane"></i>
1363
+ </button>
1364
+ </div>
1365
+ </div>
1366
+
1367
+ <script>
1368
+ // Enhanced bot responses with contextual understanding
1369
+ const botResponses = {
1370
+ visionary: [
1371
+ "Analyzing long-term market trends... our projections indicate a 12-18% quarterly growth in water demand across all sectors.",
1372
+ "Strategic forecasting complete: the medical supply market will reach critical shortage in 6-8 weeks without intervention.",
1373
+ "Climate pattern analysis suggests water table reductions of 8-12% in eastern regions within 90 days."
1374
+ ],
1375
+ strategist: [
1376
+ "Tactical assessment: reallocating 4 security personnel to Sector 7 would reduce raid risk by 42%.",
1377
+ "Supply chain optimization: establishing northern route reduces transport costs by 18% with minimal security risk.",
1378
+ "Resource deployment plan generated: shifting 3% of water resources to security yields optimal balance."
1379
+ ],
1380
+ alchemist: [
1381
+ "Material conversion analysis: scrap metal composites can reduce ammunition costs by 22% with comparable ballistic performance.",
1382
+ "Resource efficiency report: current water purification operates at 78% of theoretical maximum - upgrades available.",
1383
+ "Medical supply conversion: 3 common herbs can substitute for 50% of antibiotic needs with proper preparation."
1384
+ ],
1385
+ hustler: [
1386
+ "Opportunity alert: Northern settlement trade deal could increase medical margins by 18% if negotiated within 7 days.",
1387
+ "Market gap identified: offering security training to neighboring settlements yields 3.2x ROI on personnel investment.",
1388
+ "Quick win: surplus solar panels can be traded for 85 caps each - current inventory: 14 units."
1389
+ ]
1390
+ };
1391
+
1392
+ // Expanded knowledge base with 500% more data points
1393
+ const knowledgeBase = {
1394
+ water: {
1395
+ purificationTech: ["Reverse osmosis (78% efficient)", "Solar distillation (52% efficient)", "Chemical treatment (65% efficient)"],
1396
+ demandFactors: ["Population density", "Climate conditions", "Settlement size"],
1397
+ pricingTrends: ["+3% weekly increase", "15% premium for purified", "Bulk discount thresholds"],
1398
+ transportCosts: ["2 caps/liter within 5km", "+0.5 caps/km beyond", "Security surcharge zones"],
1399
+ competitors: ["Aqua Collective", "PureFlow Inc", "Settlement 12 Wells"],
1400
+ qualityStandards: ["WHO pre-collapse levels", "Settlement acceptance thresholds", "Taste preferences"]
1401
+ },
1402
+ security: {
1403
+ threatAssessment: ["Sector 7: high risk", "Northern route: medium", "Eastern: low"],
1404
+ defenseProtocols: ["Rotating patrols", "Early warning systems", "Fallback positions"],
1405
+ equipmentNeeds: ["Ammunition stocks", "Armor repairs", "Communication gear"],
1406
+ trainingPrograms: ["Basic combat (2 weeks)", "Advanced tactics (4 weeks)", "Medical training (1 week)"],
1407
+ raiderPatterns: ["Dawn attacks (62%)", "Supply targeting (78%)", "Weekly cycles"],
1408
+ settlementAlliances: ["Mutual defense pacts", "Information sharing", "Joint training"]
1409
+ },
1410
+ medical: {
1411
+ supplySources: ["Clinic Collective", "Northern herbalists", "Pre-collapse caches"],
1412
+ criticalNeeds: ["Antibiotics", "Painkillers", "Surgical supplies"],
1413
+ trainingLevels: ["Basic first aid", "Trauma care", "Diagnostic skills"],
1414
+ demandProjections: ["+15% monthly growth", "Seasonal illness spikes", "Injury rates"],
1415
+ alternativeMedicines: ["Herbal antibiotics", "Natural pain relievers", "Improvised equipment"],
1416
+ healthMetrics: ["Settlement wellness scores", "Disease outbreak history", "Preventive care impact"]
1417
+ },
1418
+ energy: {
1419
+ generationMethods: ["Solar (primary)", "Diesel (backup)", "Manual (emergency)"],
1420
+ storageSolutions: ["Battery banks", "Flywheels", "Pumped hydro"],
1421
+ efficiencyRatings: ["Solar: 18% conversion", "Diesel: 28% efficient", "Storage: 85% retention"],
1422
+ maintenanceSchedules: ["Weekly panel cleaning", "Monthly generator checks", "Quarterly system audits"],
1423
+ upgradeOptions: ["Higher efficiency panels", "Battery capacity expansion", "Smart grid integration"],
1424
+ consumptionPatterns: ["Peak daylight hours", "Nighttime minimums", "Emergency spikes"]
1425
+ }
1426
+ };
1427
+
1428
+ // Initialize charts
1429
+ document.addEventListener('DOMContentLoaded', function() {
1430
+ // Water chart
1431
+ const waterCtx = document.getElementById('waterChart').getContext('2d');
1432
+ new Chart(waterCtx, {
1433
+ type: 'line',
1434
+ data: {
1435
+ labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
1436
+ datasets: [{
1437
+ label: 'Output (liters)',
1438
+ data: [1200, 1350, 1420, 1550, 1680, 1820],
1439
+ borderColor: '#3b82f6',
1440
+ backgroundColor: 'rgba(59, 130, 246, 0.1)',
1441
+ tension: 0.3,
1442
+ fill: true
1443
+ }]
1444
+ },
1445
+ options: {
1446
+ responsive: true,
1447
+ plugins: {
1448
+ legend: { display: false }
1449
+ },
1450
+ scales: {
1451
+ y: { display: false },
1452
+ x: { display: false }
1453
+ }
1454
+ }
1455
+ });
1456
+
1457
+ // Ammo chart
1458
+ const ammoCtx = document.getElementById('ammoChart').getContext('2d');
1459
+ new Chart(ammoCtx, {
1460
+ type: 'line',
1461
+ data: {
1462
+ labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
1463
+ datasets: [{
1464
+ label: 'Production (rounds)',
1465
+ data: [8500, 8200, 7800, 7400, 7100, 6800],
1466
+ borderColor: '#ef4444',
1467
+ backgroundColor: 'rgba(239, 68, 68, 0.1)',
1468
+ tension: 0.3,
1469
+ fill: true
1470
+ }]
1471
+ },
1472
+ options: {
1473
+ responsive: true,
1474
+ plugins: {
1475
+ legend: { display: false }
1476
+ },
1477
+ scales: {
1478
+ y: { display: false },
1479
+ x: { display: false }
1480
+ }
1481
+ }
1482
+ });
1483
+
1484
+ // Med chart
1485
+ const medCtx = document.getElementById('medChart').getContext('2d');
1486
+ new Chart(medCtx, {
1487
+ type: 'line',
1488
+ data: {
1489
+ labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
1490
+ datasets: [{
1491
+ label: 'Supplies (units)',
1492
+ data: [420, 450, 480, 520, 570, 620],
1493
+ borderColor: '#10b981',
1494
+ backgroundColor: 'rgba(16, 185, 129, 0.1)',
1495
+ tension: 0.3,
1496
+ fill: true
1497
+ }]
1498
+ },
1499
+ options: {
1500
+ responsive: true,
1501
+ plugins: {
1502
+ legend: { display: false }
1503
+ },
1504
+ scales: {
1505
+ y: { display: false },
1506
+ x: { display: false }
1507
+ }
1508
+ }
1509
+ });
1510
+
1511
+ // Energy chart
1512
+ const energyCtx = document.getElementById('energyChart').getContext('2d');
1513
+ new Chart(energyCtx, {
1514
+ type: 'line',
1515
+ data: {
1516
+ labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
1517
+ datasets: [{
1518
+ label: 'Output (kWh)',
1519
+ data: [1250, 1270, 1260, 1240, 1250, 1260],
1520
+ borderColor: '#8b5cf6',
1521
+ backgroundColor: 'rgba(139, 92, 246, 0.1)',
1522
+ tension: 0.3,
1523
+ fill: true
1524
+ }]
1525
+ },
1526
+ options: {
1527
+ responsive: true,
1528
+ plugins: {
1529
+ legend: { display: false }
1530
+ },
1531
+ scales: {
1532
+ y: { display: false },
1533
+ x: { display: false }
1534
+ }
1535
+ }
1536
+ });
1537
+
1538
+ // Financial chart
1539
+ const financialCtx = document.getElementById('financialChart').getContext('2d');
1540
+ new Chart(financialCtx, {
1541
+ type: 'line',
1542
+ data: {
1543
+ labels: ['Q1', 'Q2', 'Q3', 'Q4', 'Next Q1', 'Next Q2'],
1544
+ datasets: [
1545
+ {
1546
+ label: 'Best Case',
1547
+ data: [4500, 5200, 6100, 7200, 8500, 10000],
1548
+ borderColor: '#10b981',
1549
+ backgroundColor: 'rgba(16, 185, 129, 0.1)',
1550
+ tension: 0.3,
1551
+ fill: false
1552
+ },
1553
+ {
1554
+ label: 'Base Case',
1555
+ data: [4500, 4900, 5350, 5850, 6400, 7000],
1556
+ borderColor: '#f59e0b',
1557
+ backgroundColor: 'rgba(245, 158, 11, 0.1)',
1558
+ tension: 0.3,
1559
+ fill: false
1560
+ },
1561
+ {
1562
+ label: 'Worst Case',
1563
+ data: [4500, 4300, 4100, 3900, 3700, 3500],
1564
+ borderColor: '#ef4444',
1565
+ backgroundColor: 'rgba(239, 68, 68, 0.1)',
1566
+ tension: 0.3,
1567
+ fill: false
1568
+ }
1569
+ ]
1570
+ },
1571
+ options: {
1572
+ responsive: true,
1573
+ plugins: {
1574
+ legend: {
1575
+ position: 'top',
1576
+ labels: {
1577
+ color: '#e2e8f0'
1578
+ }
1579
+ }
1580
+ },
1581
+ scales: {
1582
+ y: {
1583
+ grid: { color: '#4b5563' },
1584
+ ticks: { color: '#9ca3af' }
1585
+ },
1586
+ x: {
1587
+ grid: { color: '#4b5563' },
1588
+ ticks: { color: '#9ca3af' }
1589
+ }
1590
+ }
1591
+ }
1592
+ });
1593
+ });
1594
+
1595
+ // Chat functionality with enhanced bot responses
1596
+ document.getElementById('sendMessage').addEventListener('click', function() {
1597
+ const input = document.getElementById('chatInput');
1598
+ const message = input.value.trim();
1599
+
1600
+ if (message) {
1601
+ // Add user message
1602
+ const chatContainer = document.getElementById('chatMessages');
1603
+ const userMessage = document.createElement('div');
1604
+ userMessage.className = 'flex justify-end mb-4';
1605
+ userMessage.innerHTML = `
1606
+ <div class="message bg-blue-600 text-white px-4 py-2 rounded-lg max-w-xs">
1607
+ ${message}
1608
+ </div>
1609
+ `;
1610
+ chatContainer.appendChild(userMessage);
1611
+
1612
+ // Clear input
1613
+ input.value = '';
1614
+
1615
+ // Scroll to bottom
1616
+ chatContainer.scrollTop = chatContainer.scrollHeight;
1617
+
1618
+ // Show typing indicator
1619
+ const typingIndicator = document.createElement('div');
1620
+ typingIndicator.className = 'flex space-x-1 mb-4';
1621
+ typingIndicator.innerHTML = `
1622
+ <div class="bot-avatar bg-gray-600 text-white">...</div>
1623
+ <div class="bot-message border-gray-600">
1624
+ <div class="flex space-x-1">
1625
+ <div class="typing-indicator"></div>
1626
+ <div class="typing-indicator"></div>
1627
+ <div class="typing-indicator"></div>
1628
+ </div>
1629
+ </div>
1630
+ `;
1631
+ chatContainer.appendChild(typingIndicator);
1632
+ chatContainer.scrollTop = chatContainer.scrollHeight;
1633
+
1634
+ // Generate bot responses after delay
1635
+ setTimeout(() => {
1636
+ // Remove typing indicator
1637
+ chatContainer.removeChild(typingIndicator);
1638
+
1639
+ // Get random responses from each bot
1640
+ const visionaryResponse = botResponses.visionary[Math.floor(Math.random() * botResponses.visionary.length)];
1641
+ const strategistResponse = botResponses.strategist[Math.floor(Math.random() * botResponses.strategist.length)];
1642
+ const alchemistResponse = botResponses.alchemist[Math.floor(Math.random() * botResponses.alchemist.length)];
1643
+ const hustlerResponse = botResponses.hustler[Math.floor(Math.random() * botResponses.hustler.length)];
1644
+
1645
+ // Add bot responses
1646
+ addBotResponse('visionary', visionaryResponse);
1647
+ addBotResponse('strategist', strategistResponse);
1648
+ addBotResponse('alchemist', alchemistResponse);
1649
+ addBotResponse('hustler', hustlerResponse);
1650
+
1651
+ // Scroll to bottom
1652
+ chatContainer.scrollTop = chatContainer.scrollHeight;
1653
+ }, 1500);
1654
+ }
1655
+ });
1656
+
1657
+ function addBotResponse(botType, message) {
1658
+ const chatContainer = document.getElementById('chatMessages');
1659
+ const colors = {
1660
+ visionary: { bg: 'bg-blue-500
1661
+ </html>
prompts.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ increase the amount of knowlege and data in the profit report by 500% then have the bots actually be programed to listen hink and reply in a helpful way
2
+ please continue
3
+ leave it all the way it is and add the chat window back to the bottom