File size: 16,723 Bytes
7ee770d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ab23288
7ee770d
 
 
 
 
 
 
ab23288
7ee770d
 
 
 
 
 
ab23288
7ee770d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
eaf93e9
7ee770d
 
 
 
 
 
ab23288
 
7ee770d
ab23288
7ee770d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ab23288
7ee770d
ab23288
7ee770d
 
 
 
 
 
ab23288
 
 
 
 
 
 
7ee770d
ab23288
7ee770d
ab23288
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
eaf93e9
c7202d5
 
 
eaf93e9
b7d3596
eaf93e9
92f5e1f
 
 
a6599cc
 
 
ab23288
 
eaf93e9
a6599cc
 
 
 
 
92f5e1f
 
eaf93e9
c7202d5
a6599cc
 
 
92f5e1f
ab23288
c7202d5
a6599cc
 
 
92f5e1f
 
eaf93e9
c7202d5
a6599cc
 
 
92f5e1f
eaf93e9
c7202d5
92f5e1f
 
 
 
eaf93e9
 
a6599cc
 
ab23288
 
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
:root {
    --primary: #3b82f6;        
    --primary-hover: #2563eb;
    --primary-text: #ffffff; 
    --secondary: #eaedf2;      
    --bg-body: #0d0f12;        
    --bg-card: #161b22;        
    --bg-input: #0d0f12;       
    --bg-hover: rgba(255,255,255,0.05);
    --text-main: #f0f9ff;      
    --text-muted: #94a3b8;     
    --border-color: #30363d;   
    --danger-text: #f87171;
    --danger-bg: rgba(248, 113, 113, 0.15);
    --success-bg: rgba(34, 197, 94, 0.2);  --success-text: #4ade80;
    --warning-bg: rgba(245, 158, 11, 0.2); --warning-text: #fbbf24;
    --info-bg: rgba(59, 130, 246, 0.2);    --info-text: #60a5fa;
    --confirmed-bg: rgba(139, 92, 246, 0.15);
    --confirmed-text: #a78bfa;

    --header-height: 70px;     
    --sidebar-width: 240px; 
}

html.light-mode, body.light-mode {
    --primary: #2563eb; --primary-hover: #1d4ed8; --primary-text: #ffffff; 
    --secondary: #475569; --bg-body: #f0f4f8; --bg-card: #ffffff; 
    --bg-input: #ffffff; --bg-hover: #e2e8f0; --text-main: #0f172a; 
    --text-muted: #64748b; --border-color: #cbd5e1;   
    --success-bg: #dcfce7; --success-text: #166534; --warning-bg: #fef3c7; 
    --warning-text: #92400e; --danger-bg: #fee2e2; --danger-text: #b91c1c; 
    --info-bg: #dbeafe; --info-text: #1e40af;
    --confirmed-bg: #f3e8ff;
    --confirmed-text: #7e22ce;
}

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

html, body {
    font-family: 'Cairo', sans-serif; background-color: var(--bg-body);
    color: var(--text-main); height: 100vh; overflow: hidden;
    transition: background-color 0.3s ease, color 0.3s ease; direction: rtl;
}

.dashboard-container { display: flex; height: 100%; width: 100%; flex-direction: row-reverse !important; }

/* السايد بار */
.sidebar { 
    width: var(--sidebar-width); 
    background: var(--bg-card); 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    border-right: 1px solid var(--border-color); 
    border-left: none; 
    transition: margin-left 0.3s ease, left 0.3s ease;
    z-index: 1000; 
    margin-left: 0; 
}

.sidebar.hidden { margin-left: calc(var(--sidebar-width) * -1) !important; }

.sidebar-header { height: var(--header-height); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--border-color); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 45px; height: 45px; object-fit: contain; }
.brand h2 { margin: 0; font-size: 1.25rem; color: var(--text-main); font-weight: 700; letter-spacing: 0.5px;}

.close-sidebar-btn { display: block !important; cursor: pointer; color: var(--text-muted); font-size: 1.4rem; transition: 0.2s; }
.close-sidebar-btn:hover { color: var(--danger-text); }

