File size: 33,530 Bytes
bb60473
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
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
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>سامانه مؤدیان - مدیریت فاکتورهای الکترونیکی</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/gsap@3.9.0/dist/gsap.min.js"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        @font-face {
            font-family: 'Vazir';
            src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir.woff2') format('woff2');
            font-weight: normal;
            font-style: normal;
        }
        
        body {
            font-family: 'Vazir', sans-serif;
            background-color: #f8fafc;
        }
        
        .card-hover {
            transition: all 0.3s ease;
        }
        
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }
        
        .ripple {
            position: relative;
            overflow: hidden;
        }
        
        .ripple:after {
            content: "";
            display: block;
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            pointer-events: none;
            background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
            background-repeat: no-repeat;
            background-position: 50%;
            transform: scale(10, 10);
            opacity: 0;
            transition: transform .5s, opacity 1s;
        }
        
        .ripple:active:after {
            transform: scale(0, 0);
            opacity: .3;
            transition: 0s;
        }
        
        .slide-fade-enter-active {
            transition: all 0.3s ease-out;
        }
        
        .slide-fade-leave-active {
            transition: all 0.3s cubic-bezier(1, 0.5, 0.8, 1);
        }
        
        .slide-fade-enter-from,
        .slide-fade-leave-to {
            transform: translateX(20px);
            opacity: 0;
        }
        
        .shake {
            animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
        }
        
        @keyframes shake {
            10%, 90% { transform: translate3d(-1px, 0, 0); }
            20%, 80% { transform: translate3d(2px, 0, 0); }
            30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
            40%, 60% { transform: translate3d(4px, 0, 0); }
        }
        
        .progress-circle {
            animation: rotate 2s linear infinite;
            transform-origin: center center;
        }
        
        @keyframes rotate {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .drag-area {
            border: 2px dashed #cbd5e1;
            transition: all 0.3s ease;
        }
        
        .drag-area.active {
            border-color: #0ea5e9;
            background-color: rgba(14, 165, 233, 0.05);
        }
        
        .invoice-item {
            transition: all 0.3s ease;
        }
        
        .invoice-item:hover {
            background-color: #f1f5f9;
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Header -->
    <header class="bg-gradient-to-r from-blue-900 to-teal-600 text-white shadow-lg">
        <div class="container mx-auto px-4 py-4 flex justify-between items-center">
            <div class="flex items-center space-x-2 space-x-reverse">
                <div class="bg-white/20 p-2 rounded-full">
                    <i class="fas fa-file-invoice text-xl"></i>
                </div>
                <h1 class="text-xl font-bold">سامانه مؤدیان مالیاتی</h1>
            </div>
            <div class="flex items-center space-x-4 space-x-reverse">
                <div class="relative group">
                    <button class="bg-white/10 hover:bg-white/20 p-2 rounded-full transition">
                        <i class="fas fa-bell"></i>
                        <span class="absolute -top-1 -right-1 bg-red-500 text-white text-xs rounded-full h-5 w-5 flex items-center justify-center">3</span>
                    </button>
                    <div class="absolute hidden group-hover:block right-0 mt-2 w-72 bg-white text-gray-800 rounded-lg shadow-xl z-10">
                        <div class="p-3 border-b border-gray-200">
                            <h3 class="font-bold">اعلان‌ها</h3>
                        </div>
                        <div class="max-h-60 overflow-y-auto">
                            <div class="p-3 border-b border-gray-100 hover:bg-gray-50 cursor-pointer transition">
                                <div class="flex items-start">
                                    <div class="bg-red-100 text-red-600 p-2 rounded-full mr-3">
                                        <i class="fas fa-exclamation-circle"></i>
                                    </div>
                                    <div>
                                        <p class="text-sm font-medium">خطا در ارسال فاکتور #1234</p>
                                        <p class="text-xs text-gray-500 mt-1">2 ساعت پیش</p>
                                    </div>
                                </div>
                            </div>
                            <div class="p-3 border-b border-gray-100 hover:bg-gray-50 cursor-pointer transition">
                                <div class="flex items-start">
                                    <div class="bg-green-100 text-green-600 p-2 rounded-full mr-3">
                                        <i class="fas fa-check-circle"></i>
                                    </div>
                                    <div>
                                        <p class="text-sm font-medium">فاکتور #1233 تأیید شد</p>
                                        <p class="text-xs text-gray-500 mt-1">5 ساعت پیش</p>
                                    </div>
                                </div>
                            </div>
                            <div class="p-3 border-b border-gray-100 hover:bg-gray-50 cursor-pointer transition">
                                <div class="flex items-start">
                                    <div class="bg-blue-100 text-blue-600 p-2 rounded-full mr-3">
                                        <i class="fas fa-info-circle"></i>
                                    </div>
                                    <div>
                                        <p class="text-sm font-medium">بروزرسانی جدید سیستم</p>
                                        <p class="text-xs text-gray-500 mt-1">دیروز</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="p-3 text-center bg-gray-50">
                            <a href="#" class="text-blue-600 text-sm font-medium">مشاهده همه اعلان‌ها</a>
                        </div>
                    </div>
                </div>
                <div class="flex items-center space-x-2 space-x-reverse">
                    <div class="w-10 h-10 rounded-full bg-teal-500 flex items-center justify-center text-white font-bold">م</div>
                    <span class="font-medium">محمد رضایی</span>
                </div>
            </div>
        </div>
    </header>

    <!-- Main Content -->
    <div class="container mx-auto px-4 py-6">
        <!-- Dashboard Cards -->
        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
            <div class="bg-white rounded-xl shadow-md p-6 card-hover border-r-4 border-blue-600">
                <div class="flex justify-between items-start">
                    <div>
                        <p class="text-gray-500">فاکتورهای ارسال شده</p>
                        <h3 class="text-2xl font-bold mt-2">1,248</h3>
                    </div>
                    <div class="bg-blue-100 text-blue-600 p-3 rounded-full">
                        <i class="fas fa-paper-plane text-lg"></i>
                    </div>
                </div>
                <div class="mt-4">
                    <div class="flex items-center text-green-500 text-sm">
                        <i class="fas fa-arrow-up ml-1"></i>
                        <span>12% نسبت به ماه قبل</span>
                    </div>
                </div>
            </div>
            
            <div class="bg-white rounded-xl shadow-md p-6 card-hover border-r-4 border-green-500">
                <div class="flex justify-between items-start">
                    <div>
                        <p class="text-gray-500">فاکتورهای تأیید شده</p>
                        <h3 class="text-2xl font-bold mt-2">1,120</h3>
                    </div>
                    <div class="bg-green-100 text-green-600 p-3 rounded-full">
                        <i class="fas fa-check-circle text-lg"></i>
                    </div>
                </div>
                <div class="mt-4">
                    <div class="flex items-center text-green-500 text-sm">
                        <i class="fas fa-arrow-up ml-1"></i>
                        <span>8% نسبت به ماه قبل</span>
                    </div>
                </div>
            </div>
            
            <div class="bg-white rounded-xl shadow-md p-6 card-hover border-r-4 border-yellow-500">
                <div class="flex justify-between items-start">
                    <div>
                        <p class="text-gray-500">در انتظار تأیید</p>
                        <h3 class="text-2xl font-bold mt-2">85</h3>
                    </div>
                    <div class="bg-yellow-100 text-yellow-600 p-3 rounded-full">
                        <i class="fas fa-clock text-lg"></i>
                    </div>
                </div>
                <div class="mt-4">
                    <div class="flex items-center text-red-500 text-sm">
                        <i class="fas fa-arrow-down ml-1"></i>
                        <span>5% نسبت به ماه قبل</span>
                    </div>
                </div>
            </div>
            
            <div class="bg-white rounded-xl shadow-md p-6 card-hover border-r-4 border-red-500">
                <div class="flex justify-between items-start">
                    <div>
                        <p class="text-gray-500">فاکتورهای دارای خطا</p>
                        <h3 class="text-2xl font-bold mt-2">43</h3>
                    </div>
                    <div class="bg-red-100 text-red-600 p-3 rounded-full">
                        <i class="fas fa-exclamation-circle text-lg"></i>
                    </div>
                </div>
                <div class="mt-4">
                    <div class="flex items-center text-red-500 text-sm">
                        <i class="fas fa-arrow-up ml-1"></i>
                        <span>3% نسبت به ماه قبل</span>
                    </div>
                </div>
            </div>
        </div>

        <!-- Charts and Invoice Creation -->
        <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8">
            <div class="lg:col-span-2 bg-white rounded-xl shadow-md p-6">
                <div class="flex justify-between items-center mb-6">
                    <h2 class="text-lg font-bold">وضعیت فاکتورها در ماه جاری</h2>
                    <div class="flex space-x-2 space-x-reverse">
                        <button class="px-3 py-1 bg-blue-600 text-white rounded-lg text-sm">ماهانه</button>
                        <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-lg text-sm">هفتگی</button>
                        <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-lg text-sm">روزانه</button>
                    </div>
                </div>
                <div class="h-64">
                    <!-- Chart Placeholder (would be replaced with actual chart in production) -->
                    <div class="w-full h-full bg-gray-100 rounded-lg flex items-center justify-center text-gray-400">
                        <i class="fas fa-chart-line text-4xl"></i>
                    </div>
                </div>
            </div>
            
            <div class="bg-white rounded-xl shadow-md p-6">
                <h2 class="text-lg font-bold mb-6">صدور فاکتور جدید</h2>
                <p class="text-gray-600 mb-6">برای ایجاد فاکتور جدید، گزینه مورد نظر را انتخاب نمایید.</p>
                
                <div class="space-y-4">
                    <button class="w-full ripple bg-blue-600 hover:bg-blue-700 text-white py-3 px-4 rounded-lg flex items-center justify-between transition">
                        <span>فاکتور فروش کالا</span>
                        <i class="fas fa-box-open"></i>
                    </button>
                    
                    <button class="w-full ripple bg-teal-600 hover:bg-teal-700 text-white py-3 px-4 rounded-lg flex items-center justify-between transition">
                        <span>فاکتور فروش خدمات</span>
                        <i class="fas fa-concierge-bell"></i>
                    </button>
                    
                    <button class="w-full ripple bg-purple-600 hover:bg-purple-700 text-white py-3 px-4 rounded-lg flex items-center justify-between transition">
                        <span>فاکتور برگشت از فروش</span>
                        <i class="fas fa-exchange-alt"></i>
                    </button>
                </div>
                
                <div class="mt-6 pt-6 border-t border-gray-200">
                    <button class="w-full ripple bg-gray-100 hover:bg-gray-200 text-gray-700 py-3 px-4 rounded-lg flex items-center justify-between transition">
                        <span>مشاهده پیش‌نویس‌ها</span>
                        <i class="fas fa-file-alt"></i>
                    </button>
                </div>
            </div>
        </div>

        <!-- Recent Invoices and Status -->
        <div class="bg-white rounded-xl shadow-md overflow-hidden">
            <div class="px-6 py-4 border-b border-gray-200 flex justify-between items-center">
                <h2 class="text-lg font-bold">آخرین فاکتورها</h2>
                <div class="flex space-x-2 space-x-reverse">
                    <div class="relative">
                        <input type="text" placeholder="جستجو..." class="pr-10 pl-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent">
                        <i class="fas fa-search absolute right-3 top-3 text-gray-400"></i>
                    </div>
                    <button class="px-4 py-2 bg-gray-100 text-gray-600 rounded-lg flex items-center">
                        <i class="fas fa-filter ml-2"></i>
                        <span>فیلتر</span>
                    </button>
                </div>
            </div>
            
            <div class="overflow-x-auto">
                <table class="min-w-full divide-y divide-gray-200">
                    <thead class="bg-gray-50">
                        <tr>
                            <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">شماره فاکتور</th>
                            <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">تاریخ</th>
                            <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">خریدار</th>
                            <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">مبلغ (ریال)</th>
                            <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">وضعیت</th>
                            <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">عملیات</th>
                        </tr>
                    </thead>
                    <tbody class="bg-white divide-y divide-gray-200">
                        <tr class="hover:bg-gray-50 transition">
                            <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">INV-2023-1245</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1402/05/12</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">شرکت توسعه ارتباطات</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">12,450,000</td>
                            <td class="px-6 py-4 whitespace-nowrap">
                                <span class="px-3 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">تأیید شده</span>
                            </td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                <button class="text-blue-600 hover:text-blue-900 ml-3"><i class="fas fa-eye"></i></button>
                                <button class="text-gray-600 hover:text-gray-900 ml-3"><i class="fas fa-print"></i></button>
                                <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-download"></i></button>
                            </td>
                        </tr>
                        <tr class="hover:bg-gray-50 transition">
                            <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">INV-2023-1244</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1402/05/11</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">شرکت داده‌پردازی نوین</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">8,750,000</td>
                            <td class="px-6 py-4 whitespace-nowrap">
                                <span class="px-3 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">در انتظار</span>
                            </td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                <button class="text-blue-600 hover:text-blue-900 ml-3"><i class="fas fa-eye"></i></button>
                                <button class="text-gray-600 hover:text-gray-900 ml-3"><i class="fas fa-print"></i></button>
                                <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-download"></i></button>
                            </td>
                        </tr>
                        <tr class="hover:bg-gray-50 transition">
                            <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">INV-2023-1243</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1402/05/10</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">شرکت رایانش ابری</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">15,200,000</td>
                            <td class="px-6 py-4 whitespace-nowrap">
                                <span class="px-3 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">تأیید شده</span>
                            </td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                <button class="text-blue-600 hover:text-blue-900 ml-3"><i class="fas fa-eye"></i></button>
                                <button class="text-gray-600 hover:text-gray-900 ml-3"><i class="fas fa-print"></i></button>
                                <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-download"></i></button>
                            </td>
                        </tr>
                        <tr class="hover:bg-gray-50 transition">
                            <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">INV-2023-1242</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1402/05/09</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">شرکت فناوری اطلاعات</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">9,800,000</td>
                            <td class="px-6 py-4 whitespace-nowrap">
                                <span class="px-3 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">خطا در ارسال</span>
                            </td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                <button class="text-blue-600 hover:text-blue-900 ml-3"><i class="fas fa-eye"></i></button>
                                <button class="text-gray-600 hover:text-gray-900 ml-3"><i class="fas fa-print"></i></button>
                                <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-download"></i></button>
                            </td>
                        </tr>
                        <tr class="hover:bg-gray-50 transition">
                            <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">INV-2023-1241</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">1402/05/08</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">شرکت نرم‌افزاری راهکار</td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">11,300,000</td>
                            <td class="px-6 py-4 whitespace-nowrap">
                                <span class="px-3 py-1 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">تأیید شده</span>
                            </td>
                            <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">
                                <button class="text-blue-600 hover:text-blue-900 ml-3"><i class="fas fa-eye"></i></button>
                                <button class="text-gray-600 hover:text-gray-900 ml-3"><i class="fas fa-print"></i></button>
                                <button class="text-gray-600 hover:text-gray-900"><i class="fas fa-download"></i></button>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            
            <div class="px-6 py-4 border-t border-gray-200 flex justify-between items-center">
                <div class="text-sm text-gray-500">نمایش 1 تا 5 از 1248 فاکتور</div>
                <div class="flex space-x-2 space-x-reverse">
                    <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-lg"><i class="fas fa-chevron-right"></i></button>
                    <button class="px-3 py-1 bg-blue-600 text-white rounded-lg">1</button>
                    <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-lg">2</button>
                    <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-lg">3</button>
                    <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-lg">...</button>
                    <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-lg">25</button>
                    <button class="px-3 py-1 bg-gray-100 text-gray-600 rounded-lg"><i class="fas fa-chevron-left"></i></button>
                </div>
            </div>
        </div>
    </div>

    <!-- Invoice Creation Modal (Hidden by default) -->
    <div class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden" id="invoiceModal">
        <div class="bg-white rounded-xl w-full max-w-4xl max-h-[90vh] overflow-y-auto">
            <div class="p-6 border-b border-gray-200 flex justify-between items-center">
                <h3 class="text-lg font-bold">صدور فاکتور جدید</h3>
                <button class="text-gray-500 hover:text-gray-700" onclick="document.getElementById('invoiceModal').classList.add('hidden')">
                    <i class="fas fa-times"></i>
                </button>
            </div>
            
            <!-- Wizard Steps -->
            <div class="px-6 py-4 border-b border-gray-200">
                <div class="flex justify-between">
                    <div class="flex flex-col items-center">
                        <div class="w-10 h-10 rounded-full bg-blue-600 text-white flex items-center justify-center mb-2">1</div>
                        <span class="text-sm font-medium">اطلاعات فروشنده</span>
                    </div>
                    <div class="flex flex-col items-center">
                        <div class="w-10 h-10 rounded-full bg-gray-200 text-gray-600 flex items-center justify-center mb-2">2</div>
                        <span class="text-sm text-gray-500">اطلاعات خریدار</span>
                    </div>
                    <div class="flex flex-col items-center">
                        <div class="w-10 h-10 rounded-full bg-gray-200 text-gray-600 flex items-center justify-center mb-2">3</div>
                        <span class="text-sm text-gray-500">اقلام فاکتور</span>
                    </div>
                    <div class="flex flex-col items-center">
                        <div class="w-10 h-10 rounded-full bg-gray-200 text-gray-600 flex items-center justify-center mb-2">4</div>
                        <span class="text-sm text-gray-500">تأیید نهایی</span>
                    </div>
                </div>
            </div>
            
            <!-- Step 1 Content -->
            <div class="p-6">
                <h4 class="font-bold mb-4">اطلاعات فروشنده</h4>
                
                <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
                    <div>
                        <label class="block text-sm font-medium text-gray-700 mb-1">شناسه ملی</label>
                        <input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent" value="10123456789" readonly>
                    </div>
                    <div>
                        <label class="block text-sm font-medium text-gray-700 mb-1">کد اقتصادی</label>
                        <input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent" value="12345678901" readonly>
                    </div>
                    <div class="md:col-span-2">
                        <label class="block text-sm font-medium text-gray-700 mb-1">نام شرکت</label>
                        <input type="text" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent" value="شرکت توسعه نرم‌افزارهای مالیاتی" readonly>
                    </div>
                </div>
                
                <div class="flex justify-end space-x-4 space-x-reverse pt-4 border-t border-gray-200">
                    <button class="px-6 py-2 bg-gray-100 text-gray-700 rounded-lg hover:bg-gray-200 transition">انصراف</button>
                    <button class="px-6 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition ripple">مرحله بعد</button>
                </div>
            </div>
        </div>
    </div>

    <script>
        // Simple GSAP animations
        document.addEventListener('DOMContentLoaded', function() {
            // Animate dashboard cards on load
            gsap.from('.card-hover', {
                duration: 0.6,
                y: 20,
                opacity: 0,
                stagger: 0.1,
                ease: "power2.out"
            });
            
            // Add ripple effect to buttons
            document.querySelectorAll('.ripple').forEach(button => {
                button.addEventListener('click', function(e) {
                    let x = e.clientX - e.target.getBoundingClientRect().left;
                    let y = e.clientY - e.target.getBoundingClientRect().top;
                    
                    let ripples = document.createElement('span');
                    ripples.style.left = x + 'px';
                    ripples.style.top = y + 'px';
                    this.appendChild(ripples);
                    
                    setTimeout(() => {
                        ripples.remove();
                    }, 1000);
                });
            });
            
            // Simulate invoice creation button click
            document.querySelectorAll('.ripple.bg-blue-600').forEach(button => {
                button.addEventListener('click', function() {
                    document.getElementById('invoiceModal').classList.remove('hidden');
                    gsap.from('#invoiceModal', {
                        duration: 0.3,
                        opacity: 0,
                        y: 20,
                        ease: "power2.out"
                    });
                });
            });
            
            // Error animation example
            setTimeout(() => {
                const errorCard = document.querySelector('.border-r-4.border-red-500');
                if (errorCard) {
                    gsap.to(errorCard, {
                        duration: 0.5,
                        x: 10,
                        repeat: 1,
                        yoyo: true,
                        ease: "power1.inOut"
                    });
                }
            }, 2000);
        });
        
        // Drag and drop functionality for invoice items
        function setupDragAndDrop() {
            const dragArea = document.querySelector('.drag-area');
            const fileInput = document.createElement('input');
            fileInput.type = 'file';
            fileInput.className = 'hidden';
            
            dragArea.addEventListener('click', () => {
                fileInput.click();
            });
            
            ['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) {
                ([...files]).forEach(uploadFile);
            }
            
            function uploadFile(file) {
                console.log('File uploaded:', file.name);
                // In a real app, you would upload the file here
            }
        }
        
        // Call setupDragAndDrop when the invoice modal is opened
        document.querySelectorAll('.ripple.bg-blue-600').forEach(button => {
            button.addEventListener('click', setupDragAndDrop);
        });
    </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=defender3/test" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>