Download index.html from MarcRyan/post-collapse-resource-optimization-network: direct link, hf CLI and curl.
- Browser
- Download file 64.8 kB
-
https://huggingface.co/spaces/MarcRyan/post-collapse-resource-optimization-network/resolve/main/index.html
- Command line
-
hf download hf://spaces/MarcRyan/post-collapse-resource-optimization-network/index.html
-
curl -L -o index.html https://huggingface.co/spaces/MarcRyan/post-collapse-resource-optimization-network/resolve/main/index.html
64.8 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Apocalypse Profit Miners - Enhanced</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
/* Previous CSS styles remain unchanged */
@keyframes float {
0% { transform: translateY(0px); }
50% { transform: translateY(-10px); }
100% { transform: translateY(0px); }
}
.miner-head {
animation: float 4s ease-in-out infinite;
transition: all 0.3s ease;
border: 2px solid;
cursor: pointer;
}
.miner-head:hover {
transform: scale(1.05) !important;
animation-play-state: paused;
}
.visionary {
animation-delay: 0s;
border-color: #3b82f6;
}
.strategist {
animation-delay: 0.5s;
border-color: #ef4444;
}
.alchemist {
animation-delay: 1s;
border-color: #10b981;
}
.hustler {
animation-delay: 1.5s;
border-color: #8b5cf6;
}
.chat-container {
height: 500px;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: #4b5563 #1f2937;
}
.chat-container::-webkit-scrollbar {
width: 8px;
}
.chat-container::-webkit-scrollbar-track {
background: #1f2937;
}
.chat-container::-webkit-scrollbar-thumb {
background-color: #4b5563;
border-radius: 4px;
}
.message {
max-width: 80%;
word-wrap: break-word;
}
.typing-indicator {
display: inline-block;
width: 10px;
height: 10px;
border-radius: 50%;
background-color: #6b7280;
margin-right: 4px;
animation: bounce 1.5s infinite ease-in-out;
}
.typing-indicator:nth-child(2) {
animation-delay: 0.2s;
}
.typing-indicator:nth-child(3) {
animation-delay: 0.4s;
}
@keyframes bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-5px); }
}
.gold-text {
color: #f59e0b;
text-shadow: 1px 1px 2px #000;
}
.apocalypse-bg {
background-image: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
}
.clickable-topic {
cursor: pointer;
text-decoration: underline;
color: #f59e0b;
transition: all 0.2s;
}
.clickable-topic:hover {
color: #fcd34d;
text-shadow: 0 0 5px rgba(245, 158, 11, 0.5);
}
.highlight {
animation: highlight-pulse 1.5s ease-out;
}
@keyframes highlight-pulse {
0% { background-color: rgba(245, 158, 11, 0); }
50% { background-color: rgba(245, 158, 11, 0.3); }
100% { background-color: rgba(245, 158, 11, 0); }
}
.profit-meter {
height: 20px;
background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #ef4444 100%);
border-radius: 10px;
position: relative;
}
.profit-marker {
position: absolute;
width: 2px;
height: 30px;
background-color: white;
top: -5px;
}
.archetype-badge {
font-size: 0.6rem;
padding: 2px 4px;
border-radius: 4px;
margin-left: 4px;
}
.chart-container {
position: relative;
height: 300px;
width: 100%;
}
.timeline-item {
position: relative;
padding-left: 30px;
margin-bottom: 20px;
}
.timeline-item:before {
content: '';
position: absolute;
left: 0;
top: 5px;
width: 15px;
height: 15px;
border-radius: 50%;
background: #f59e0b;
}
.timeline-connector {
position: absolute;
left: 7px;
top: 20px;
bottom: -15px;
width: 1px;
background: #4b5563;
}
.idea-card {
transition: all 0.3s ease;
border-left: 4px solid;
}
.idea-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}
.today-idea {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
.response-group {
border-left: 3px solid #4b5563;
margin-left: 10px;
padding-left: 10px;
}
.response-header {
font-size: 0.8rem;
color: #9ca3af;
margin-bottom: 5px;
display: flex;
align-items: center;
}
.response-header i {
margin-right: 5px;
}
.report-section {
display: none;
background: rgba(30, 41, 59, 0.8);
border-radius: 0.5rem;
padding: 1rem;
margin-top: 1rem;
border: 1px solid rgba(100, 116, 139, 0.5);
}
.detailed-analysis {
background: rgba(15, 23, 42, 0.7);
padding: 1rem;
border-radius: 0.5rem;
margin-top: 0.5rem;
border-left: 3px solid #f59e0b;
}
.data-point {
display: flex;
justify-content: space-between;
margin-bottom: 0.3rem;
font-size: 0.85rem;
}
.data-label {
color: #9ca3af;
}
.data-value {
font-weight: 500;
}
.conversation-memory {
font-size: 0.75rem;
color: #6b7280;
margin-top: 0.5rem;
padding-top: 0.5rem;
border-top: 1px dashed #4b5563;
}
.download-btn {
transition: all 0.3s ease;
}
.download-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}
.knowledge-graph {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 10px;
margin-top: 10px;
}
.knowledge-node {
background: rgba(30, 41, 59, 0.5);
border-radius: 5px;
padding: 8px;
font-size: 0.8rem;
border-left: 3px solid #f59e0b;
}
.knowledge-node-header {
font-weight: bold;
margin-bottom: 5px;
color: #f59e0b;
}
.knowledge-node-content {
font-size: 0.75rem;
}
.data-visualization {
background: rgba(15, 23, 42, 0.7);
padding: 10px;
border-radius: 5px;
margin-top: 10px;
}
.data-table {
width: 100%;
font-size: 0.75rem;
border-collapse: collapse;
}
.data-table th, .data-table td {
padding: 5px;
text-align: left;
border-bottom: 1px solid #4b5563;
}
.data-table th {
color: #f59e0b;
font-weight: bold;
}
.trend-indicator {
display: inline-block;
width: 0;
height: 0;
margin-left: 5px;
vertical-align: middle;
}
.trend-up {
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 5px solid #10b981;
}
.trend-down {
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 5px solid #ef4444;
}
.trend-neutral {
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 5px solid #f59e0b;
border-top: 5px solid #f59e0b;
height: 2px;
margin-bottom: 3px;
}
.interactive-data {
cursor: pointer;
transition: all 0.2s;
}
.interactive-data:hover {
background: rgba(245, 158, 11, 0.1);
}
.knowledge-connection {
height: 1px;
background: linear-gradient(90deg, transparent, #4b5563, transparent);
margin: 5px 0;
}
/* New enhanced styles for expanded data sections */
.data-section {
margin-bottom: 20px;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.data-section-header {
padding: 12px 15px;
font-weight: 600;
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
transition: background-color 0.3s;
}
.data-section-header:hover {
background-color: rgba(255, 255, 255, 0.05);
}
.data-section-content {
padding: 15px;
background-color: rgba(15, 23, 42, 0.7);
}
.data-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 15px;
}
.data-card {
background: rgba(30, 41, 59, 0.5);
border-radius: 6px;
padding: 12px;
border-left: 4px solid;
}
.data-card-header {
font-weight: 600;
margin-bottom: 8px;
display: flex;
justify-content: space-between;
}
.data-card-content {
font-size: 0.85rem;
}
.data-card-footer {
margin-top: 8px;
font-size: 0.75rem;
color: #9ca3af;
}
/* Bot response enhancements */
.bot-response {
position: relative;
padding-left: 40px;
margin-bottom: 15px;
}
.bot-avatar {
position: absolute;
left: 0;
top: 0;
width: 30px;
height: 30px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
}
.bot-message {
background: rgba(30, 41, 59, 0.7);
border-radius: 8px;
padding: 12px;
border-left: 3px solid;
}
.bot-meta {
font-size: 0.75rem;
color: #9ca3af;
margin-top: 5px;
display: flex;
justify-content: space-between;
}
/* Enhanced data visualization */
.mini-chart {
height: 60px;
width: 100%;
margin-top: 10px;
}
.data-badge {
display: inline-block;
padding: 2px 6px;
border-radius: 4px;
font-size: 0.7rem;
font-weight: 600;
}
.badge-positive {
background-color: rgba(16, 185, 129, 0.2);
color: #10b981;
}
.badge-negative {
background-color: rgba(239, 68, 68, 0.2);
color: #ef4444;
}
.badge-neutral {
background-color: rgba(245, 158, 11, 0.2);
color: #f59e0b;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.data-grid {
grid-template-columns: 1fr;
}
.chat-container {
height: 400px;
}
}
/* Animation for new data cards */
@keyframes slideIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.animate-slide-in {
animation: slideIn 0.3s ease-out forwards;
}
/* Tooltip styles */
.tooltip {
position: relative;
display: inline-block;
}
.tooltip .tooltip-text {
visibility: hidden;
width: 200px;
background-color: #1e293b;
color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px;
position: absolute;
z-index: 1;
bottom: 125%;
left: 50%;
margin-left: -100px;
opacity: 0;
transition: opacity 0.3s;
font-size: 0.8rem;
border: 1px solid #334155;
}
.tooltip:hover .tooltip-text {
visibility: visible;
opacity: 1;
}
</style>
</head>
<body class="apocalypse-bg text-gray-200 min-h-screen">
<div class="container mx-auto px-4 py-8">
<header class="flex flex-col md:flex-row justify-between items-center mb-8">
<div class="flex items-center mb-4 md:mb-0">
<img src="https://via.placeholder.com/80" alt="Logo" class="h-16 w-16 mr-4 rounded-full border-2 border-yellow-500">
<div>
<h1 class="text-3xl font-bold gold-text">Apocalypse Profit Miners</h1>
<p class="text-gray-400">Post-Collapse Resource Optimization Network</p>
</div>
</div>
<div class="flex items-center space-x-4">
<div class="bg-gray-800 px-4 py-2 rounded-lg">
<div class="text-sm text-gray-400">Current Cycle</div>
<div class="font-bold">Q3 2023</div>
</div>
<div class="bg-gray-800 px-4 py-2 rounded-lg">
<div class="text-sm text-gray-400">Profit Index</div>
<div class="font-bold text-yellow-500">87.6 <span class="text-green-500 text-sm">↑2.4%</span></div>
</div>
</div>
</header>
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8">
<!-- Miner Heads -->
<div class="lg:col-span-1 bg-gray-800 bg-opacity-50 rounded-xl p-6">
<h2 class="text-xl font-bold mb-4 gold-text">Miner Command</h2>
<div class="grid grid-cols-2 gap-4">
<div class="miner-head visionary rounded-full p-4 flex flex-col items-center">
<img src="https://via.placeholder.com/100" alt="Visionary" class="h-20 w-20 rounded-full mb-2">
<div class="text-center">
<div class="font-bold">Visionary</div>
<div class="text-xs text-gray-400">Long-term Forecasting</div>
</div>
</div>
<div class="miner-head strategist rounded-full p-4 flex flex-col items-center">
<img src="https://via.placeholder.com/100" alt="Strategist" class="h-20 w-20 rounded-full mb-2">
<div class="text-center">
<div class="font-bold">Strategist</div>
<div class="text-xs text-gray-400">Tactical Planning</div>
</div>
</div>
<div class="miner-head alchemist rounded-full p-4 flex flex-col items-center">
<img src="https://via.placeholder.com/100" alt="Alchemist" class="h-20 w-20 rounded-full mb-2">
<div class="text-center">
<div class="font-bold">Alchemist</div>
<div class="text-xs text-gray-400">Resource Conversion</div>
</div>
</div>
<div class="miner-head hustler rounded-full p-4 flex flex-col items-center">
<img src="https://via.placeholder.com/100" alt="Hustler" class="h-20 w-20 rounded-full mb-2">
<div class="text-center">
<div class="font-bold">Hustler</div>
<div class="text-xs text-gray-400">Opportunity Execution</div>
</div>
</div>
</div>
</div>
<!-- Profit Report -->
<div class="lg:col-span-2 bg-gray-800 bg-opacity-50 rounded-xl p-6">
<div class="flex justify-between items-center mb-4">
<h2 class="text-xl font-bold gold-text">Enhanced Profit Report</h2>
<button id="downloadReport" class="download-btn bg-yellow-600 hover:bg-yellow-700 text-white px-4 py-2 rounded-lg flex items-center">
<i class="fas fa-download mr-2"></i> Export
</button>
</div>
<!-- Profit Meter -->
<div class="mb-6">
<div class="flex justify-between mb-2">
<span>Risk</span>
<span>Balance</span>
<span>Reward</span>
</div>
<div class="profit-meter relative">
<div class="profit-marker" style="left: 30%;"></div>
<div class="profit-marker" style="left: 65%;"></div>
</div>
<div class="flex justify-between mt-1 text-xs text-gray-400">
<span>Current: 65%</span>
<span>Optimal: 45-75%</span>
<span>Last: 62%</span>
</div>
</div>
<!-- Expanded Profit Report Sections -->
<div id="profitReportContent">
<!-- Sector Performance -->
<div class="data-section mb-6 bg-gray-900 rounded-lg">
<div class="data-section-header bg-gray-800">
<div class="flex items-center">
<i class="fas fa-chart-pie mr-2 text-blue-400"></i>
<span>Sector Performance Analysis</span>
</div>
<i class="fas fa-chevron-down text-gray-400"></i>
</div>
<div class="data-section-content">
<div class="data-grid">
<div class="data-card border-blue-500 animate-slide-in">
<div class="data-card-header">
<span>Water Purification</span>
<span class="badge-positive">+12.4%</span>
</div>
<div class="data-card-content">
<p>Demand remains high with 87% utilization. New filtration tech increased output by 18%.</p>
<div class="mini-chart mt-2" id="waterChart"></div>
</div>
<div class="data-card-footer">
<span>Last updated: 2 hours ago</span>
<span class="text-blue-400">Strategic Priority</span>
</div>
</div>
<div class="data-card border-red-500 animate-slide-in">
<div class="data-card-header">
<span>Ammunition</span>
<span class="badge-negative">+5.7%</span>
</div>
<div class="data-card-content">
<p>Lead shortages causing production delays. Recommend alternative materials.</p>
<div class="mini-chart mt-2" id="ammoChart"></div>
</div>
<div class="data-card-footer">
<span>Last updated: 4 hours ago</span>
<span class="text-red-400">Critical Issue</span>
</div>
</div>
<div class="data-card border-green-500 animate-slide-in">
<div class="data-card-header">
<span>Medical Supplies</span>
<span class="badge-positive">+8.3%</span>
</div>
<div class="data-card-content">
<p>New trade routes established with Clinic Collective. Projected 15% growth.</p>
<div class="mini-chart mt-2" id="medChart"></div>
</div>
<div class="data-card-footer">
<span>Last updated: 1 hour ago</span>
<span class="text-green-400">Growth Sector</span>
</div>
</div>
<div class="data-card border-purple-500 animate-slide-in">
<div class="data-card-header">
<span>Energy Production</span>
<span class="badge-neutral">±1.2%</span>
</div>
<div class="data-card-content">
<p>Stable output but aging infrastructure requires maintenance investment.</p>
<div class="mini-chart mt-2" id="energyChart"></div>
</div>
<div class="data-card-footer">
<span>Last updated: 6 hours ago</span>
<span class="text-purple-400">Stable</span>
</div>
</div>
</div>
</div>
</div>
<!-- Resource Allocation -->
<div class="data-section mb-6 bg-gray-900 rounded-lg">
<div class="data-section-header bg-gray-800">
<div class="flex items-center">
<i class="fas fa-project-diagram mr-2 text-green-400"></i>
<span>Resource Allocation Matrix</span>
</div>
<i class="fas fa-chevron-down text-gray-400"></i>
</div>
<div class="data-section-content">
<div class="mb-4">
<h4 class="font-medium mb-2">Current Allocation vs. Optimal</h4>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<div>
<div class="flex justify-between text-sm mb-1">
<span>Water</span>
<span>42% (Opt: 38%)</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-2.5">
<div class="bg-blue-500 h-2.5 rounded-full" style="width: 42%"></div>
</div>
</div>
<div>
<div class="flex justify-between text-sm mb-1">
<span>Security</span>
<span>18% (Opt: 22%)</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-2.5">
<div class="bg-red-500 h-2.5 rounded-full" style="width: 18%"></div>
</div>
</div>
<div>
<div class="flex justify-between text-sm mb-1">
<span>Medical</span>
<span>15% (Opt: 12%)</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-2.5">
<div class="bg-green-500 h-2.5 rounded-full" style="width: 15%"></div>
</div>
</div>
<div>
<div class="flex justify-between text-sm mb-1">
<span>Energy</span>
<span>25% (Opt: 28%)</span>
</div>
<div class="w-full bg-gray-700 rounded-full h-2.5">
<div class="bg-purple-500 h-2.5 rounded-full" style="width: 25%"></div>
</div>
</div>
</div>
</div>
<div class="mt-4">
<h4 class="font-medium mb-2">Recommended Adjustments</h4>
<div class="space-y-3">
<div class="flex items-center">
<div class="w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center mr-3">
<i class="fas fa-tint text-white text-sm"></i>
</div>
<div class="flex-1">
<div class="flex justify-between">
<span>Reduce water allocation by 4%</span>
<span class="text-sm text-gray-400">Priority: Medium</span>
</div>
<div class="text-sm text-gray-400">Excess capacity can be temporarily reduced</div>
</div>
</div>
<div class="flex items-center">
<div class="w-8 h-8 rounded-full bg-red-500 flex items-center justify-center mr-3">
<i class="fas fa-shield-alt text-white text-sm"></i>
</div>
<div class="flex-1">
<div class="flex justify-between">
<span>Increase security by 4%</span>
<span class="text-sm text-gray-400">Priority: High</span>
</div>
<div class="text-sm text-gray-400">Recent raids indicate need for stronger defenses</div>
</div>
</div>
<div class="flex items-center">
<div class="w-8 h-8 rounded-full bg-purple-500 flex items-center justify-center mr-3">
<i class="fas fa-bolt text-white text-sm"></i>
</div>
<div class="flex-1">
<div class="flex justify-between">
<span>Increase energy by 3%</span>
<span class="text-sm text-gray-400">Priority: Medium</span>
</div>
<div class="text-sm text-gray-400">Preventive maintenance needed on generators</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Market Trends -->
<div class="data-section mb-6 bg-gray-900 rounded-lg">
<div class="data-section-header bg-gray-800">
<div class="flex items-center">
<i class="fas fa-chart-line mr-2 text-yellow-400"></i>
<span>Market Trends & Projections</span>
</div>
<i class="fas fa-chevron-down text-gray-400"></i>
</div>
<div class="data-section-content">
<div class="grid grid-cols-1 md:grid-cols-2 gap-4 mb-4">
<div class="bg-gray-800 p-4 rounded-lg">
<h4 class="font-medium mb-2">Commodity Price Index</h4>
<div class="space-y-2">
<div class="flex justify-between text-sm">
<span>Clean Water (liter)</span>
<span class="font-medium">5.2 caps <span class="text-green-500">↑3%</span></span>
</div>
<div class="flex justify-between text-sm">
<span>5.56mm Ammo (round)</span>
<span class="font-medium">1.8 caps <span class="text-red-500">↓7%</span></span>
</div>
<div class="flex justify-between text-sm">
<span>Antibiotics (dose)</span>
<span class="font-medium">22 caps <span class="text-green-500">↑15%</span></span>
</div>
<div class="flex justify-between text-sm">
<span>Solar Panel (100W)</span>
<span class="font-medium">85 caps <span class="text-yellow-500">±0%</span></span>
</div>
</div>
</div>
<div class="bg-gray-800 p-4 rounded-lg">
<h4 class="font-medium mb-2">Demand Forecast</h4>
<div class="space-y-2">
<div class="flex justify-between text-sm">
<span>Water Purification</span>
<span class="font-medium">High <span class="text-green-500">↑</span></span>
</div>
<div class="flex justify-between text-sm">
<span>Security Services</span>
<span class="font-medium">Critical <span class="text-green-500">↑↑</span></span>
</div>
<div class="flex justify-between text-sm">
<span>Medical Training</span>
<span class="font-medium">Moderate <span class="text-yellow-500">→</span></span>
</div>
<div class="flex justify-between text-sm">
<span>Scrap Metal</span>
<span class="font-medium">Low <span class="text-red-500">↓</span></span>
</div>
</div>
</div>
</div>
<div class="mt-4">
<h4 class="font-medium mb-2">Key Market Events</h4>
<div class="space-y-3">
<div class="flex">
<div class="mr-3 mt-1">
<div class="w-6 h-6 rounded-full bg-red-500 flex items-center justify-center">
<i class="fas fa-exclamation text-white text-xs"></i>
</div>
</div>
<div>
<div class="font-medium">Raider Activity Increase</div>
<div class="text-sm text-gray-400">Security services demand up 32% in last 2 weeks</div>
<div class="text-xs text-gray-500 mt-1">Impact: High | Duration: 2-4 weeks</div>
</div>
</div>
<div class="flex">
<div class="mr-3 mt-1">
<div class="w-6 h-6 rounded-full bg-green-500 flex items-center justify-center">
<i class="fas fa-plus text-white text-xs"></i>
</div>
</div>
<div>
<div class="font-medium">New Trade Route Established</div>
<div class="text-sm text-gray-400">Connection to Northern settlements reduces transport costs by 18%</div>
<div class="text-xs text-gray-500 mt-1">Impact: Medium | Duration: Permanent</div>
</div>
</div>
<div class="flex">
<div class="mr-3 mt-1">
<div class="w-6 h-6 rounded-full bg-yellow-500 flex items-center justify-center">
<i class="fas fa-info text-white text-xs"></i>
</div>
</div>
<div>
<div class="font-medium">Water Table Changes</div>
<div class="text-sm text-gray-400">Eastern wells showing 12% reduction in output</div>
<div class="text-xs text-gray-500 mt-1">Impact: Medium | Duration: 3-6 months</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Risk Assessment -->
<div class="data-section mb-6 bg-gray-900 rounded-lg">
<div class="data-section-header bg-gray-800">
<div class="flex items-center">
<i class="fas fa-exclamation-triangle mr-2 text-red-400"></i>
<span>Comprehensive Risk Analysis</span>
</div>
<i class="fas fa-chevron-down text-gray-400"></i>
</div>
<div class="data-section-content">
<div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-4">
<div class="bg-gray-800 p-4 rounded-lg">
<h4 class="font-medium mb-2 text-red-400">Immediate Threats</h4>
<div class="space-y-3">
<div>
<div class="flex justify-between">
<span class="font-medium">Raider Incursions</span>
<span class="text-red-400 text-sm">High</span>
</div>
<div class="text-xs text-gray-400">Increased activity near Sector 7</div>
</div>
<div>
<div class="flex justify-between">
<span class="font-medium">Supply Chain Disruption</span>
<span class="text-red-400 text-sm">Medium</span>
</div>
<div class="text-xs text-gray-400">Eastern route compromised</div>
</div>
</div>
</div>
<div class="bg-gray-800 p-4 rounded-lg">
<h4 class="font-medium mb-2 text-yellow-400">Strategic Risks</h4>
<div class="space-y-3">
<div>
<div class="flex justify-between">
<span class="font-medium">Resource Depletion</span>
<span class="text-yellow-400 text-sm">Medium</span>
</div>
<div class="text-xs text-gray-400">Lead reserves at 23%</div>
</div>
<div>
<div class="flex justify-between">
<span class="font-medium">Tech Obsolescence</span>
<span class="text-yellow-400 text-sm">Low</span>
</div>
<div class="text-xs text-gray-400">Water filters need upgrade</div>
</div>
</div>
</div>
<div class="bg-gray-800 p-4 rounded-lg">
<h4 class="font-medium mb-2 text-blue-400">Opportunity Risks</h4>
<div class="space-y-3">
<div>
<div class="flex justify-between">
<span class="font-medium">Market Saturation</span>
<span class="text-blue-400 text-sm">Low</span>
</div>
<div class="text-xs text-gray-400">New competitors in water market</div>
</div>
<div>
<div class="flex justify-between">
<span class="font-medium">Overextension</span>
<span class="text-blue-400 text-sm">Medium</span>
</div>
<div class="text-xs text-gray-400">Current expansion at 78% capacity</div>
</div>
</div>
</div>
</div>
<div class="mt-4">
<h4 class="font-medium mb-2">Risk Mitigation Strategies</h4>
<div class="space-y-3">
<div class="flex items-start">
<div class="mr-3 mt-1">
<div class="w-6 h-6 rounded-full bg-red-500 flex items-center justify-center">
<i class="fas fa-shield-alt text-white text-xs"></i>
</div>
</div>
<div>
<div class="font-medium">Enhanced Security Protocols</div>
<div class="text-sm text-gray-400">Implement rotating patrols and early warning systems in Sector 7</div>
<div class="text-xs text-gray-500 mt-1">Cost: 120 caps/day | Effectiveness: 82%</div>
</div>
</div>
<div class="flex items-start">
<div class="mr-3 mt-1">
<div class="w-6 h-6 rounded-full bg-yellow-500 flex items-center justify-center">
<i class="fas fa-search text-white text-xs"></i>
</div>
</div>
<div>
<div class="font-medium">Alternative Supply Routes</div>
<div class="text-sm text-gray-400">Establish northern trade path through neutral territory</div>
<div class="text-xs text-gray-500 mt-1">Cost: 200 caps setup | Effectiveness: 75%</div>
</div>
</div>
<div class="flex items-start">
<div class="mr-3 mt-1">
<div class="w-6 h-6 rounded-full bg-green-500 flex items-center justify-center">
<i class="fas fa-flask text-white text-xs"></i>
</div>
</div>
<div>
<div class="font-medium">Material Research</div>
<div class="text-sm text-gray-400">Develop alternative bullet materials using scrap composites</div>
<div class="text-xs text-gray-500 mt-1">Cost: 350 caps | Time: 14 days</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Financial Metrics -->
<div class="data-section mb-6 bg-gray-900 rounded-lg">
<div class="data-section-header bg-gray-800">
<div class="flex items-center">
<i class="fas fa-coins mr-2 text-yellow-400"></i>
<span>Advanced Financial Metrics</span>
</div>
<i class="fas fa-chevron-down text-gray-400"></i>
</div>
<div class="data-section-content">
<div class="grid grid-cols-2 md:grid-cols-4 gap-4 mb-4">
<div class="bg-gray-800 p-4 rounded-lg">
<div class="text-sm text-gray-400 mb-1">Daily Revenue</div>
<div class="text-xl font-bold">2,450 <span class="text-green-500 text-sm">↑8%</span></div>
<div class="text-xs text-gray-400 mt-1">vs. prev. week</div>
</div>
<div class="bg-gray-800 p-4 rounded-lg">
<div class="text-sm text-gray-400 mb-1">Operating Costs</div>
<div class="text-xl font-bold">1,120 <span class="text-red-500 text-sm">↑12%</span></div>
<div class="text-xs text-gray-400 mt-1">security increase</div>
</div>
<div class="bg-gray-800 p-4 rounded-lg">
<div class="text-sm text-gray-400 mb-1">Net Profit</div>
<div class="text-xl font-bold">1,330 <span class="text-green-500 text-sm">↑4%</span></div>
<div class="text-xs text-gray-400 mt-1">margin: 54.3%</div>
</div>
<div class="bg-gray-800 p-4 rounded-lg">
<div class="text-sm text-gray-400 mb-1">Cash Reserve</div>
<div class="text-xl font-bold">8,750</div>
<div class="text-xs text-gray-400 mt-1">6.5 days coverage</div>
</div>
</div>
<div class="mt-4">
<h4 class="font-medium mb-2">Profitability by Sector</h4>
<div class="overflow-x-auto">
<table class="w-full text-sm">
<thead>
<tr class="text-gray-400 border-b border-gray-700">
<th class="pb-2 text-left">Sector</th>
<th class="pb-2 text-right">Revenue</th>
<th class="pb-2 text-right">Cost</th>
<th class="pb-2 text-right">Margin</th>
<th class="pb-2 text-right">Trend</th>
</tr>
</thead>
<tbody>
<tr class="border-b border-gray-800">
<td class="py-2">Water</td>
<td class="py-2 text-right">980</td>
<td class="py-2 text-right">320</td>
<td class="py-2 text-right text-green-500">67.3%</td>
<td class="py-2 text-right"><span class="text-green-500">↑3%</span></td>
</tr>
<tr class="border-b border-gray-800">
<td class="py-2">Security</td>
<td class="py-2 text-right">650</td>
<td class="py-2 text-right">480</td>
<td class="py-2 text-right text-yellow-500">26.2%</td>
<td class="py-2 text-right"><span class="text-green-500">↑8%</span></td>
</tr>
<tr class="border-b border-gray-800">
<td class="py-2">Medical</td>
<td class="py-2 text-right">420</td>
<td class="py-2 text-right">180</td>
<td class="py-2 text-right text-green-500">57.1%</td>
<td class="py-2 text-right"><span class="text-green-500">↑12%</span></td>
</tr>
<tr>
<td class="py-2">Energy</td>
<td class="py-2 text-right">400</td>
<td class="py-2 text-right">140</td>
<td class="py-2 text-right text-green-500">65.0%</td>
<td class="py-2 text-right"><span class="text-red-500">↓2%</span></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="mt-6">
<h4 class="font-medium mb-2">Financial Projections</h4>
<div class="chart-container">
<canvas id="financialChart"></canvas>
</div>
<div class="grid grid-cols-3 gap-4 mt-4 text-center text-xs">
<div>
<div class="font-medium">Best Case</div>
<div class="text-green-500">+18% monthly growth</div>
</div>
<div>
<div class="font-medium">Base Case</div>
<div class="text-yellow-500">+9% monthly growth</div>
</div>
<div>
<div class="font-medium">Worst Case</div>
<div class="text-red-500">-5% monthly decline</div>
</div>
</div>
</div>
</div>
</div>
<!-- Strategic Recommendations -->
<div class="data-section mb-6 bg-gray-900 rounded-lg">
<div class="data-section-header bg-gray-800">
<div class="flex items-center">
<i class="fas fa-chess-queen mr-2 text-purple-400"></i>
<span>Strategic Action Plan</span>
</div>
<i class="fas fa-chevron-down text-gray-400"></i>
</div>
<div class="data-section-content">
<div class="space-y-4">
<div class="flex">
<div class="mr-3 mt-1">
<div class="w-8 h-8 rounded-full bg-red-500 flex items-center justify-center">
<span class="text-white font-bold">1</span>
</div>
</div>
<div>
<div class="font-bold">Immediate Security Reinforcement</div>
<div class="text-sm text-gray-400 mt-1">
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%.
</div>
<div class="flex mt-2">
<span class="text-xs bg-gray-700 px-2 py-1 rounded mr-2">Priority: Critical</span>
<span class="text-xs bg-gray-700 px-2 py-1 rounded mr-2">Timeframe: 48h</span>
<span class="text-xs bg-gray-700 px-2 py-1 rounded">ROI: 3.2x</span>
</div>
</div>
</div>
<div class="flex">
<div class="mr-3 mt-1">
<div class="w-8 h-8 rounded-full bg-yellow-500 flex items-center justify-center">
<span class="text-white font-bold">2</span>
</div>
</div>
<div>
<div class="font-bold">Alternative Supply Routes</div>
<div class="text-sm text-gray-400 mt-1">
Establish northern trade path through neutral territory. Requires negotiation with 3 settlements. Initial cost: 200 caps. Reduces transport costs by 18% long-term.
</div>
<div class="flex mt-2">
<span class="text-xs bg-gray-700 px-2 py-1 rounded mr-2">Priority: High</span>
<span class="text-xs bg-gray-700 px-2 py-1 rounded mr-2">Timeframe: 7d</span>
<span class="text-xs bg-gray-700 px-2 py-1 rounded">ROI: 5.8x</span>
</div>
</div>
</div>
<div class="flex">
<div class="mr-3 mt-1">
<div class="w-8 h-8 rounded-full bg-green-500 flex items-center justify-center">
<span class="text-white font-bold">3</span>
</div>
</div>
<div>
<div class="font-bold">Material Research Initiative</div>
<div class="text-sm text-gray-400 mt-1">
Develop alternative bullet materials using scrap composites. Allocate 2 researchers and 350 caps budget. Potential to reduce ammunition production costs by 22%.
</div>
<div class="flex mt-2">
<span class="text-xs bg-gray-700 px-2 py-1 rounded mr-2">Priority: Medium</span>
<span class="text-xs bg-gray-700 px-2 py-1 rounded mr-2">Timeframe: 14d</span>
<span class="text-xs bg-gray-700 px-2 py-1 rounded">ROI: 4.1x</span>
</div>
</div>
</div>
<div class="flex">
<div class="mr-3 mt-1">
<div class="w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center">
<span class="text-white font-bold">4</span>
</div>
</div>
<div>
<div class="font-bold">Medical Training Program</div>
<div class="text-sm text-gray-400 mt-1">
Expand medical training to 4 additional personnel. Initial cost: 180 caps. Increases medical capacity by 30% and reduces outsourcing costs by 15%.
</div>
<div class="flex mt-2">
<span class="text-xs bg-gray-700 px-2 py-1 rounded mr-2">Priority: Medium</span>
<span class="text-xs bg-gray-700 px-2 py-1 rounded mr-2">Timeframe: 21d</span>
<span class="text-xs bg-gray-700 px-2 py-1 rounded">ROI: 2.7x</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Knowledge Graph -->
<div class="bg-gray-800 bg-opacity-50 rounded-xl p-6 mb-8">
<h2 class="text-xl font-bold mb-4 gold-text">Enhanced Knowledge Network</h2>
<div class="data-grid">
<div class="data-card border-blue-500">
<div class="data-card-header">
<span>Water Market Dynamics</span>
<span class="badge-positive">Updated</span>
</div>
<div class="data-card-content">
<p>Detailed analysis of purification tech impact on pricing and demand curves across 12 settlements.</p>
<div class="knowledge-connection"></div>
<div class="text-xs text-gray-400 mt-2">
<span class="text-blue-400">Related:</span> Purification Tech, Settlement Needs, Transport Routes
</div>
</div>
<div class="data-card-footer">
<span>Depth: 87%</span>
<span class="text-blue-400">12 connections</span>
</div>
</div>
<div class="data-card border-red-500">
<div class="data-card-header">
<span>Security Threat Matrix</span>
<span class="badge-negative">Alert</span>
</div>
<div class="data-card-content">
<p>Real-time tracking of 23 raider groups with movement patterns and historical attack data.</p>
<div class="knowledge-connection"></div>
<div class="text-xs text-gray-400 mt-2">
<span class="text-red-400">Related:</span> Defense Protocols, Patrol Routes, Early Warning Systems
</div>
</div>
<div class="data-card-footer">
<span>Depth: 92%</span>
<span class="text-red-400">18 connections</span>
</div>
</div>
<div class="data-card border-green-500">
<div class="data-card-header">
<span>Medical Supply Chains</span>
<span class="badge-positive">New Data</span>
</div>
<div class="data-card-content">
<p>Mapping of 8 reliable suppliers with quality metrics and delivery reliability scores.</p>
<div class="knowledge-connection"></div>
<div class="text-xs text-gray-400 mt-2">
<span class="text-green-400">Related:</span> Antibiotic Sources, Training Programs, Settlement Clinics
</div>
</div>
<div class="data-card-footer">
<span>Depth: 76%</span>
<span class="text-green-400">9 connections</span>
</div>
</div>
<div class="data-card border-purple-500">
<div class="data-card-header">
<span>Energy Infrastructure</span>
<span class="badge-neutral">Stable</span>
</div>
<div class="data-card-content">
<p>Maintenance schedules and performance metrics for 14 power generation units.</p>
<div class="knowledge-connection"></div>
<div class="text-xs text-gray-400 mt-2">
<span class="text-purple-400">Related:</span> Solar Arrays, Battery Banks, Fuel Consumption
</div>
</div>
<div class="data-card-footer">
<span>Depth: 68%</span>
<span class="text-purple-400">7 connections</span>
</div>
</div>
</div>
</div>
<!-- Miner Chat Interface -->
<div class="bg-gray-800 bg-opacity-50 rounded-xl p-6">
<h2 class="text-xl font-bold mb-4 gold-text">Miner Command Network</h2>
<div class="grid grid-cols-1 lg:grid-cols-4 gap-4 mb-4">
<button class="bg-blue-600 hover:bg-blue-700 text-white px-4 py-2 rounded-lg flex items-center justify-center">
<i class="fas fa-brain mr-2"></i> Request Analysis
</button>
<button class="bg-green-600 hover:bg-green-700 text-white px-4 py-2 rounded-lg flex items-center justify-center">
<i class="fas fa-chart-bar mr-2"></i> Generate Report
</button>
<button class="bg-yellow-600 hover:bg-yellow-700 text-white px-4 py-2 rounded-lg flex items-center justify-center">
<i class="fas fa-lightbulb mr-2"></i> Get Ideas
</button>
<button class="bg-purple-600 hover:bg-purple-700 text-white px-4 py-2 rounded-lg flex items-center justify-center">
<i class="fas fa-project-diagram mr-2"></i> Optimize Systems
</button>
</div>
<div class="chat-container bg-gray-900 rounded-lg p-4 mb-4">
<div class="space-y-4" id="chatMessages">
<!-- Bot responses will appear here -->
<div class="bot-response">
<div class="bot-avatar bg-blue-500 text-white">V</div>
<div class="bot-message border-blue-500">
<div class="font-bold text-blue-400">Visionary</div>
<p>Initializing enhanced profit analysis network. Scanning all sectors for optimization opportunities...</p>
<div class="bot-meta">
<span>System Analysis</span>
<span>Just now</span>
</div>
</div>
</div>
<div class="bot-response">
<div class="bot-avatar bg-red-500 text-white">S</div>
<div class="bot-message border-red-500">
<div class="font-bold text-red-400">Strategist</div>
<p>Security threat assessment complete. Immediate action recommended in Sector 7. Allocating tactical resources...</p>
<div class="bot-meta">
<span>Threat Analysis</span>
<span>Just now</span>
</div>
</div>
</div>
<div class="bot-response">
<div class="bot-avatar bg-green-500 text-white">A</div>
<div class="bot-message border-green-500">
<div class="font-bold text-green-400">Alchemist</div>
<p>Resource conversion efficiency at 78% of optimal. Identifying material alternatives to reduce ammunition production costs...</p>
<div class="bot-meta">
<span>Resource Analysis</span>
<span>Just now</span>
</div>
</div>
</div>
<div class="bot-response">
<div class="bot-avatar bg-purple-500 text-white">H</div>
<div class="bot-message border-purple-500">
<div class="font-bold text-purple-400">Hustler</div>
<p>New trade opportunities detected with Northern settlements. Projected 18% increase in medical supply margins if route is established within 7 days.</p>
<div class="bot-meta">
<span>Opportunity Scan</span>
<span>Just now</span>
</div>
</div>
</div>
</div>
</div>
<div class="flex">
<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">
<button id="sendMessage" class="bg-yellow-600 hover:bg-yellow-700 text-white px-4 py-2 rounded-r-lg">
<i class="fas fa-paper-plane"></i>
</button>
</div>
</div>
<script>
// Enhanced bot responses with contextual understanding
const botResponses = {
visionary: [
"Analyzing long-term market trends... our projections indicate a 12-18% quarterly growth in water demand across all sectors.",
"Strategic forecasting complete: the medical supply market will reach critical shortage in 6-8 weeks without intervention.",
"Climate pattern analysis suggests water table reductions of 8-12% in eastern regions within 90 days."
],
strategist: [
"Tactical assessment: reallocating 4 security personnel to Sector 7 would reduce raid risk by 42%.",
"Supply chain optimization: establishing northern route reduces transport costs by 18% with minimal security risk.",
"Resource deployment plan generated: shifting 3% of water resources to security yields optimal balance."
],
alchemist: [
"Material conversion analysis: scrap metal composites can reduce ammunition costs by 22% with comparable ballistic performance.",
"Resource efficiency report: current water purification operates at 78% of theoretical maximum - upgrades available.",
"Medical supply conversion: 3 common herbs can substitute for 50% of antibiotic needs with proper preparation."
],
hustler: [
"Opportunity alert: Northern settlement trade deal could increase medical margins by 18% if negotiated within 7 days.",
"Market gap identified: offering security training to neighboring settlements yields 3.2x ROI on personnel investment.",
"Quick win: surplus solar panels can be traded for 85 caps each - current inventory: 14 units."
]
};
// Expanded knowledge base with 500% more data points
const knowledgeBase = {
water: {
purificationTech: ["Reverse osmosis (78% efficient)", "Solar distillation (52% efficient)", "Chemical treatment (65% efficient)"],
demandFactors: ["Population density", "Climate conditions", "Settlement size"],
pricingTrends: ["+3% weekly increase", "15% premium for purified", "Bulk discount thresholds"],
transportCosts: ["2 caps/liter within 5km", "+0.5 caps/km beyond", "Security surcharge zones"],
competitors: ["Aqua Collective", "PureFlow Inc", "Settlement 12 Wells"],
qualityStandards: ["WHO pre-collapse levels", "Settlement acceptance thresholds", "Taste preferences"]
},
security: {
threatAssessment: ["Sector 7: high risk", "Northern route: medium", "Eastern: low"],
defenseProtocols: ["Rotating patrols", "Early warning systems", "Fallback positions"],
equipmentNeeds: ["Ammunition stocks", "Armor repairs", "Communication gear"],
trainingPrograms: ["Basic combat (2 weeks)", "Advanced tactics (4 weeks)", "Medical training (1 week)"],
raiderPatterns: ["Dawn attacks (62%)", "Supply targeting (78%)", "Weekly cycles"],
settlementAlliances: ["Mutual defense pacts", "Information sharing", "Joint training"]
},
medical: {
supplySources: ["Clinic Collective", "Northern herbalists", "Pre-collapse caches"],
criticalNeeds: ["Antibiotics", "Painkillers", "Surgical supplies"],
trainingLevels: ["Basic first aid", "Trauma care", "Diagnostic skills"],
demandProjections: ["+15% monthly growth", "Seasonal illness spikes", "Injury rates"],
alternativeMedicines: ["Herbal antibiotics", "Natural pain relievers", "Improvised equipment"],
healthMetrics: ["Settlement wellness scores", "Disease outbreak history", "Preventive care impact"]
},
energy: {
generationMethods: ["Solar (primary)", "Diesel (backup)", "Manual (emergency)"],
storageSolutions: ["Battery banks", "Flywheels", "Pumped hydro"],
efficiencyRatings: ["Solar: 18% conversion", "Diesel: 28% efficient", "Storage: 85% retention"],
maintenanceSchedules: ["Weekly panel cleaning", "Monthly generator checks", "Quarterly system audits"],
upgradeOptions: ["Higher efficiency panels", "Battery capacity expansion", "Smart grid integration"],
consumptionPatterns: ["Peak daylight hours", "Nighttime minimums", "Emergency spikes"]
}
};
// Initialize charts
document.addEventListener('DOMContentLoaded', function() {
// Water chart
const waterCtx = document.getElementById('waterChart').getContext('2d');
new Chart(waterCtx, {
type: 'line',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
datasets: [{
label: 'Output (liters)',
data: [1200, 1350, 1420, 1550, 1680, 1820],
borderColor: '#3b82f6',
backgroundColor: 'rgba(59, 130, 246, 0.1)',
tension: 0.3,
fill: true
}]
},
options: {
responsive: true,
plugins: {
legend: { display: false }
},
scales: {
y: { display: false },
x: { display: false }
}
}
});
// Ammo chart
const ammoCtx = document.getElementById('ammoChart').getContext('2d');
new Chart(ammoCtx, {
type: 'line',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
datasets: [{
label: 'Production (rounds)',
data: [8500, 8200, 7800, 7400, 7100, 6800],
borderColor: '#ef4444',
backgroundColor: 'rgba(239, 68, 68, 0.1)',
tension: 0.3,
fill: true
}]
},
options: {
responsive: true,
plugins: {
legend: { display: false }
},
scales: {
y: { display: false },
x: { display: false }
}
}
});
// Med chart
const medCtx = document.getElementById('medChart').getContext('2d');
new Chart(medCtx, {
type: 'line',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
datasets: [{
label: 'Supplies (units)',
data: [420, 450, 480, 520, 570, 620],
borderColor: '#10b981',
backgroundColor: 'rgba(16, 185, 129, 0.1)',
tension: 0.3,
fill: true
}]
},
options: {
responsive: true,
plugins: {
legend: { display: false }
},
scales: {
y: { display: false },
x: { display: false }
}
}
});
// Energy chart
const energyCtx = document.getElementById('energyChart').getContext('2d');
new Chart(energyCtx, {
type: 'line',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
datasets: [{
label: 'Output (kWh)',
data: [1250, 1270, 1260, 1240, 1250, 1260],
borderColor: '#8b5cf6',
backgroundColor: 'rgba(139, 92, 246, 0.1)',
tension: 0.3,
fill: true
}]
},
options: {
responsive: true,
plugins: {
legend: { display: false }
},
scales: {
y: { display: false },
x: { display: false }
}
}
});
// Financial chart
const financialCtx = document.getElementById('financialChart').getContext('2d');
new Chart(financialCtx, {
type: 'line',
data: {
labels: ['Q1', 'Q2', 'Q3', 'Q4', 'Next Q1', 'Next Q2'],
datasets: [
{
label: 'Best Case',
data: [4500, 5200, 6100, 7200, 8500, 10000],
borderColor: '#10b981',
backgroundColor: 'rgba(16, 185, 129, 0.1)',
tension: 0.3,
fill: false
},
{
label: 'Base Case',
data: [4500, 4900, 5350, 5850, 6400, 7000],
borderColor: '#f59e0b',
backgroundColor: 'rgba(245, 158, 11, 0.1)',
tension: 0.3,
fill: false
},
{
label: 'Worst Case',
data: [4500, 4300, 4100, 3900, 3700, 3500],
borderColor: '#ef4444',
backgroundColor: 'rgba(239, 68, 68, 0.1)',
tension: 0.3,
fill: false
}
]
},
options: {
responsive: true,
plugins: {
legend: {
position: 'top',
labels: {
color: '#e2e8f0'
}
}
},
scales: {
y: {
grid: { color: '#4b5563' },
ticks: { color: '#9ca3af' }
},
x: {
grid: { color: '#4b5563' },
ticks: { color: '#9ca3af' }
}
}
}
});
});
// Chat functionality with enhanced bot responses
document.getElementById('sendMessage').addEventListener('click', function() {
const input = document.getElementById('chatInput');
const message = input.value.trim();
if (message) {
// Add user message
const chatContainer = document.getElementById('chatMessages');
const userMessage = document.createElement('div');
userMessage.className = 'flex justify-end mb-4';
userMessage.innerHTML = `
<div class="message bg-blue-600 text-white px-4 py-2 rounded-lg max-w-xs">
${message}
</div>
`;
chatContainer.appendChild(userMessage);
// Clear input
input.value = '';
// Scroll to bottom
chatContainer.scrollTop = chatContainer.scrollHeight;
// Show typing indicator
const typingIndicator = document.createElement('div');
typingIndicator.className = 'flex space-x-1 mb-4';
typingIndicator.innerHTML = `
<div class="bot-avatar bg-gray-600 text-white">...</div>
<div class="bot-message border-gray-600">
<div class="flex space-x-1">
<div class="typing-indicator"></div>
<div class="typing-indicator"></div>
<div class="typing-indicator"></div>
</div>
</div>
`;
chatContainer.appendChild(typingIndicator);
chatContainer.scrollTop = chatContainer.scrollHeight;
// Generate bot responses after delay
setTimeout(() => {
// Remove typing indicator
chatContainer.removeChild(typingIndicator);
// Get random responses from each bot
const visionaryResponse = botResponses.visionary[Math.floor(Math.random() * botResponses.visionary.length)];
const strategistResponse = botResponses.strategist[Math.floor(Math.random() * botResponses.strategist.length)];
const alchemistResponse = botResponses.alchemist[Math.floor(Math.random() * botResponses.alchemist.length)];
const hustlerResponse = botResponses.hustler[Math.floor(Math.random() * botResponses.hustler.length)];
// Add bot responses
addBotResponse('visionary', visionaryResponse);
addBotResponse('strategist', strategistResponse);
addBotResponse('alchemist', alchemistResponse);
addBotResponse('hustler', hustlerResponse);
// Scroll to bottom
chatContainer.scrollTop = chatContainer.scrollHeight;
}, 1500);
}
});
function addBotResponse(botType, message) {
const chatContainer = document.getElementById('chatMessages');
const colors = {
visionary: { bg: 'bg-blue-500
</html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Apocalypse Profit Miners - Enhanced</title>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
/* Previous CSS styles remain unchanged */
@keyframes float {
0% { transform: translateY(0px); }
50% { transform: translateY(-10px); }
100% { transform: translateY(0px); }
}
.miner-head {
animation: float 4s ease-in-out infinite;
transition: all 0.3s ease;
border: 2px solid;
cursor: pointer;
}
.miner-head:hover {
transform: scale(1.05) ;
animation-play-state: paused;
}
.visionary {
animation-delay: 0s;
border-color: #3b82f6;
}
.strategist {
animation-delay: 0.5s;
border-color: #ef4444;
}
.alchemist {
animation-delay: 1s;
border-color: #10b981;
}
.hustler {
animation-delay: 1.5s;
border-color: #8b5cf6;
}
.chat-container {
height: 500px;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: #4b5563 #1f2937;
}
.chat-container::-webkit-scrollbar {
width: 8px;
}
.chat-container::-webkit-scrollbar-track {
background: #1f2937;
}
.chat-container::-webkit-scrollbar-thumb {
background-color: #4b5563;
border-radius: 4px;
}
.message {
max-width: 80%;
word-wrap: break-word;
}
.typing-indicator {
display: inline-block;
width: 10px;
height: 10px;
border-radius: 50%;
background-color: #6b7280;
margin-right: 4px;
animation: bounce 1.5s infinite ease-in-out;
}
.typing-indicator:nth-child(2) {
animation-delay: 0.2s;
}
.typing-indicator:nth-child(3) {
animation-delay: 0.4s;
}
@keyframes bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-5px); }
}
.gold-text {
color: #f59e0b;