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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ba5f92d
 
cf8a5d2
ba5f92d
 
 
 
cf8a5d2
c1c931f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cf8a5d2
ba5f92d
cf8a5d2
ba5f92d
 
 
 
5316320
ba5f92d
 
 
 
c1c931f
 
 
 
 
 
ba5f92d
 
 
c1c931f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ba5f92d
 
c1c931f
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
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
<!DOCTYPE html>
<html lang="tr">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>PencerePro - Üretim Yönetim Sistemi</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  <style>
    :root {
      --primary: #2563eb;
      --primary-dark: #1e40af;
      --secondary: #10b981;
      --danger: #ef4444;
      --warning: #f59e0b;
      --dark: #1f2937;
      --gray: #6b7280;
      --light: #f3f4f6;
      --white: #ffffff;
      --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
      --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
      --radius: 12px;
      --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      min-height: 100vh;
      color: var(--dark);
    }

    .app-container {
      display: block;
    }

    .container {
      max-width: 1400px;
      margin: 0 auto;
      padding: 20px;
    }

    header {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      padding: 20px 0;
      box-shadow: var(--shadow);
      position: sticky;
      top: 0;
      z-index: 100;
    }

    .header-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 20px;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 15px;
      font-size: 24px;
      font-weight: bold;
      color: var(--primary);
    }

    .logo i {
      font-size: 32px;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .user-info {
      display: flex;
      align-items: center;
      gap: 20px;
    }

    .user-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      color: var(--white);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
    }

    .user-details {
      display: flex;
      flex-direction: column;
    }

    .user-name {
      font-weight: 600;
      color: var(--dark);
    }

    .user-role {
      font-size: 12px;
      color: var(--gray);
    }

    .stats-bar {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 20px;
      margin: 30px 0;
    }

    .stat-card {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      padding: 20px;
      border-radius: var(--radius);
      box-shadow: var(--shadow-sm);
      transition: var(--transition);
      cursor: pointer;
    }

    .stat-card:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow);
    }

    .stat-card .icon {
      width: 50px;
      height: 50px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      margin-bottom: 15px;
    }

    .stat-card.blue .icon {
      background: rgba(37, 99, 235, 0.1);
      color: var(--primary);
    }

    .stat-card.green .icon {
      background: rgba(16, 185, 129, 0.1);
      color: var(--secondary);
    }

    .stat-card.orange .icon {
      background: rgba(245, 158, 11, 0.1);
      color: var(--warning);
    }

    .stat-card.red .icon {
      background: rgba(239, 68, 68, 0.1);
      color: var(--danger);
    }

    .stat-value {
      font-size: 28px;
      font-weight: bold;
      margin-bottom: 5px;
    }

    .stat-label {
      color: var(--gray);
      font-size: 14px;
    }

    .main-content {
      display: grid;
      grid-template-columns: 250px 1fr;
      gap: 20px;
      margin-top: 30px;
    }

    .sidebar {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      border-radius: var(--radius);
      padding: 20px;
      height: fit-content;
      position: sticky;
      top: 100px;
    }

    .nav-item {
      display: flex;
      align-items: center;
      gap: 15px;
      padding: 15px;
      border-radius: 8px;
      cursor: pointer;
      transition: var(--transition);
      margin-bottom: 10px;
      color: var(--gray);
    }

    .nav-item:hover {
      background: var(--light);
      color: var(--primary);
      transform: translateX(5px);
    }

    .nav-item.active {
      background: linear-gradient(135deg, var(--primary), var(--primary-dark));
      color: var(--white);
    }

    .content-area {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      border-radius: var(--radius);
      padding: 30px;
      min-height: 600px;
    }

    .section {
      display: none;
    }

    .section.active {
      display: block;
      animation: fadeIn 0.5s;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(20px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .section-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 30px;
      padding-bottom: 20px;
      border-bottom: 2px solid var(--light);
    }

    .section-title {
      font-size: 24px;
      font-weight: 600;
    }

    .btn-sm {
      padding: 8px 16px;
      font-size: 12px;
    }

    .btn {
      padding: 8px 16px;
      border: none;
      border-radius: 6px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--primary), var(--primary-dark));
      color: var(--white);
    }

    .btn-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
    }

    .table-container {
      overflow-x: auto;
      margin-top: 20px;
    }

    table {
      width: 100%;
      border-collapse: collapse;
    }

    th,
    td {
      padding: 15px;
      text-align: left;
      border-bottom: 1px solid var(--light);
    }

    th {
      background: var(--light);
      font-weight: 600;
      color: var(--dark);
    }

    tr:hover {
      background: rgba(37, 99, 235, 0.05);
    }

    .status-badge {
      padding: 5px 12px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
      display: inline-block;
    }

    .status-pending {
      background: rgba(245, 158, 11, 0.1);
      color: var(--warning);
    }

    .status-processing {
      background: rgba(37, 99, 235, 0.1);
      color: var(--primary);
    }

    .status-completed {
      background: rgba(16, 185, 129, 0.1);
      color: var(--secondary);
    }

    .status-active {
      background: rgba(16, 185, 129, 0.1);
      color: var(--secondary);
    }

    .status-inactive {
      background: rgba(239, 68, 68, 0.1);
      color: var(--danger);
    }

    .toast {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background: var(--dark);
      color: var(--white);
      padding: 15px 20px;
      border-radius: 8px;
      display: none;
      align-items: center;
      gap: 10px;
      animation: slideInRight 0.3s;
      z-index: 2000;
    }

    .toast.show {
      display: flex;
    }

    .toast.success {
      background: var(--secondary);
    }

    .toast.error {
      background: var(--danger);
    }

    @keyframes slideInRight {
      from {
        transform: translateX(100%);
      }

      to {
        transform: translateX(0);
      }
    }

    .built-with {
      color: var(--gray);
      font-size: 12px;
      text-decoration: none;
      transition: var(--transition);
    }

    .built-with:hover {
      color: var(--primary);
    }

    .action-btn {
      padding: 5px 10px;
      margin: 0 2px;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 12px;
      transition: var(--transition);
    }

    .action-btn.edit {
      background: var(--primary);
      color: var(--white);
    }

    .action-btn.delete {
      background: var(--danger);
      color: var(--white);
    }

    .action-btn:hover {
      opacity: 0.8;
    }

    /* Enhanced Dashboard Styles */
    .dashboard-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 20px;
      margin-top: 30px;
    }

    .dashboard-card {
      background: rgba(255, 255, 255, 0.5);
      backdrop-filter: blur(10px);
      border-radius: var(--radius);
      padding: 25px;
      transition: var(--transition);
      border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .dashboard-card:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow);
      background: rgba(255, 255, 255, 0.7);
    }

    .dashboard-card h3 {
      color: var(--primary);
      margin-bottom: 15px;
      font-size: 18px;
    }

    .dashboard-card p {
      color: var(--gray);
      line-height: 1.6;
    }

    .quick-actions {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 15px;
      margin-top: 20px;
    }

    .quick-action-btn {
      background: rgba(255, 255, 255, 0.8);
      border: 2px solid var(--primary);
      color: var(--primary);
      padding: 20px;
      border-radius: var(--radius);
      text-align: center;
      cursor: pointer;
      transition: var(--transition);
      text-decoration: none;
    }

    .quick-action-btn:hover {
      background: var(--primary);
      color: var(--white);
      transform: translateY(-3px);
      box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
    }

    .quick-action-btn i {
      font-size: 32px;
      margin-bottom: 10px;
      display: block;
    }

    .quick-action-btn span {
      font-weight: 600;
      font-size: 14px;
    }

    /* New Order Form Styles */
    .form-group {
      margin-bottom: 20px;
    }

    .form-group label {
      display: block;
      margin-bottom: 8px;
      font-weight: 500;
      color: var(--dark);
    }

    .form-control {
      width: 100%;
      padding: 12px;
      border: 2px solid var(--light);
      border-radius: 8px;
      font-size: 14px;
      transition: var(--transition);
    }

    .form-control:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

    .form-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 20px;
    }

    /* Calculator Styles */
    .calculator-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 30px;
      margin-top: 30px;
    }

    .calculator-inputs {
      background: rgba(255, 255, 255, 0.5);
      padding: 25px;
      border-radius: var(--radius);
    }

    .calculator-result {
      background: linear-gradient(135deg, var(--primary), var(--primary-dark));
      color: var(--white);
      padding: 25px;
      border-radius: var(--radius);
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .calculator-result h3 {
      margin-bottom: 20px;
      font-size: 20px;
    }

    .price-display {
      font-size: 48px;
      font-weight: bold;
      margin-bottom: 10px;
    }

    .price-details {
      font-size: 14px;
      opacity: 0.9;
    }

    @media (max-width: 768px) {
      .main-content {
        grid-template-columns: 1fr;
      }

      .sidebar {
        position: static;
        display: flex;
        overflow-x: auto;
        gap: 10px;
      }

      .nav-item {
        white-space: nowrap;
      }

      .stats-bar {
        grid-template-columns: 1fr;
      }

      .header-content {
        flex-direction: column;
        gap: 15px;
      }

      .user-info {
        width: 100%;
        justify-content: space-between;
      }

      .calculator-grid {
        grid-template-columns: 1fr;
      }

      .dashboard-grid {
        grid-template-columns: 1fr;
      }
    }
  </style>
</head>

<body>
  <!-- Main Application -->
  <div id="appContainer" class="app-container">
    <header>
      <div class="header-content">
        <div class="logo">
          <i class="fas fa-window-maximize"></i>
          <span>PencerePro</span>
        </div>
        <div class="user-info">
          <div class="user-avatar">A</div>
          <div class="user-details">
            <span class="user-name">Admin User</span>
            <span class="user-role">Yönetici</span>
          </div>
        </div>
      </div>
    </header>

    <div class="container">
      <div class="stats-bar">
        <div class="stat-card blue">
          <div class="icon">
            <i class="fas fa-clipboard-list"></i>
          </div>
          <div class="stat-value" id="totalOrders">24</div>
          <div class="stat-label">Toplam Sipariş</div>
        </div>
        <div class="stat-card green">
          <div class="icon">
            <i class="fas fa-check-circle"></i>
          </div>
          <div class="stat-value" id="completedOrders">18</div>
          <div class="stat-label">Tamamlanan</div>
        </div>
        <div class="stat-card orange">
          <div class="icon">
            <i class="fas fa-cogs"></i>
          </div>
          <div class="stat-value" id="processingOrders">4</div>
          <div class="stat-label">Üretimde</div>
        </div>
        <div class="stat-card red">
          <div class="icon">
            <i class="fas fa-exclamation-triangle"></i>
          </div>
          <div class="stat-value" id="pendingOrders">2</div>
          <div class="stat-label">Bekleyen</div>
        </div>
      </div>

      <div class="main-content">
        <aside class="sidebar">
          <nav>
            <div class="nav-item active" onclick="showSection('dashboard')">
              <i class="fas fa-tachometer-alt"></i>
              <span>Panel</span>
            </div>
            <div class="nav-item" onclick="showSection('orders')">
              <i class="fas fa-shopping-cart"></i>
              <span>Siparişler</span>
            </div>
            <div class="nav-item" onclick="showSection('newOrder')">
              <i class="fas fa-plus-circle"></i>
              <span>Yeni Sipariş</span>
            </div>
            <div class="nav-item" onclick="showSection('calculator')">
              <i class="fas fa-calculator"></i>
              <span>Hesaplama</span>
            </div>
            <div class="nav-item" onclick="showSection('production')">
              <i class="fas fa-industry"></i>
              <span>Üretim</span>
            </div>
            <div class="nav-item" onclick="showSection('materials')">
              <i class="fas fa-boxes"></i>
              <span>Malzemeler</span>
            </div>
            <div class="nav-item" onclick="showSection('reports')">
              <i class="fas fa-chart-bar"></i>
              <span>Raporlar</span>
            </div>
          </nav>
        </aside>

        <main class="content-area">
          <!-- Dashboard Section -->
          <section id="dashboard" class="section active">
            <div class="section-header">
              <h2 class="section-title">Hoş Geldiniz!</h2>
            </div>
            
            <div class="dashboard-grid">
              <div class="dashboard-card">
                <h3><i class="fas fa-chart-line"></i> İstatistikler</h3>
                <p>Bu ay 24 yeni sipariş alındı. 18 sipariş başarıyla tamamlandı. Üretim verimliliği %75 arttı.</p>
              </div>
              
              <div class="dashboard-card">
                <h3><i class="fas fa-tasks"></i> Yapılacaklar</h3>
                <p>• 3 sipariş üretimde bekliyor<br>• Malzeme stoğu kontrol edilmeli<br>• Haftalık rapor hazırlanmalı</p>
              </div>
              
              <div class="dashboard-card">
                <h3><i class="fas fa-bell"></i> Duyurular</h3>
                <p>• Yeni malzeme tedarikçisi eklendi<br>• Sistem bakımı 25.01.2024'te<br>• Kampanya: %10 indirim</p>
              </div>
            </div>

            <h3 style="margin-top: 40px; margin-bottom: 20px; color: var(--dark);">Hızlı İşlemler</h3>
            <div class="quick-actions">
              <div class="quick-action-btn" onclick="showSection('newOrder')">
                <i class="fas fa-plus"></i>
                <span>Yeni Sipariş</span>
              </div>
              <div class="quick-action-btn" onclick="showSection('calculator')">
                <i class="fas fa-calculator"></i>
                <span>Fiyat Hesapla</span>
              </div>
              <div class="quick-action-btn" onclick="showSection('production')">
                <i class="fas fa-industry"></i>
                <span>Üretim Gör</span>
              </div>
              <div class="quick-action-btn" onclick="showSection('reports')">
                <i class="fas fa-file-alt"></i>
                <span>Rapor Al</span>
              </div>
            </div>
          </section>

          <!-- Orders Section -->
          <section id="orders" class="section">
            <div class="section-header">
              <h2 class="section-title">Siparişler</h2>
            </div>
            <div class="table-container">
              <table>
                <thead>
                  <tr>
                    <th>Sipariş No</th>
                    <th>Müşteri</th>
                    <th>Pencere Tipi</th>
                    <th>Ölçüler</th>
                    <th>Tarih</th>
                    <th>Durum</th>
                    <th>İşlemler</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td>#2024001</td>
                    <td>Ahmet Yılmaz</td>
                    <td>Çift Kanatlı</td>
                    <td>120x150 cm</td>
                    <td>15.01.2024</td>
                    <td><span class="status-badge status-completed">Tamamlandı</span></td>
                    <td>
                      <button class="action-btn edit" onclick="editOrder('2024001')"><i class="fas fa-edit"></i></button>
                      <button class="action-btn delete" onclick="deleteOrder('2024001')"><i class="fas fa-trash"></i></button>
                    </td>
                  </tr>
                  <tr>
                    <td>#2024002</td>
                    <td>Ayşe Demir</td>
                    <td>Sabit</td>
                    <td>100x120 cm</td>
                    <td>16.01.2024</td>
                    <td><span class="status-badge status-processing">Üretimde</span></td>
                    <td>
                      <button class="action-btn edit" onclick="editOrder('2024002')"><i class="fas fa-edit"></i></button>
                      <button class="action-btn delete" onclick="deleteOrder('2024002')"><i class="fas fa-trash"></i></button>
                    </td>
                  </tr>
                  <tr>
                    <td>#2024003</td>
                    <td>Mehmet Kaya</td>
                    <td>Panjur</td>
                    <td>90x110 cm</td>
                    <td>17.01.2024</td>
                    <td><span class="status-badge status-pending">Beklemede</span></td>
                    <td>
                      <button class="action-btn edit" onclick="editOrder('2024003')"><i class="fas fa-edit"></i></button>
                      <button class="action-btn delete" onclick="deleteOrder('2024003')"><i class="fas fa-trash"></i></button>
                    </td>
                  </tr>
                  <tr>
                    <td>#2024004</td>
                    <td>Zeynep Ak</td>
                    <td>Çift Kanatlı</td>
                    <td>140x180 cm</td>
                    <td>18.01.2024</td>
                    <td><span class="status-badge status-processing">Üretimde</span></td>
                    <td>
                      <button class="action-btn edit" onclick="editOrder('2024004')"><i class="fas fa-edit"></i></button>
                      <button class="action-btn delete" onclick="deleteOrder('2024004')"><i class="fas fa-trash"></i></button>
                    </td>
                  </tr>
                  <tr>
                    <td>#2024005</td>
                    <td>Mustafa Çelik</td>
                    <td>Sabit</td>
                    <td>80x100 cm</td>
                    <td>19.01.2024</td>
                    <td><span class="status-badge status-pending">Beklemede</span></td>
                    <td>
                      <button class="action-btn edit" onclick="editOrder('2024005')"><i class="fas fa-edit"></i></button>
                      <button class="action-btn delete" onclick="deleteOrder('2024005')"><i class="fas fa-trash"></i></button>
                    </td>
                  </tr>
                </tbody>
              </table>
            </div>
          </section>

          <!-- New Order Section -->
          <section id="newOrder" class="section">
            <div class="section-header">
              <h2 class="section-title">Yeni Sipariş</h2>
            </div>
            <form onsubmit="saveOrder(event)">
              <div class="form-row">
                <div class="form-group">
                  <label>Müşteri Adı</label>
                  <input type="text" class="form-control" placeholder="Müşteri adı soyadı" required>
                </div>
                <div class="form-group">
                  <label>Telefon</label>
                  <input type="tel" class="form-control" placeholder="Telefon numarası" required>
                </div>
              </div>
              
              <div class="form-row">
                <div class="form-group">
                  <label>Pencere Tipi</label>
                  <select class="form-control" required>
                    <option value="">Seçiniz...</option>
                    <option value="sabit">Sabit</option>
                    <option value="tek-kanat">Tek Kanatlı</option>
                    <option value="cift-kanat">Çift Kanatlı</option>
                    <option value="panjur">Panjur</option>
                  </select>
                </div>
                <div class="form-group">
                  <label>Malzeme</label>
                  <select class="form-control" required>
                    <option value="">Seçiniz...</option>
                    <option value="pvc">PVC</option>
                    <option value="aluminyum">Alüminyum</option>
                    <option value="ahsap">Ahşap</option>
                  </select>
                </div>
              </div>
              
              <div class="form-row">
                <div class="form-group">
                  <label>Genişlik (cm)</label>
                  <input type="number" class="form-control" placeholder="Genişlik" min="10" required>
                </div>
                <div class="form-group">
                  <label>Yükseklik (cm)</label>
                  <input type="number" class="form-control" placeholder="Yükseklik" min="10" required>
                </div>
              </div>
              
              <div class="form-group">
                <label>Notlar</label>
                <textarea class="form-control" rows="3" placeholder="Ek notlar..."></textarea>
              </div>
              
              <button type="submit" class="btn btn-primary">
                <i class="fas fa-save"></i> Siparişi Kaydet
              </button>
            </form>
          </section>

          <!-- Calculator Section -->
          <section id="calculator" class="section">
            <div class="section-header">
              <h2 class="section-title">Fiyat Hesaplama</h2>
            </div>
            
            <div class="calculator-grid">
              <div class="calculator-inputs">
                <form onsubmit="calculatePrice(event)">
                  <div class="form-group">
                    <label>Pencere Tipi</label>
                    <select class="form-control" id="calcType" onchange="updatePrice()" required>
                      <option value="">Seçiniz...</option>
                      <option value="sabit">Sabit - +0%</option>
                      <option value="tek-kanat">Tek Kanatlı - +10%</option>
                      <option value="cift-kanat">Çift Kanatlı - +20%</option>
                      <option value="panjur">Panjur - +30%</option>
                    </select>
                  </div>
                  
                  <div class="form-group">
                    <label>Malzeme</label>
                    <select class="form-control" id="calcMaterial" onchange="updatePrice()" required>
                      <option value="">Seçiniz...</option>
                      <option value="pvc">PVC - 500₺/m²</option>
                      <option value="aluminyum">Alüminyum - 750₺/m²</option>
                      <option value="ahsap">Ahşap - 1000₺/m²</option>
                    </select>
                  </div>
                  
                  <div class="form-row">
                    <div class="form-group">
                      <label>Genişlik (cm)</label>
                      <input type="number" class="form-control" id="calcWidth" placeholder="Genişlik" min="10" onchange="updatePrice()" required>
                    </div>
                    <div class="form-group">
                      <label>Yükseklik (cm)</label>
                      <input type="number" class="form-control" id="calcHeight" placeholder="Yükseklik" min="10" onchange="updatePrice()" required>
                    </div>
                  </div>
                  
                  <div class="form-group">
                    <label>Ekstralar</label>
                    <div style="display: flex; gap: 15px; margin-top: 10px;">
                      <label>
                        <input type="checkbox" value="cam" onchange="updatePrice()"> 
                        Cam Film (+50₺)
                      </label>
                      <label>
                        <input type="checkbox" value="sineklik" onchange="updatePrice()"> 
                        Sineklik (+100₺)
                      </label>
                      <label>
                        <input type="checkbox" value="izolasyon" onchange="updatePrice()"> 
                        İzolasyon (+150₺)
                      </label>
                    </div>
                  </div>
                </form>
              </div>
              
              <div class="calculator-result">
                <h3>Hesaplanan Fiyat</h3>
                <div class="price-display" id="totalPrice">0 ₺</div>
                <div class="price-details" id="priceDetails">
                  Lütfen ölçüleri ve seçenekleri girin
                </div>
              </div>
            </div>
          </section>

          <!-- Production Section -->
          <section id="production" class="section">
            <div class="section-header">
              <h2 class="section-title">Üretim Takibi</h2>
            </div>
            <div class="table-container">
              <table>
                <thead>
                  <tr>
                    <th>Sipariş No</th>
                    <th>Müşteri</th>
                    <th>Operasyon</th>
                    <th>Başlangıç</th>
                    <th>Bitiş</th>
                    <th>Durum</th>
                    <th>İlerleme</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td>#2024002</td>
                    <td>Ayşe Demir</td>
                    <td>Kesim</td>
                    <td>08:00</td>
                    <td>10:30</td>
                    <td><span class="status-badge status-completed">Tamamlandı</span></td>
                    <td>100%</td>
                  </tr>
                  <tr>
                    <td>#2024004</td>
                    <td>Zeynep Ak</td>
                    <td>Montaj</td>
                    <td>11:00</td>
                    <td>Devamıyor</td>
                    <td><span class="status-badge status-processing">İşlemde</span></td>
                    <td>65%</td>
                  </tr>
                  <tr>
                    <td>#2024003</td>
                    <td>Mehmet Kaya</td>
                    <td>Bekliyor</td>
                    <td>-</td>
                    <td>-</td>
                    <td><span class="status-badge status-pending">Beklemede</span></td>
                    <td>0%</td>
                  </tr>
                </tbody>
              </table>
            </div>
          </section>

          <!-- Materials Section -->
          <section id="materials" class="section">
            <div class="section-header">
              <h2 class="section-title">Malzeme Stok</h2>
            </div>
            <div class="table-container">
              <table>
                <thead>
                  <tr>
                    <th>Malzeme</th>
                    <th>Tür</th>
                    <th>Stok Miktarı</th>
                    <th>Birim</th>
                    <th>Kritik Seviye</th>
                    <th>Son Güncelleme</th>
                    <th>Durum</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td>PVC Profil</td>
                    <td>Çerçeve</td>
                    <td>450</td>
                    <td>Metre</td>
                    <td>200</td>
                    <td>20.01.2024</td>
                    <td><span class="status-badge status-active">Stokta</span></td>
                  </tr>
                  <tr>
                    <td>Cam</td>
                    <td>4mm</td>
                    <td>120</td>
                    <td></td>
                    <td>50</td>
                    <td>19.01.2024</td>
                    <td><span class="status-badge status-active">Stokta</span></td>
                  </tr>
                  <tr>
                    <td>Kilit Mekanizma</td>
                    <td>Standart</td>
                    <td>35</td>
                    <td>Adet</td>
                    <td>30</td>
                    <td>18.01.2024</td>
                    <td><span class="status-badge status-pending">Düşük Stok</span></td>
                  </tr>
                  <tr>
                    <td>Conta</td>
                    <td>Siyah</td>
                    <td>850</td>
                    <td>Metre</td>
                    <td>100</td>
                    <td>20.01.2024</td>
                    <td><span class="status-badge status-active">Stokta</span></td>
                  </tr>
                </tbody>
              </table>
            </