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94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Download Manager Pro</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        .drag-area {
            border: 2px dashed #ccc;
            transition: all 0.3s;
        }
        .drag-area.active {
            border-color: #4f46e5;
            background-color: #eef2ff;
        }
        .folder-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
        }
        .progress-bar {
            transition: width 0.3s ease;
        }
        /* Custom scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }
        ::-webkit-scrollbar-track {
            background: #f1f1f1;
        }
        ::-webkit-scrollbar-thumb {
            background: #c7d2fe;
            border-radius: 4px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #a5b4fc;
        }
    </style>
</head>
<body class="bg-gray-50 text-gray-800">
    <div class="min-h-screen flex flex-col">
        <!-- Header -->
        <header class="bg-indigo-600 text-white shadow-md">
            <div class="container mx-auto px-4 py-4 flex justify-between items-center">
                <div class="flex items-center space-x-2">
                    <i class="fas fa-download text-2xl"></i>
                    <h1 class="text-2xl font-bold">Download Manager Pro</h1>
                </div>
                <div class="flex items-center space-x-4">
                    <button class="px-4 py-2 bg-indigo-700 rounded-lg hover:bg-indigo-800 transition">
                        <i class="fas fa-cog mr-2"></i>Settings
                    </button>
                    <div class="relative">
                        <button id="notif-btn" class="p-2 rounded-full hover:bg-indigo-700 transition">
                            <i class="fas fa-bell"></i>
                            <span class="absolute top-0 right-0 h-3 w-3 bg-red-500 rounded-full"></span>
                        </button>
                    </div>
                </div>
            </div>
        </header>

        <!-- Main Content -->
        <main class="flex-grow container mx-auto px-4 py-6">
            <div class="grid grid-cols-1 lg:grid-cols-4 gap-6">
                <!-- Sidebar -->
                <div class="lg:col-span-1 space-y-6">
                    <!-- Quick Stats -->
                    <div class="bg-white rounded-xl shadow p-4">
                        <h2 class="font-semibold text-lg mb-3 text-indigo-700">Quick Stats</h2>
                        <div class="space-y-3">
                            <div class="flex justify-between items-center">
                                <span class="text-gray-600">Total Downloads:</span>
                                <span class="font-medium">1,248</span>
                            </div>
                            <div class="flex justify-between items-center">
                                <span class="text-gray-600">Sorted Today:</span>
                                <span class="font-medium">24</span>
                            </div>
                            <div class="flex justify-between items-center">
                                <span class="text-gray-600">Storage Used:</span>
                                <span class="font-medium">78.5 GB</span>
                            </div>
                        </div>
                    </div>

                    <!-- Quick Actions -->
                    <div class="bg-white rounded-xl shadow p-4">
                        <h2 class="font-semibold text-lg mb-3 text-indigo-700">Quick Actions</h2>
                        <div class="space-y-2">
                            <button class="w-full flex items-center space-x-2 px-3 py-2 bg-indigo-50 text-indigo-700 rounded-lg hover:bg-indigo-100 transition">
                                <i class="fas fa-plus"></i>
                                <span>New Sorting Rule</span>
                            </button>
                            <button class="w-full flex items-center space-x-2 px-3 py-2 bg-indigo-50 text-indigo-700 rounded-lg hover:bg-indigo-100 transition">
                                <i class="fas fa-folder-plus"></i>
                                <span>Create New Folder</span>
                            </button>
                            <button class="w-full flex items-center space-x-2 px-3 py-2 bg-indigo-50 text-indigo-700 rounded-lg hover:bg-indigo-100 transition">
                                <i class="fas fa-search"></i>
                                <span>Find Duplicates</span>
                            </button>
                        </div>
                    </div>

                    <!-- Folder List -->
                    <div class="bg-white rounded-xl shadow p-4">
                        <div class="flex justify-between items-center mb-3">
                            <h2 class="font-semibold text-lg text-indigo-700">Folders</h2>
                            <button class="text-indigo-600 hover:text-indigo-800">
                                <i class="fas fa-ellipsis-h"></i>
                            </button>
                        </div>
                        <div class="space-y-2 max-h-64 overflow-y-auto">
                            <div class="flex items-center space-x-2 p-2 rounded-lg hover:bg-gray-100 cursor-pointer">
                                <i class="fas fa-folder text-yellow-400"></i>
                                <span>Downloads</span>
                                <span class="ml-auto text-sm text-gray-500">128</span>
                            </div>
                            <div class="flex items-center space-x-2 p-2 rounded-lg hover:bg-gray-100 cursor-pointer">
                                <i class="fas fa-folder text-blue-400"></i>
                                <span>Documents</span>
                                <span class="ml-auto text-sm text-gray-500">42</span>
                            </div>
                            <div class="flex items-center space-x-2 p-2 rounded-lg hover:bg-gray-100 cursor-pointer">
                                <i class="fas fa-folder text-green-400"></i>
                                <span>Images</span>
                                <span class="ml-auto text-sm text-gray-500">356</span>
                            </div>
                            <div class="flex items-center space-x-2 p-2 rounded-lg hover:bg-gray-100 cursor-pointer">
                                <i class="fas fa-folder text-red-400"></i>
                                <span>Videos</span>
                                <span class="ml-auto text-sm text-gray-500">87</span>
                            </div>
                            <div class="flex items-center space-x-2 p-2 rounded-lg hover:bg-gray-100 cursor-pointer">
                                <i class="fas fa-folder text-purple-400"></i>
                                <span>Music</span>
                                <span class="ml-auto text-sm text-gray-500">63</span>
                            </div>
                            <div class="flex items-center space-x-2 p-2 rounded-lg hover:bg-gray-100 cursor-pointer">
                                <i class="fas fa-folder text-pink-400"></i>
                                <span>Archives</span>
                                <span class="ml-auto text-sm text-gray-500">29</span>
                            </div>
                            <div class="flex items-center space-x-2 p-2 rounded-lg hover:bg-gray-100 cursor-pointer">
                                <i class="fas fa-folder text-indigo-400"></i>
                                <span>AI_Projects</span>
                                <span class="ml-auto text-sm text-gray-500">5</span>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- Main Panel -->
                <div class="lg:col-span-3 space-y-6">
                    <!-- Current Downloads -->
                    <div class="bg-white rounded-xl shadow p-6">
                        <div class="flex justify-between items-center mb-4">
                            <h2 class="font-semibold text-xl text-indigo-700">Current Downloads</h2>
                            <div class="flex space-x-2">
                                <button class="p-2 text-indigo-600 hover:bg-indigo-50 rounded-lg">
                                    <i class="fas fa-sync-alt"></i>
                                </button>
                                <button class="p-2 text-indigo-600 hover:bg-indigo-50 rounded-lg">
                                    <i class="fas fa-filter"></i>
                                </button>
                            </div>
                        </div>

                        <div class="space-y-4">
                            <!-- Download Item -->
                            <div class="border rounded-lg p-3 hover:bg-gray-50 transition">
                                <div class="flex items-center space-x-3">
                                    <div class="w-10 h-10 flex items-center justify-center bg-indigo-100 text-indigo-600 rounded-lg">
                                        <i class="fas fa-file-pdf"></i>
                                    </div>
                                    <div class="flex-grow">
                                        <div class="flex justify-between items-center">
                                            <h3 class="font-medium">Project_Proposal.pdf</h3>
                                            <span class="text-sm text-gray-500">12.5 MB</span>
                                        </div>
                                        <div class="text-sm text-gray-500">From: drive.google.com</div>
                                        <div class="mt-2">
                                            <div class="w-full bg-gray-200 rounded-full h-2">
                                                <div class="bg-indigo-600 h-2 rounded-full progress-bar" style="width: 65%"></div>
                                            </div>
                                            <div class="flex justify-between text-xs text-gray-500 mt-1">
                                                <span>65%</span>
                                                <span>ETA: 2 min</span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="flex space-x-2">
                                        <button class="p-2 text-indigo-600 hover:bg-indigo-50 rounded-lg">
                                            <i class="fas fa-pause"></i>
                                        </button>
                                        <button class="p-2 text-red-600 hover:bg-red-50 rounded-lg">
                                            <i class="fas fa-times"></i>
                                        </button>
                                    </div>
                                </div>
                            </div>

                            <!-- Download Item -->
                            <div class="border rounded-lg p-3 hover:bg-gray-50 transition">
                                <div class="flex items-center space-x-3">
                                    <div class="w-10 h-10 flex items-center justify-center bg-blue-100 text-blue-600 rounded-lg">
                                        <i class="fas fa-file-archive"></i>
                                    </div>
                                    <div class="flex-grow">
                                        <div class="flex justify-between items-center">
                                            <h3 class="font-medium">dataset_v2.zip</h3>
                                            <span class="text-sm text-gray-500">1.2 GB</span>
                                        </div>
                                        <div class="text-sm text-gray-500">From: github.com</div>
                                        <div class="mt-2">
                                            <div class="w-full bg-gray-200 rounded-full h-2">
                                                <div class="bg-blue-600 h-2 rounded-full progress-bar" style="width: 32%"></div>
                                            </div>
                                            <div class="flex justify-between text-xs text-gray-500 mt-1">
                                                <span>32%</span>
                                                <span>ETA: 8 min</span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="flex space-x-2">
                                        <button class="p-2 text-indigo-600 hover:bg-indigo-50 rounded-lg">
                                            <i class="fas fa-pause"></i>
                                        </button>
                                        <button class="p-2 text-red-600 hover:bg-red-50 rounded-lg">
                                            <i class="fas fa-times"></i>
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- Sorting Rules -->
                    <div class="bg-white rounded-xl shadow p-6">
                        <div class="flex justify-between items-center mb-4">
                            <h2 class="font-semibold text-xl text-indigo-700">Sorting Rules</h2>
                            <button class="px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 transition">
                                <i class="fas fa-plus mr-2"></i>Add Rule
                            </button>
                        </div>

                        <div class="overflow-x-auto">
                            <table class="min-w-full divide-y divide-gray-200">
                                <thead class="bg-gray-50">
                                    <tr>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Rule Name</th>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Condition</th>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Destination</th>
                                        <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
                                    </tr>
                                </thead>
                                <tbody class="bg-white divide-y divide-gray-200">
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap">Midjourney AI</td>
                                        <td class="px-6 py-4 whitespace-nowrap">Source contains: midjourney.com</td>
                                        <td class="px-6 py-4 whitespace-nowrap">AI_Projects/Midjourney</td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <button class="text-indigo-600 hover:text-indigo-900 mr-3">
                                                <i class="fas fa-edit"></i>
                                            </button>
                                            <button class="text-red-600 hover:text-red-900">
                                                <i class="fas fa-trash"></i>
                                            </button>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap">Runway ML</td>
                                        <td class="px-6 py-4 whitespace-nowrap">Source contains: runwayml.com</td>
                                        <td class="px-6 py-4 whitespace-nowrap">AI_Projects/Runway</td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <button class="text-indigo-600 hover:text-indigo-900 mr-3">
                                                <i class="fas fa-edit"></i>
                                            </button>
                                            <button class="text-red-600 hover:text-red-900">
                                                <i class="fas fa-trash"></i>
                                            </button>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap">VEO AI</td>
                                        <td class="px-6 py-4 whitespace-nowrap">Source contains: veo.ai</td>
                                        <td class="px-6 py-4 whitespace-nowrap">AI_Projects/VEO</td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <button class="text-indigo-600 hover:text-indigo-900 mr-3">
                                                <i class="fas fa-edit"></i>
                                            </button>
                                            <button class="text-red-600 hover:text-red-900">
                                                <i class="fas fa-trash"></i>
                                            </button>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap">Kling AI</td>
                                        <td class="px-6 py-4 whitespace-nowrap">Source contains: kling.com</td>
                                        <td class="px-6 py-4 whitespace-nowrap">AI_Projects/Kling</td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <button class="text-indigo-600 hover:text-indigo-900 mr-3">
                                                <i class="fas fa-edit"></i>
                                            </button>
                                            <button class="text-red-600 hover:text-red-900">
                                                <i class="fas fa-trash"></i>
                                            </button>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="px-6 py-4 whitespace-nowrap">Luma AI</td>
                                        <td class="px-6 py-4 whitespace-nowrap">Source contains: luma.ai</td>
                                        <td class="px-6 py-4 whitespace-nowrap">AI_Projects/Luma</td>
                                        <td class="px-6 py-4 whitespace-nowrap">
                                            <button class="text-indigo-600 hover:text-indigo-900 mr-3">
                                                <i class="fas fa-edit"></i>
                                            </button>
                                            <button class="text-red-600 hover:text-red-900">
                                                <i class="fas fa-trash"></i>
                                            </button>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>

                    <!-- Quick Sort -->
                    <div class="bg-white rounded-xl shadow p-6">
                        <h2 class="font-semibold text-xl text-indigo-700 mb-4">Quick Sort</h2>
                        <div class="drag-area p-8 text-center rounded-lg cursor-pointer transition" id="dragArea">
                            <i class="fas fa-cloud-upload-alt text-4xl text-indigo-500 mb-3"></i>
                            <h3 class="text-lg font-medium mb-1">Drag & Drop Files to Sort</h3>
                            <p class="text-gray-500 mb-4">or click to browse your files</p>
                            <button class="px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 transition">
                                Select Files
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </main>

        <!-- Footer -->
        <footer class="bg-white border-t py-4">
            <div class="container mx-auto px-4 text-center text-gray-500 text-sm">
                <p>Download Manager Pro v1.0.0 | © 2023 All Rights Reserved</p>
            </div>
        </footer>
    </div>

    <script>
        // Drag and drop functionality
        const dragArea = document.getElementById('dragArea');
        
        ['dragenter', 'dragover', 'dragleave', 'drop'].forEach(eventName => {
            dragArea.addEventListener(eventName, preventDefaults, false);
        });

        function preventDefaults(e) {
            e.preventDefault();
            e.stopPropagation();
        }

        ['dragenter', 'dragover'].forEach(eventName => {
            dragArea.addEventListener(eventName, highlight, false);
        });

        ['dragleave', 'drop'].forEach(eventName => {
            dragArea.addEventListener(eventName, unhighlight, false);
        });

        function highlight() {
            dragArea.classList.add('active');
        }

        function unhighlight() {
            dragArea.classList.remove('active');
        }

        dragArea.addEventListener('drop', handleDrop, false);

        function handleDrop(e) {
            const dt = e.dataTransfer;
            const files = dt.files;
            handleFiles(files);
        }

        function handleFiles(files) {
            alert(`Processing ${files.length} file(s) for sorting...`);
            // Here you would normally process the files
        }

        // Simulate download progress
        setInterval(() => {
            const progressBars = document.querySelectorAll('.progress-bar');
            progressBars.forEach(bar => {
                const currentWidth = parseInt(bar.style.width);
                if (currentWidth < 100) {
                    const newWidth = Math.min(currentWidth + Math.random() * 5, 100);
                    bar.style.width = `${newWidth}%`;
                    bar.previousElementSibling.textContent = `${Math.floor(newWidth)}%`;
                }
            });
        }, 1000);
    </script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=dansmight/download-manager" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>