cbom-builder / dashboard.html
gpetrizey's picture
Adjust layout and spacing for consistency in navigation and sidebar components.
61e0718
Raw
History Blame Contribute Delete
37.2 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Quantum Safe - Dashboard</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
body {
font-family: 'Inter', sans-serif;
background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
min-height: 100vh;
}
/* Ensure content is visible by default */
[data-aos] {
opacity: 1 !important;
transform: none !important;
}
[data-aos].aos-animate {
opacity: 1 !important;
}
.gradient-text {
background: linear-gradient(135deg, #F59E0B, #FBBF24, #FCD34D);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.sidebar {
backdrop-filter: blur(20px);
background: rgba(15, 23, 42, 0.8);
border-right: 1px solid rgba(255, 255, 255, 0.1);
transition: all 0.3s ease;
}
.card-hover {
backdrop-filter: blur(15px);
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
transition: all 0.3s ease;
}
.card-hover:hover {
transform: translateY(-2px);
background: rgba(255, 255, 255, 0.08);
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
border-color: rgba(245, 158, 11, 0.3);
}
.risk-high {
border-left: 4px solid #EF4444;
}
.risk-medium {
border-left: 4px solid #F59E0B;
}
.risk-low {
border-left: 4px solid #10B981;
}
.action-button {
background: linear-gradient(135deg, #F59E0B, #FBBF24);
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}
.action-button:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}
.particle {
position: absolute;
width: 2px;
height: 2px;
background: #F59E0B;
border-radius: 50%;
animation: particle-float 8s linear infinite;
opacity: 0.7;
}
@keyframes particle-float {
0% {
transform: translateY(100vh) translateX(0px);
opacity: 0;
}
10% {
opacity: 0.7;
}
90% {
opacity: 0.7;
}
100% {
transform: translateY(-100px) translateX(100px);
opacity: 0;
}
}
/* Fix select dropdown styling */
select option {
background-color: #1e293b;
color: #ffffff;
}
select option:hover {
background-color: #334155;
}
select option:checked {
background-color: #475569;
}
/* Ensure select has proper background */
select {
background-color: rgba(255, 255, 255, 0.1);
}
select:focus {
background-color: rgba(255, 255, 255, 0.15);
}
</style>
</head>
<body class="flex h-screen overflow-hidden">
<!-- Animated Background Particles -->
<div class="fixed inset-0 pointer-events-none z-0">
<div class="particle" style="left: 10%; animation-delay: 0s;"></div>
<div class="particle" style="left: 30%; animation-delay: 2s;"></div>
<div class="particle" style="left: 50%; animation-delay: 4s;"></div>
<div class="particle" style="left: 70%; animation-delay: 6s;"></div>
<div class="particle" style="left: 90%; animation-delay: 8s;"></div>
</div>
<!-- Sidebar -->
<div class="sidebar text-white w-64 flex-shrink-0 flex flex-col relative z-10">
<div class="p-4 border-b border-white/10">
<a href="index.html" class="flex items-center space-x-3 hover:opacity-80 transition-opacity">
<div
class="w-10 h-10 rounded-full bg-gradient-to-r from-yellow-400 to-yellow-500 flex items-center justify-center">
<i data-feather="shield" class="text-gray-900 w-5 h-5"></i>
</div>
<h1 class="text-xl font-bold"><span class="gradient-text">Quantum Safe</span></h1>
</a>
</div>
<nav class="flex-1 overflow-y-auto p-4 space-y-1">
<a href="index.html"
class="flex items-center space-x-3 p-3 rounded-lg hover:bg-white/10 text-gray-300 hover:text-white transition-all">
<i data-feather="home" class="w-5 h-5"></i>
<span>Home</span>
</a>
<a href="dashboard.html"
class="flex items-center space-x-3 p-3 rounded-lg bg-yellow-400/20 text-yellow-400 border border-yellow-400/30">
<i data-feather="layout" class="w-5 h-5"></i>
<span>Dashboard</span>
</a>
<a href="cboms.html"
class="flex items-center space-x-3 p-3 rounded-lg hover:bg-white/10 text-gray-300 hover:text-white transition-all">
<i data-feather="file-text" class="w-5 h-5"></i>
<span>CBOMs</span>
</a>
<a href="assets.html"
class="flex items-center space-x-3 p-3 rounded-lg hover:bg-white/10 text-gray-300 hover:text-white transition-all">
<i data-feather="lock" class="w-5 h-5"></i>
<span>Assets</span>
</a>
<a href="integrations.html"
class="flex items-center space-x-3 p-3 rounded-lg hover:bg-white/10 text-gray-300 hover:text-white transition-all">
<i data-feather="link" class="w-5 h-5"></i>
<span>Integrations</span>
</a>
<a href="analytics.html"
class="flex items-center space-x-3 p-3 rounded-lg hover:bg-white/10 text-gray-300 hover:text-white transition-all">
<i data-feather="bar-chart-2" class="w-5 h-5"></i>
<span>Analytics</span>
</a>
</nav>
<div class="p-4 border-t border-white/10">
<div class="flex items-center space-x-3">
<div
class="w-10 h-10 rounded-full bg-gradient-to-r from-gray-600 to-gray-700 flex items-center justify-center">
<i data-feather="user" class="text-gray-300 w-5 h-5"></i>
</div>
<div>
<p class="text-sm font-medium">Josep Mateu</p>
<p class="text-xs text-gray-400">Administrator</p>
</div>
</div>
</div>
</div>
<!-- Main Content -->
<div class="flex-1 flex flex-col overflow-hidden relative z-10">
<!-- Top Navigation -->
<header
class="backdrop-filter backdrop-blur-lg bg-white/5 border-b border-white/10 flex items-center justify-between p-4">
<div class="flex items-center space-x-4">
<button class="md:hidden text-white">
<i data-feather="menu"></i>
</button>
<h2 class="text-xl font-semibold text-white">Dashboard</h2>
</div>
<div class="flex items-center space-x-4">
<div class="relative">
<i data-feather="search"
class="absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"></i>
<input type="text" placeholder="Search..."
class="pl-10 pr-4 py-2 bg-white/10 border border-white/20 text-white placeholder-gray-400 rounded-lg focus:outline-none focus:ring-2 focus:ring-yellow-400 focus:border-transparent">
</div>
<button class="p-2 rounded-full bg-white/10 text-gray-300 hover:bg-white/20 transition-all">
<i data-feather="bell"></i>
</button>
</div>
</header>
<!-- Main Content Area -->
<main class="flex-1 overflow-y-auto p-6">
<!-- Quick Stats -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-6">
<div class="card-hover rounded-xl p-6 transition-all duration-300" data-aos="fade-up">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-400">Active CBOMs</p>
<p class="text-3xl font-bold text-white mt-1">24</p>
</div>
<div class="p-3 rounded-lg bg-yellow-400/20 text-yellow-400">
<i data-feather="file-text" class="w-6 h-6"></i>
</div>
</div>
<p class="text-xs text-gray-400 mt-3"><span class="text-green-400">+3</span> from last week</p>
</div>
<div class="card-hover rounded-xl p-6 transition-all duration-300" data-aos="fade-up"
data-aos-delay="100">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-400">Total Assets</p>
<p class="text-3xl font-bold text-white mt-1">1,284</p>
</div>
<div class="p-3 rounded-lg bg-blue-400/20 text-blue-400">
<i data-feather="lock" class="w-6 h-6"></i>
</div>
</div>
<p class="text-xs text-gray-400 mt-3"><span class="text-green-400">+12%</span> from last week</p>
</div>
<div class="card-hover rounded-xl p-6 transition-all duration-300" data-aos="fade-up"
data-aos-delay="200">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-400">Risk Assessments</p>
<p class="text-3xl font-bold text-white mt-1">18</p>
</div>
<div class="p-3 rounded-lg bg-red-400/20 text-red-400">
<i data-feather="alert-triangle" class="w-6 h-6"></i>
</div>
</div>
<p class="text-xs text-gray-400 mt-3"><span class="text-red-400">-2</span> from last week</p>
</div>
<div class="card-hover rounded-xl p-6 transition-all duration-300" data-aos="fade-up"
data-aos-delay="300">
<div class="flex items-center justify-between">
<div>
<p class="text-sm font-medium text-gray-400">Integrations</p>
<p class="text-3xl font-bold text-white mt-1">3/4</p>
</div>
<div class="p-3 rounded-lg bg-green-400/20 text-green-400">
<i data-feather="link" class="w-6 h-6"></i>
</div>
</div>
<p class="text-xs text-gray-400 mt-3">1 integration needs attention</p>
</div>
</div>
<!-- Main Content Grid -->
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
<!-- Left Column -->
<div class="lg:col-span-2 space-y-6">
<!-- Quick Actions -->
<div class="card-hover rounded-xl p-6" data-aos="fade-up" data-aos-delay="400">
<div class="flex items-center justify-between mb-4">
<h3 class="font-semibold text-lg text-white">Quick Actions</h3>
<button class="text-sm text-yellow-400 hover:text-yellow-300">View All</button>
</div>
<div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
<button onclick="openModal('newCbomModal')"
class="flex items-center space-x-3 p-4 border border-white/20 rounded-lg hover:border-yellow-400 hover:bg-yellow-400/10 transition-all">
<div class="p-3 rounded-lg bg-yellow-400/20 text-yellow-400">
<i data-feather="plus" class="w-5 h-5"></i>
</div>
<span class="font-medium text-white">New CBOM</span>
</button>
<button onclick="openModal('importCbomModal')"
class="flex items-center space-x-3 p-4 border border-white/20 rounded-lg hover:border-yellow-400 hover:bg-yellow-400/10 transition-all">
<div class="p-3 rounded-lg bg-blue-400/20 text-blue-400">
<i data-feather="download" class="w-5 h-5"></i>
</div>
<span class="font-medium text-white">Import CBOM</span>
</button>
<button onclick="openModal('riskAssessmentModal')"
class="flex items-center space-x-3 p-4 border border-white/20 rounded-lg hover:border-yellow-400 hover:bg-yellow-400/10 transition-all">
<div class="p-3 rounded-lg bg-red-400/20 text-red-400">
<i data-feather="alert-triangle" class="w-5 h-5"></i>
</div>
<span class="font-medium text-white">Risk Assessment</span>
</button>
<button onclick="openModal('generateReportModal')"
class="flex items-center space-x-3 p-4 border border-white/20 rounded-lg hover:border-yellow-400 hover:bg-yellow-400/10 transition-all">
<div class="p-3 rounded-lg bg-green-400/20 text-green-400">
<i data-feather="bar-chart-2" class="w-5 h-5"></i>
</div>
<span class="font-medium text-white">Generate Report</span>
</button>
</div>
</div>
<!-- Recent Activity -->
<div class="card-hover rounded-xl p-6" data-aos="fade-up" data-aos-delay="500">
<div class="flex items-center justify-between mb-4">
<h3 class="font-semibold text-lg text-white">Recent Activity</h3>
<button class="text-sm text-yellow-400 hover:text-yellow-300">View All</button>
</div>
<div class="space-y-4">
<div class="flex items-start space-x-3">
<div class="p-2 rounded-full bg-yellow-400/20 text-yellow-400 mt-1">
<i data-feather="file-plus" class="w-4 h-4"></i>
</div>
<div>
<p class="font-medium text-white">New CBOM created</p>
<p class="text-sm text-gray-400">"Enterprise Web App" CBOM was created by Josep
Mateu</p>
<p class="text-xs text-gray-500 mt-1">2 hours ago</p>
</div>
</div>
<div class="flex items-start space-x-3">
<div class="p-2 rounded-full bg-blue-400/20 text-blue-400 mt-1">
<i data-feather="download" class="w-4 h-4"></i>
</div>
<div>
<p class="font-medium text-white">CBOM imported</p>
<p class="text-sm text-gray-400">"Payment Gateway" CBOM was imported from Venafi</p>
<p class="text-xs text-gray-500 mt-1">5 hours ago</p>
</div>
</div>
<div class="flex items-start space-x-3">
<div class="p-2 rounded-full bg-red-400/20 text-red-400 mt-1">
<i data-feather="alert-triangle" class="w-4 h-4"></i>
</div>
<div>
<p class="font-medium text-white">Risk assessment completed</p>
<p class="text-sm text-gray-400">High risk found in "Legacy System" CBOM</p>
<p class="text-xs text-gray-500 mt-1">1 day ago</p>
</div>
</div>
<div class="flex items-start space-x-3">
<div class="p-2 rounded-full bg-green-400/20 text-green-400 mt-1">
<i data-feather="check-circle" class="w-4 h-4"></i>
</div>
<div>
<p class="font-medium text-white">Integration connected</p>
<p class="text-sm text-gray-400">Tanium integration was successfully connected</p>
<p class="text-xs text-gray-500 mt-1">2 days ago</p>
</div>
</div>
</div>
</div>
</div>
<!-- Right Column -->
<div class="space-y-6">
<!-- Integration Status -->
<div class="card-hover rounded-xl p-6" data-aos="fade-up" data-aos-delay="600">
<h3 class="font-semibold text-lg mb-4 text-white">Integration Status</h3>
<div class="space-y-3">
<div class="flex items-center justify-between p-3 border border-white/20 rounded-lg">
<div class="flex items-center space-x-3">
<div class="p-2 rounded-lg bg-purple-400/20 text-purple-400">
<i data-feather="cpu" class="w-5 h-5"></i>
</div>
<span class="font-medium text-white">Venafi</span>
</div>
<span
class="px-2 py-1 text-xs rounded-full bg-green-400/20 text-green-400">Connected</span>
</div>
<div class="flex items-center justify-between p-3 border border-white/20 rounded-lg">
<div class="flex items-center space-x-3">
<div class="p-2 rounded-lg bg-blue-400/20 text-blue-400">
<i data-feather="server" class="w-5 h-5"></i>
</div>
<span class="font-medium text-white">Tanium</span>
</div>
<span
class="px-2 py-1 text-xs rounded-full bg-green-400/20 text-green-400">Connected</span>
</div>
<div class="flex items-center justify-between p-3 border border-white/20 rounded-lg">
<div class="flex items-center space-x-3">
<div class="p-2 rounded-lg bg-yellow-400/20 text-yellow-400">
<i data-feather="shield" class="w-5 h-5"></i>
</div>
<span class="font-medium text-white">SandboxAQ</span>
</div>
<span
class="px-2 py-1 text-xs rounded-full bg-red-400/20 text-red-400">Disconnected</span>
</div>
<div class="flex items-center justify-between p-3 border border-white/20 rounded-lg">
<div class="flex items-center space-x-3">
<div class="p-2 rounded-lg bg-gray-400/20 text-gray-400">
<i data-feather="cloud" class="w-5 h-5"></i>
</div>
<span class="font-medium text-white">AWS KMS</span>
</div>
<span
class="px-2 py-1 text-xs rounded-full bg-yellow-400/20 text-yellow-400">Pending</span>
</div>
</div>
</div>
<!-- Risk Distribution -->
<div class="card-hover rounded-xl p-6" data-aos="fade-up" data-aos-delay="700">
<h3 class="font-semibold text-lg mb-4 text-white">Risk Distribution</h3>
<div class="h-48 flex items-center justify-center">
<!-- Placeholder for chart -->
<div
class="w-full h-full bg-white/5 rounded-lg flex items-center justify-center text-gray-400 border border-white/10">
<i data-feather="pie-chart" class="w-12 h-12"></i>
</div>
</div>
<div class="mt-4 space-y-2">
<div class="flex items-center justify-between">
<div class="flex items-center space-x-2">
<div class="w-3 h-3 rounded-full bg-red-500"></div>
<span class="text-sm text-gray-300">High Risk</span>
</div>
<span class="text-sm font-medium text-white">12%</span>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center space-x-2">
<div class="w-3 h-3 rounded-full bg-yellow-500"></div>
<span class="text-sm text-gray-300">Medium Risk</span>
</div>
<span class="text-sm font-medium text-white">34%</span>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center space-x-2">
<div class="w-3 h-3 rounded-full bg-green-500"></div>
<span class="text-sm text-gray-300">Low Risk</span>
</div>
<span class="text-sm font-medium text-white">54%</span>
</div>
</div>
</div>
</div>
</div>
</main>
</div>
<!-- Floating Modals -->
<div id="newCbomModal"
class="fixed inset-0 z-50 flex items-center justify-center hidden bg-black bg-opacity-70 backdrop-blur-sm">
<div class="bg-gray-800 rounded-xl shadow-lg w-full max-w-md border border-white/10">
<div class="p-6">
<div class="flex items-center justify-between mb-4">
<h3 class="text-xl font-semibold text-white">Create New CBOM</h3>
<button onclick="closeModal('newCbomModal')" class="text-gray-400 hover:text-white">
<i data-feather="x" class="w-6 h-6"></i>
</button>
</div>
<div class="space-y-4">
<div>
<label class="block text-sm font-medium text-gray-300 mb-1">CBOM Name</label>
<input type="text"
class="w-full px-3 py-2 bg-white/10 border border-white/20 text-white rounded-lg focus:ring-2 focus:ring-yellow-400 focus:border-transparent">
</div>
<div>
<label class="block text-sm font-medium text-gray-300 mb-1">Description</label>
<textarea
class="w-full px-3 py-2 bg-white/10 border border-white/20 text-white rounded-lg focus:ring-2 focus:ring-yellow-400 focus:border-transparent"
rows="3"></textarea>
</div>
<div>
<label class="block text-sm font-medium text-gray-300 mb-1">Template</label>
<select
class="w-full px-3 py-2 bg-white/10 border border-white/20 text-white rounded-lg focus:ring-2 focus:ring-yellow-400 focus:border-transparent">
<option>Web Application</option>
<option>Mobile Application</option>
<option>Microservices</option>
<option>Legacy System</option>
</select>
</div>
</div>
<div class="flex justify-end space-x-3 mt-6">
<button onclick="closeModal('newCbomModal')"
class="px-4 py-2 border border-white/20 text-gray-300 rounded-lg hover:bg-white/10">
Cancel
</button>
<button class="px-4 py-2 action-button text-gray-900 rounded-lg font-semibold">
Create CBOM
</button>
</div>
</div>
</div>
</div>
<div id="importCbomModal"
class="fixed inset-0 z-50 flex items-center justify-center hidden bg-black bg-opacity-70 backdrop-blur-sm">
<div class="bg-gray-800 rounded-xl shadow-lg w-full max-w-md border border-white/10">
<div class="p-6">
<div class="flex items-center justify-between mb-4">
<h3 class="text-xl font-semibold text-white">Import CBOM</h3>
<button onclick="closeModal('importCbomModal')" class="text-gray-400 hover:text-white">
<i data-feather="x" class="w-6 h-6"></i>
</button>
</div>
<div class="space-y-4">
<div class="border-2 border-dashed border-white/20 rounded-lg p-8 text-center">
<i data-feather="upload" class="w-12 h-12 mx-auto text-gray-400 mb-3"></i>
<p class="text-sm text-gray-300 mb-2">Drag and drop your CBOM file here</p>
<p class="text-xs text-gray-500 mb-4">Supports .json, .xml, .cbom formats</p>
<button class="px-4 py-2 bg-white/10 text-gray-300 rounded-lg hover:bg-white/20">
Select File
</button>
</div>
<div class="flex items-center space-x-2">
<input type="checkbox" id="overwrite"
class="rounded border-gray-600 text-yellow-400 focus:ring-yellow-400">
<label for="overwrite" class="text-sm text-gray-300">Overwrite existing CBOM with same
name</label>
</div>
</div>
<div class="flex justify-end space-x-3 mt-6">
<button onclick="closeModal('importCbomModal')"
class="px-4 py-2 border border-white/20 text-gray-300 rounded-lg hover:bg-white/10">
Cancel
</button>
<button class="px-4 py-2 action-button text-gray-900 rounded-lg font-semibold">
Import CBOM
</button>
</div>
</div>
</div>
</div>
<div id="riskAssessmentModal"
class="fixed inset-0 z-50 flex items-center justify-center hidden bg-black bg-opacity-70 backdrop-blur-sm">
<div class="bg-gray-800 rounded-xl shadow-lg w-full max-w-md border border-white/10">
<div class="p-6">
<div class="flex items-center justify-between mb-4">
<h3 class="text-xl font-semibold text-white">Run Risk Assessment</h3>
<button onclick="closeModal('riskAssessmentModal')" class="text-gray-400 hover:text-white">
<i data-feather="x" class="w-6 h-6"></i>
</button>
</div>
<div class="space-y-4">
<div>
<label class="block text-sm font-medium text-gray-300 mb-1">Select CBOM</label>
<select
class="w-full px-3 py-2 bg-white/10 border border-white/20 text-white rounded-lg focus:ring-2 focus:ring-yellow-400 focus:border-transparent">
<option>Enterprise Web App</option>
<option>Payment Gateway</option>
<option>Legacy System</option>
<option>Mobile Banking</option>
</select>
</div>
<div>
<label class="block text-sm font-medium text-gray-300 mb-1">Assessment Type</label>
<select
class="w-full px-3 py-2 bg-white/10 border border-white/20 text-white rounded-lg focus:ring-2 focus:ring-yellow-400 focus:border-transparent">
<option>Quantum Risk Only</option>
<option>Full Cryptographic Assessment</option>
<option>Compliance Check</option>
</select>
</div>
<div class="flex items-center space-x-2">
<input type="checkbox" id="includeDependencies"
class="rounded border-gray-600 text-yellow-400 focus:ring-yellow-400" checked>
<label for="includeDependencies" class="text-sm text-gray-300">Include dependencies in
assessment</label>
</div>
</div>
<div class="flex justify-end space-x-3 mt-6">
<button onclick="closeModal('riskAssessmentModal')"
class="px-4 py-2 border border-white/20 text-gray-300 rounded-lg hover:bg-white/10">
Cancel
</button>
<button class="px-4 py-2 action-button text-gray-900 rounded-lg font-semibold">
Run Assessment
</button>
</div>
</div>
</div>
</div>
<div id="generateReportModal"
class="fixed inset-0 z-50 flex items-center justify-center hidden bg-black bg-opacity-70 backdrop-blur-sm">
<div class="bg-gray-800 rounded-xl shadow-lg w-full max-w-md border border-white/10">
<div class="p-6">
<div class="flex items-center justify-between mb-4">
<h3 class="text-xl font-semibold text-white">Generate Report</h3>
<button onclick="closeModal('generateReportModal')" class="text-gray-400 hover:text-white">
<i data-feather="x" class="w-6 h-6"></i>
</button>
</div>
<div class="space-y-4">
<div>
<label class="block text-sm font-medium text-gray-300 mb-1">Report Type</label>
<select
class="w-full px-3 py-2 bg-white/10 border border-white/20 text-white rounded-lg focus:ring-2 focus:ring-yellow-400 focus:border-transparent">
<option>Quantum Risk Assessment</option>
<option>Compliance Report</option>
<option>Executive Summary</option>
<option>Technical Details</option>
</select>
</div>
<div>
<label class="block text-sm font-medium text-gray-300 mb-1">Format</label>
<div class="grid grid-cols-3 gap-2">
<button class="p-2 border border-white/20 rounded-lg hover:bg-white/10 transition-all">
<i data-feather="file-text" class="w-5 h-5 mx-auto text-gray-400"></i>
<span class="text-xs block mt-1 text-gray-300">PDF</span>
</button>
<button class="p-2 border border-white/20 rounded-lg hover:bg-white/10 transition-all">
<i data-feather="file-text" class="w-5 h-5 mx-auto text-gray-400"></i>
<span class="text-xs block mt-1 text-gray-300">DOCX</span>
</button>
<button class="p-2 border border-white/20 rounded-lg hover:bg-white/10 transition-all">
<i data-feather="file-text" class="w-5 h-5 mx-auto text-gray-400"></i>
<span class="text-xs block mt-1 text-gray-300">CSV</span>
</button>
</div>
</div>
<div class="flex items-center space-x-2">
<input type="checkbox" id="includeCharts"
class="rounded border-gray-600 text-yellow-400 focus:ring-yellow-400" checked>
<label for="includeCharts" class="text-sm text-gray-300">Include charts and graphs</label>
</div>
</div>
<div class="flex justify-end space-x-3 mt-6">
<button onclick="closeModal('generateReportModal')"
class="px-4 py-2 border border-white/20 text-gray-300 rounded-lg hover:bg-white/10">
Cancel
</button>
<button class="px-4 py-2 action-button text-gray-900 rounded-lg font-semibold">
Generate Report
</button>
</div>
</div>
</div>
</div>
<script>
// Initialize feather icons immediately
document.addEventListener('DOMContentLoaded', function () {
// Replace feather icons
feather.replace();
// Initialize AOS with better settings
AOS.init({
duration: 400,
once: true,
offset: 0,
easing: 'ease-out',
delay: 0,
anchorPlacement: 'top-bottom',
disable: function () {
// Disable AOS on mobile devices to prevent issues
return window.innerWidth < 768;
}
});
// Force AOS refresh after a short delay
setTimeout(() => {
AOS.refresh();
}, 100);
});
// Modal functions
function openModal(modalId) {
document.getElementById(modalId).classList.remove('hidden');
// Re-render feather icons in modals
setTimeout(() => feather.replace(), 100);
}
function closeModal(modalId) {
document.getElementById(modalId).classList.add('hidden');
}
// Ensure all content is visible on load
window.addEventListener('load', function () {
// Force all AOS elements to animate
document.querySelectorAll('[data-aos]').forEach(el => {
el.classList.add('aos-animate');
});
});
</script>
</body>
</html>