.sidebar-nav { flex: 1; padding: 24px 16px; overflow-y: auto; }
.sidebar-nav ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
.nav-item { padding: 12px 16px; display: flex; align-items: center; gap: 12px; cursor: pointer; color: var(--text-muted); font-weight: 600; font-size: 0.95rem; border-radius: 8px; transition: 0.2s; }
.nav-item:hover { background: var(--bg-hover); color: var(--primary); }
.nav-item.active { background: rgba(59, 130, 246, 0.15); color: var(--primary); border-right: 4px solid var(--primary); }
html.light-mode .nav-item.active, body.light-mode .nav-item.active { background: #eff6ff; color: var(--primary); border-right: 4px solid var(--primary); }

.sidebar-footer { padding: 20px 24px; border-top: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.user-profile { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; background: var(--primary); color: var(--primary-text); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.1rem; }
.info { display: flex; flex-direction: column; font-size: 0.85rem; }
.info span { font-weight: 700; color: var(--text-main); }
.info small { color: var(--text-muted); }
.logout-icon { color: var(--danger-text); cursor: pointer; font-size: 1.2rem; transition: 0.2s; }

.main-content { flex: 1; display: flex; flex-direction: column; width: 100%; position: relative; background: var(--bg-body); transition: 0.3s ease; }

.top-header { height: var(--header-height); background: var(--bg-card); display: flex; align-items: center; justify-content: space-between; padding: 0 32px; border-bottom: 1px solid var(--border-color); transition: 0.3s ease; flex-direction: row-reverse; }
.header-left { display: flex; align-items: center; gap: 15px; flex-direction: row-reverse; }

.menu-btn { display: block !important; background: none; border: none; font-size: 1.4rem; color: var(--text-muted); cursor: pointer; }
.date-display { background: var(--bg-hover); padding: 6px 16px; border-radius: 20px; color: var(--primary); border: 1px solid var(--border-color); font-size: 0.85rem; font-weight: 600; }
.content-scrollable { flex: 1; overflow-y: auto; padding: 32px; direction: rtl;}

#theme-toggle { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-muted); border-radius: 50%; width: 35px; height: 35px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
html.light-mode #theme-toggle, body.light-mode #theme-toggle { color: #f59e0b; background: #ffffff; border-color: #cbd5e1; }

/* الداشبورد */
.stats-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin-bottom: 24px; }
.stat-card { background: var(--bg-card); padding: 18px; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--border-color); transition: 0.3s ease; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.stat-info span { color: var(--text-muted); font-size: 0.8rem; font-weight: 600; }
.stat-info h3 { margin: 2px 0 0; font-size: 1.3rem; color: var(--text-main); }
.icon-box { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.blue { background: var(--info-bg); color: var(--info-text); }
.purple { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
html.light-mode .purple, body.light-mode .purple { background: #f3e8ff; color: #7e22ce; }
.green { background: var(--success-bg); color: var(--success-text); }
.orange { background: var(--warning-bg); color: var(--warning-text); }
.blue-light { background: var(--info-bg); color: var(--info-text); }

.tabs-nav { display: flex; gap: 10px; margin-bottom: 20px; }
.tab-btn { padding: 8px 20px; border: 1px solid var(--border-color); background: var(--bg-card); border-radius: 25px; cursor: pointer; color: var(--text-muted); font-size: 0.85rem; font-weight: 600; transition: 0.2s; }
.tab-btn.active { background: var(--primary); color: var(--primary-text); box-shadow: 0 0 10px rgba(59, 130, 246, 0.3); border-color: var(--primary); }
.orders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; padding-bottom: 40px; }
.order-card { background: var(--bg-card); border-radius: 14px; padding: 15px; border: 1px solid var(--border-color); height: 420px; display: flex; flex-direction: column; transition: 0.3s ease; }
.order-card h4 { font-size: 1.05rem; margin: 8px 0; color: var(--primary); }
.order-items-wrapper { flex: 1; overflow-y: auto; margin: 10px 0; padding-left: 8px; font-size: 0.85rem; color: var(--text-main); }
.order-actions-area { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border-color); }
.action-btn { width: 100%; padding: 10px; border: none; border-radius: 8px; font-size: 0.85rem; cursor: pointer; margin-top: 6px; font-weight: 700; transition: 0.2s; }
.confirm { background: #10b981; color: #ffffff; } 
.pay { background: #3b82f6; color: #ffffff; }
.badge-type { padding: 3px 8px; border-radius: 6px; font-size: 0.7rem; font-weight: bold; text-transform: uppercase; }
.dine-badge { background: var(--info-bg); color: var(--info-text); border: 1px solid var(--info-text); }
.take-badge { background: var(--warning-bg); color: var(--warning-text); border: 1px solid var(--warning-text); }
.res-badge { background: rgba(167, 139, 250, 0.15); color: #8b5cf6; border: 1px solid #8b5cf6; }
.cancel-sm-btn { background: transparent !important; border: 1px solid var(--danger-text) !important; color: var(--danger-text) !important; transition: 0.2s; }
.cancel-sm-btn:hover { background: var(--danger-bg) !important; }

/* المودال */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); justify-content: center; align-items: center; z-index: 2000; direction: rtl; }
.modal-content { background: var(--bg-card); padding: 24px; border-radius: 16px; width: 90%; max-width: 420px; border: 1px solid var(--border-color); }
.modal-actions { display: flex; gap: 12px; margin-top: 24px; }
.confirm-btn { flex: 2; background: var(--primary); color: var(--primary-text); border: none; padding: 12px; border-radius: 10px; font-weight: 800; cursor: pointer; transition: 0.2s; }
.cancel-btn { flex: 1; background: transparent; color: var(--text-muted); border: 1px solid var(--border-color); padding: 12px; border-radius: 10px; font-weight: 700; cursor: pointer; transition: 0.2s; }
.cancel-btn:hover { background-color: var(--danger-bg); color: var(--danger-text); border-color: var(--danger-text); }

/* =========================================
   الريسبونسيف (Responsive Media Queries) 
   ========================================= */
@media (max-width: 1200px) { .stats-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 992px) { .stats-row { grid-template-columns: repeat(2, 1fr); } .stats-row .stat-card:last-child { grid-column: span 2; } }
@media (max-width: 768px) {
    .sidebar { position: fixed; left: -100%; top: 0; border-right: 1px solid var(--border-color); border-left: none; box-shadow: 10px 0 20px rgba(0,0,0,0.5); z-index: 9999; }
    .sidebar.active { left: 0; margin-left: 0 !important; }
    .top-header { padding: 0 15px; }
    .content-scrollable { padding: 15px; }
    .stats-row { gap: 10px; }
    .orders-grid { grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)); }
    .order-card { height: auto; min-height: 400px; }
    .brand h2 { font-size: 1.1rem; }
}
@media (max-width: 480px) { 
    .stats-row { grid-template-columns: 1fr; } 
    .stats-row .stat-card:last-child { grid-column: span 1; } 
    .date-display { display: none; } 
    .tabs-nav { flex-wrap: wrap; justify-content: center; }
    .tab-btn { flex: 1; min-width: 140px; text-align: center; }
    .modal-content { padding: 15px; width: 95%; }
    .modal-actions { flex-direction: column; gap: 8px; }
    .confirm-btn, .cancel-btn { width: 100%; flex: none; }
}

/* =========================================
   تأثير التدرج (Gradient) 
   ========================================= */
:root {
    --mint-gradient: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    --mint-gradient-hover: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    --card-gradient: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
}
.tab-btn.active { background: var(--mint-gradient) !important; color: #FFFFFF !important; border-color: transparent !important; box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3) !important; }
.action-btn.confirm, .action-btn.pay, .confirm-btn { background: var(--mint-gradient) !important; color: #FFFFFF !important; border: none !important; transition: all 0.3s ease !important; }
.action-btn.confirm:hover, .action-btn.pay:hover, .confirm-btn:hover { background: var(--mint-gradient-hover) !important; transform: translateY(-2px) !important; box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4) !important; }
.sidebar-nav .nav-item.active { background: rgba(59, 130, 246, 0.15) !important; color: #3b82f6 !important; border-right: 4px solid #3b82f6 !important; }
.order-card, .stat-card, .table-wrapper, .card, .table-modal-content { background: var(--card-gradient) !important; border: 1px solid #334155 !important; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4) !important; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.order-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6) !important; border-color: #3b82f6 !important; }
.stat-card:hover { transform: translateY(-3px) !important; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5) !important; border-color: #3b82f6 !important; }

/* تلوين أزرار الحالات */
:root {
    --gradient-new: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    --gradient-confirmed: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);
    --gradient-preparing: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
    --gradient-ready: linear-gradient(135deg, #4ade80 0%, #166534 100%);
    --gradient-payment: linear-gradient(135deg, #1e40af 0%, #0c1c4e 100%);
    --gradient-completed: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}
.action-btn.confirm { background: var(--gradient-new) !important; }
.action-btn.confirm:hover { background: var(--gradient-confirmed) !important; box-shadow: 0 6px 15px rgba(167, 139, 250, 0.4) !important; }
.action-btn.pay[style*="info-text"] { background: var(--gradient-confirmed) !important; }
.action-btn.pay[style*="info-text"]:hover { background: var(--gradient-preparing) !important; box-shadow: 0 6px 15px rgba(251, 191, 36, 0.4) !important; }
.action-btn.pay[style*="success-text"] { background: var(--gradient-preparing) !important; }
.action-btn.pay[style*="success-text"]:hover { background: var(--gradient-ready) !important; box-shadow: 0 6px 15px rgba(74, 222, 128, 0.4) !important; }
.action-btn.pay[style*="primary"] { background: var(--gradient-ready) !important; }
.action-btn.pay[style*="primary"]:hover { background: var(--gradient-payment) !important; box-shadow: 0 6px 15px rgba(30, 64, 175, 0.4) !important; }
.confirm-btn { background: var(--gradient-payment) !important; }
.confirm-btn:hover { background: var(--gradient-completed) !important; box-shadow: 0 6px 15px rgba(96, 165, 250, 0.4) !important; }

/* اللايت مود */
html.light-mode, body.light-mode { --card-gradient: linear-gradient(145deg, #ffffff 0%, #cbd5e1 100%); --dynamic-border: #94a3b8; }
html.light-mode .order-card, html.light-mode .stat-card, html.light-mode .table-wrapper { box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important; }
html.light-mode .order-card:hover, html.light-mode .stat-card:hover { border-color: #3b82f6 !important; box-shadow: 0 10px 20px rgba(59, 130, 246, 0.15) !important; }

/* =========================================
   تخصيص الـ Scrollbar (شريط التمرير)
   ========================================= */
/* =========================================
   تخصيص الـ Scrollbar (شريط التمرير)
   ========================================= */
/* =========================================
   تخصيص الـ Scrollbar (شريط التمرير) للسيستم كله
   ========================================= */
/* =========================================
   تخصيص الـ Scrollbar (شريط التمرير) للسيستم كله
   ========================================= */
:root { color-scheme: dark; }
html.light-mode, body.light-mode { color-scheme: light; }

/* ستايل موحد وإجباري لكل العناصر (بدون display: block اللي بتبوظه) */
*::-webkit-scrollbar,
.content-scrollable::-webkit-scrollbar,
.sidebar-nav::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
    width: 6px !important;
    height: 6px !important;
}

*::-webkit-scrollbar-track,
.content-scrollable::-webkit-scrollbar-track,
.sidebar-nav::-webkit-scrollbar-track {
    background: transparent !important;
}

*::-webkit-scrollbar-thumb,
.content-scrollable::-webkit-scrollbar-thumb,
.sidebar-nav::-webkit-scrollbar-thumb {
    background: #475569 !important;
    border-radius: 10px !important;
}

*::-webkit-scrollbar-thumb:hover,
.content-scrollable::-webkit-scrollbar-thumb:hover,
.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: var(--primary) !important;
}

/* دعم لمتصفح فايرفوكس */
* {
    scrollbar-width: thin !important;
    scrollbar-color: #475569 transparent !important;
}

/* السكرول الرفيع لكارت الأوردر */
.order-items-wrapper::-webkit-scrollbar { width: 4px !important; }
.order-items-wrapper::-webkit-scrollbar-track { background: transparent !important; }
.order-items-wrapper::-webkit-scrollbar-thumb { background: var(--border-color) !important; border-radius: 10px !important; }