abualzait commited on
Commit
ef2c3c7
·
verified ·
1 Parent(s): bd6959f

Upload folder using huggingface_hub

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
.dockerignore ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .git
2
+ __pycache__
3
+ *.pyc
4
+ scratch/
5
+ tiles/
6
+ *.db
7
+ .env
8
+ .vscode/
9
+ council-report-*.html
10
+ council-transcript-*.md
11
+ download_amman_tiles.py
12
+ extract_data.py
13
+ test.html
14
+ test_overpass.js
15
+ Amman_Police_Stations_Data.csv
.env.example ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ MAT_ENV=production
2
+ MAT_PORT=5001
3
+ MAT_HOST=0.0.0.0
4
+ MAT_DB_PATH=complaints.db
5
+ MAT_API_PREFIX=/api/v1/mat
6
+ MAT_SECRET_KEY=mat_secret_key_change_in_production
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ amman_logo.png filter=lfs diff=lfs merge=lfs -text
.gitignore ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Environment variables (contains secrets)
2
+ .env
3
+
4
+ # Database files
5
+ *.db
6
+
7
+ # Python cache
8
+ __pycache__/
9
+ *.py[cod]
10
+ *$py.class
11
+
12
+ # Map tiles (too large for GitHub ~50MB)
13
+ tiles/
14
+
15
+ # IDE settings
16
+ .vscode/
17
+
18
+ # Scratch/test files
19
+ scratch/
20
+
21
+ # OS files
22
+ Thumbs.db
23
+ .DS_Store
.nojekyll ADDED
@@ -0,0 +1 @@
 
 
1
+ # Disable Jekyll processing on GitHub Pages
.vscode/launch.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ // Use IntelliSense to learn about possible attributes.
3
+ // Hover to view descriptions of existing attributes.
4
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
+ "version": "0.2.0",
6
+ "configurations": [
7
+ {
8
+ "type": "chrome",
9
+ "request": "launch",
10
+ "name": "Launch Chrome against localhost",
11
+ "url": "http://localhost:8080",
12
+ "webRoot": "${workspaceFolder}"
13
+ }
14
+ ]
15
+ }
Amman_Police_Stations_Data.csv ADDED
@@ -0,0 +1,567 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ اسم المنطقة/الحي,لواء (متصرفية),مديرية الشرطة,مركز الأمن العام الأقرب,العنوان التقريبي,خط العرض,خط الطول
2
+ أبو السوس,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,أبو السوس,31.9183,35.7834
3
+ أبو حامد,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,أبو حامد,32.1018,35.8845
4
+ أبو صوانة,لواء سحاب,مديرية شرطة شرق عمان,مركز أمن سحاب,أبو صوانة,31.8808,35.9831
5
+ أبو نصير,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,أبو نصير,32.0540,35.8730
6
+ أدبيان,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,أدبيان,31.8425,35.8557
7
+ أم أذينة,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,أم أذينة,31.9450,35.8580
8
+ أم الأسود,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن تلاع العلي,أم الأسود,31.9766,35.7873
9
+ أم البرك,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,أم البرك,31.8167,35.8667
10
+ أم البساتين,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,أم البساتين,31.8850,35.8000
11
+ أم الحيران,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن الجويدة,أم الحيران,31.9073,35.9392
12
+ أم الرصاص,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,أم الرصاص,31.5008,35.9160
13
+ أم السماق,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن تلاع العلي,أم السماق,31.9833,35.8500
14
+ أم السومق,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن تلاع العلي,أم السومق,31.9830,35.8530
15
+ أم العمد,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,أم العمد,31.7833,35.9000
16
+ أم القنافذ,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,أم القنافذ,31.8333,35.8333
17
+ أم الكندم,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن مرج الحمام,أم الكندم,31.8500,35.8833
18
+ أم تل,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,أم تل,32.1167,35.8333
19
+ أم جريسات,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,أم جريسات,31.7117,35.7322
20
+ أم جوزة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,أم جوزة,32.1085,35.7514
21
+ أم حجير,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,أم حجير,32.0453,35.8882
22
+ أم رمانة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن شفا بدران,أم رمانة,32.1000,35.9333
23
+ أم زويتينة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,أم زويتينة,32.0333,35.8833
24
+ أم قصير,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن المقابلين,أم قصير,31.9125,35.9180
25
+ أم نوارة,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,أم نوارة,31.9337,35.8000
26
+ ابن سينا,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,ابن سينا,32.0821,36.1021
27
+ ابو الريغان,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن شفا بدران,ابو الريغان,32.1179,36.0507
28
+ ابو القرام,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن شفا بدران,ابو القرام,32.0632,35.9044
29
+ ابو القيقب,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,ابو القيقب,32.0407,35.7002
30
+ ابو طاره,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,ابو طاره,32.0367,35.7839
31
+ ابو عبيدة,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,ابو عبيدة,31.7080,35.7933
32
+ ابو علندا,لواء القويسمة,مديرية شرطة شرق عمان,مركز أمن القويسمة,ابو علندا,31.9027,35.9687
33
+ ابو عليا,لواء ماركا,مديرية شرطة شمال عمان,مركز أمن طارق,ابو عليا,32.0046,35.9585
34
+ اسكان الجمارك,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,اسكان الجمارك,32.0450,35.7883
35
+ اسكان المهندسين,لواء الجامعة,مديرية شرط�� شمال عمان,مركز أمن صويلح,اسكان المهندسين,32.0487,35.7372
36
+ اسكان ماركا الجديد,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,اسكان ماركا الجديد,31.9843,36.0203
37
+ اسكان ماركا القديم,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,اسكان ماركا القديم,31.9887,36.0238
38
+ الأخضر,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن المهاجرين,الأخضر,31.9368,35.9138
39
+ الأشرفية,لواء قصبة عمان,مديرية شرطة شرق عمان,مركز أمن الأشرفية,الأشرفية,31.9380,35.9380
40
+ الأمير الحسن,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن النصر,الأمير الحسن,31.9588,35.9728
41
+ الأمير حسن,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن النزهة,الأمير حسن,31.9750,35.9450
42
+ الأميرة عالية,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن النصر,الأميرة عالية,31.9415,35.9773
43
+ الاحسان,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن الجويدة,الاحسان,31.8648,35.9502
44
+ الاسكان,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,الاسكان,32.0876,36.1054
45
+ الامانة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,الامانة,32.0625,35.8745
46
+ الامير الحسين بن عبدالله,لواء ماركا,مديرية شرطة شمال عمان,مركز أمن طارق,الامير الحسين بن عبدالله,32.0201,35.9360
47
+ الامير حمزه,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,الامير حمزه,32.0557,36.0712
48
+ الامير محمد,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,الامير محمد,32.0798,36.0934
49
+ الاميرة هيا,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,الاميرة هيا,32.0688,36.0432
50
+ الاندلس,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,الاندلس,31.7042,35.7893
51
+ الايمان,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن الجويدة,الايمان,31.8729,35.9450
52
+ البتراوي,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,البتراوي,32.0955,36.0877
53
+ البجيع,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,البجيع,31.9534,35.7442
54
+ البحاث الجنوبي,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,البحاث الجنوبي,31.9000,35.8000
55
+ البحيرة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,البحيرة,32.0552,35.7274
56
+ البسالة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,البسالة,32.0543,35.8802
57
+ البشائر,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,البشائر,32.0133,35.8491
58
+ البصة,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,البصة,31.9333,35.7833
59
+ البقعان,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,البقعان,32.0596,35.7375
60
+ البقعة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,البقعة,32.0725,35.8447
61
+ البقورية,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,البقورية,31.9804,35.7269
62
+ البلد,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن المدينة,البلد,31.9502,35.9354
63
+ البلدية,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,البلدية,32.0245,35.8651
64
+ البنيات الجنوبية,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن مرج الحمام,البنيات الجنوبية,31.8833,35.8833
65
+ البنيات الشمالي,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن مرج الحمام,البنيات الشمالي,31.8916,35.8868
66
+ البيادر,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,البيادر,31.9468,35.8388
67
+ البيرة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن شفا بدران,البيرة,32.1618,36.0048
68
+ التطوير الحضري,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,التطوير الحضري,31.9888,36.0189
69
+ التقوى,لواء سحاب,مديرية شرطة شرق عمان,مركز أمن سحاب,التقوى,31.8681,35.9714
70
+ التلاع الشرقي,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن ضاحية الرشيد,التلاع الشرقي,31.9834,35.8773
71
+ التلاع الشمالي,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن تلاع العلي,التلاع الشمالي,31.9986,35.8654
72
+ التنيب,لواء سحاب,مديرية شرطة شرق عمان,مركز أمن سحاب,التنيب,31.8000,35.9500
73
+ الثغرة,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,الثغرة,31.9504,35.7173
74
+ الجاردنز,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن ضاحية الرشيد,الجاردنز,31.9853,35.8807
75
+ الجامعة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن ضاحية الرشيد,الجامعة,32.0120,35.8730
76
+ الجبر,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,الجبر,32.0690,36.0518
77
+ الجبل الأبيض,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,الجبل الأبيض,32.0524,36.0783
78
+ الجبل الشمالي,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,الجبل الشمالي,32.0289,36.0406
79
+ الجبيل,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,الجبيل,31.9775,35.7437
80
+ الجبيهة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن ضاحية الرشيد,الجبيهة,32.0189,35.8819
81
+ الجندويل,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,الجندويل,31.9607,35.8406
82
+ الجندي,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,الجندي,32.0264,36.0809
83
+ الجويدة,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن الجويدة,الجويدة,31.8980,35.9450
84
+ الجيزة,لواء سحاب,مديرية شرطة شرق عمان,مركز أمن سحاب,الجيزة,31.7000,35.9500
85
+ الحديقة,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,الحديقة,32.0599,36.0858
86
+ الحرية,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن مرج الحمام,الحرية,31.9000,35.8833
87
+ الحسنية,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن المقابلين,الحسنية,31.9065,35.8972
88
+ الحمد,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,الحمد,31.7185,35.8031
89
+ الحمر,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,الحمر,32.0167,35.8167
90
+ الحمرانية,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن المقابلين,الحمرانية,31.9202,35.9027
91
+ الحمزة,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن المقابلين,الحمزة,31.9200,35.8950
92
+ الحمزة الشرقية,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,الحمزة الشرقية,31.9480,35.8640
93
+ الحواسية,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,الحواسية,31.8167,35.8500
94
+ الحويج,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,الحويج,31.9572,35.7225
95
+ الخالدين,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,الخالدين,32.0011,35.8481
96
+ الخضر,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,الخضر,32.0403,35.7275
97
+ الخضراء,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,الخضراء,31.7881,35.8743
98
+ الخلفاء,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,الخلفاء,31.7192,35.7868
99
+ الدباب,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,الدباب,32.1482,35.7005
100
+ الدهامشة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,الدهامشة,32.1483,35.8803
101
+ الدوار الأول,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن المهاجرين,الدوار الأول,31.9507,35.9230
102
+ الدوار الثالث,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن زهران,الدوار الثالث,31.9540,35.9106
103
+ الدوار الثامن,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,الدوار الثامن,31.9564,35.8472
104
+ الدوار الثاني,لواء قصبة عمان,مديرية شرطة وسط ��مان,مركز أمن زهران,الدوار الثاني,31.9515,35.9157
105
+ الدوار الخامس,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن زهران,الدوار الخامس,31.9607,35.8805
106
+ الدوار الرابع,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن زهران,الدوار الرابع,31.9560,35.8962
107
+ الدوار السابع,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن تلاع العلي,الدوار السابع,31.9593,35.8576
108
+ الدويك,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,الدويك,32.0469,36.0565
109
+ الذراع,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن المهاجرين,الذراع,31.9319,35.9163
110
+ الرابية,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن زهران,الرابية,31.9670,35.8780
111
+ الراية,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,الراية,32.1626,35.8818
112
+ الرباحية,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن تلاع العلي,الرباحية,31.9737,35.8141
113
+ الربوة,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن النصر,الربوة,31.9496,35.9869
114
+ الرجيب,لواء سحاب,مديرية شرطة شرق عمان,مركز أمن سحاب,الرجيب,31.8995,35.9841
115
+ الرحمانية,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,الرحمانية,32.0116,35.8327
116
+ الرحيل,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن شفا بدران,الرحيل,32.1300,36.0441
117
+ الرشاد,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,الرشاد,31.7388,35.7987
118
+ الرشيد,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن ضاحية الرشيد,الرشيد,31.9970,35.8926
119
+ الرقيم,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن الجويدة,الرقيم,31.8980,35.9680
120
+ الرمان,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,الرمان,32.1650,35.8336
121
+ الرميمين,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,الرميمين,32.1069,35.8017
122
+ الروابي,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن تلاع العلي,الروابي,31.9657,35.8558
123
+ الروضة,لواء قصبة عمان,مديرية شرطة جنوب عمان,مركز أمن جبل الزهور,الروضة,31.9156,35.9210
124
+ الروضة ناعور,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,الروضة ناعور,31.8220,35.8269
125
+ الرونق,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,الرونق,31.9499,35.8404
126
+ الرياض,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن شفا بدران,الرياض,32.0930,35.9953
127
+ الزرقاء الجديدة,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,الزرقاء الجديدة,32.0881,36.0964
128
+ الزهراء,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,الزهراء,31.9808,35.9980
129
+ الزهور,لواء قصبة عمان,مديرية شرطة جنوب عمان,مركز أمن جبل الزهور,الزهور,31.9204,35.9235
130
+ الزواهرة,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,الزواهرة,32.0653,36.0690
131
+ الزيتونة,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,الزيتونة,31.7256,35.8073
132
+ السامك,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,السامك,31.8000,35.8500
133
+ السخنة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن شفا بدران,السخنة,32.1308,36.0695
134
+ السعادة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,السعادة,32.0649,35.8818
135
+ السلالم,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,السلالم,32.0372,35.7364
136
+ السلط,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,السلط,32.0353,35.7236
137
+ السليحي,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,السليحي,32.1228,35.8311
138
+ السهل,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,السهل,31.9557,35.8539
139
+ الشفا السلط,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,الشفا السلط,32.0473,35.7599
140
+ الشفتة,��واء سحاب,مديرية شرطة شرق عمان,مركز أمن سحاب,الشفتة,31.7833,35.9667
141
+ الشميساني,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن الشميساني,الشميساني,31.9680,35.9050
142
+ الشهيد الجنوبي,لواء قصبة عمان,مديرية شرطة شمال عمان,مركز أمن الهاشمي,الشهيد الجنوبي,31.9865,35.9578
143
+ الشهيد الشمالي,لواء ماركا,مديرية شرطة شمال عمان,مركز أمن طارق,الشهيد الشمالي,31.9920,35.9563
144
+ الشيوخ,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,الشيوخ,32.0792,36.1006
145
+ الصالحين,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن تلاع العلي,الصالحين,31.9886,35.8548
146
+ الصانع,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,الصانع,31.9300,35.8700
147
+ الصبيحي,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,الصبيحي,32.1544,35.7009
148
+ الصحابة,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن مرج الحمام,الصحابة,31.9078,35.8751
149
+ الصديق,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن ضاحية الرشيد,الصديق,32.0118,35.8881
150
+ الصلاحية,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,الصلاحية,31.7167,35.9222
151
+ الصناعة,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,الصناعة,31.9397,35.8425
152
+ الصويفية,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن تلاع العلي,الصويفية,31.9584,35.8639
153
+ الصيوانية,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,الصيوانية,32.0630,35.7206
154
+ الضياء,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,الضياء,32.0751,35.8827
155
+ الطيبة وخريبة السوق,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن الجويدة,الطيبة وخريبة السوق,31.8705,35.9250
156
+ الظهير,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,الظهير,31.9163,35.8533
157
+ العال,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,العال,31.8167,35.8333
158
+ العبدلي,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن الشميساني,العبدلي,31.9630,35.9050
159
+ العدسية,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,العدسية,31.8529,35.7502
160
+ العدلية,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن الحسين,العدلية,31.9587,35.9281
161
+ العروبة,لواء القويسمة,مديرية شرطة شرق عمان,مركز أمن القويسمة,العروبة,31.9211,35.9747
162
+ العريش,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,العريش,31.7830,35.7815
163
+ العقربي,لواء قصبة عمان,مديرية شرطة جنوب عمان,مركز أمن جبل الزهور,العقربي,31.9150,35.9200
164
+ العلالي,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,العلالي,32.0007,35.7716
165
+ العلماء,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,العلماء,31.7058,35.7835
166
+ العوده,لواء قصبة عمان,مديرية شرطة شرق عمان,مركز أمن الأشرفية,العوده,31.9309,35.9413
167
+ الغابة,لواء ماركا,مديرية شرطة شمال عمان,مركز أمن طارق,الغابة,32.0140,35.9518
168
+ الغبية,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,الغبية,31.8017,35.8801
169
+ الفاروق,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,الفاروق,32.0584,35.8875
170
+ الفحيص,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,الفحيص,32.0097,35.7690
171
+ الفخيرة,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,الفخيرة,31.9200,35.8050
172
+ الفرزة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,الفرزة,32.0433,35.7523
173
+ الفرقان,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن المقابلين,الفرقان,31.8805,35.8945
174
+ الفضيلة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,الفضيلة,32.0199,35.8542
175
+ الفقيعات,لواء الجامعة,مديرية شرطة شمال عمان,مرك�� أمن صويلح,الفقيعات,32.0150,35.8650
176
+ الفيصل,لواء ماركا,مديرية شرطة شمال عمان,مركز أمن طارق,الفيصل,32.0106,35.9709
177
+ الفيصلية,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,الفيصلية,31.7552,35.7651
178
+ القسارية,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن الجويدة,القسارية,31.8750,35.9250
179
+ القصطل,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,القصطل,31.7500,35.9333
180
+ القصور,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن المدينة,القصور,31.9595,35.9376
181
+ القويجية,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,القويجية,31.7331,35.7419
182
+ القويسمة,لواء القويسمة,مديرية شرطة شرق عمان,مركز أمن القويسمة,القويسمة,31.9180,35.9650
183
+ الكمالية,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,الكمالية,32.0294,35.8260
184
+ الكمشة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,الكمشة,32.1231,35.9053
185
+ الكوم الشرقي,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن شفا بدران,الكوم الشرقي,32.0378,35.9543
186
+ الكوم الغربي,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن شفا بدران,الكوم الغربي,32.0334,35.9316
187
+ اللبن,لواء سحاب,مديرية شرطة شرق عمان,مركز أمن سحاب,اللبن,31.8240,35.9617
188
+ اللويبدة,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن الحسين,اللويبدة,31.9560,35.9180
189
+ المأمونية الشرقية,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,المأمونية الشرقية,31.7371,35.8336
190
+ المأمونية الغربية,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,المأمونية الغربية,31.7445,35.8053
191
+ المبرك,لواء القويسمة,مديرية شرطة شرق عمان,مركز أمن المنارة,المبرك,31.9333,35.9833
192
+ المبروكة,لواء القويسمة,مديرية شرطة شرق عمان,مركز أمن أحد,المبروكة,32.1567,36.2894
193
+ المجد,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن مرج الحمام,المجد,31.8615,35.8726
194
+ المحبة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,المحبة,32.0479,35.8791
195
+ المحجر,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن الشميساني,المحجر,31.9680,35.8780
196
+ المحطة,لواء قصبة عمان,مديرية شرطة شمال عمان,مركز أمن الهاشمي,المحطة,31.9663,35.9666
197
+ المخيم,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,المخيم,31.7130,35.7866
198
+ المدورة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,المدورة,32.0837,35.8500
199
+ المدينة,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن المدينة,المدينة,31.9515,35.9380
200
+ المدينة الرياضية,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,المدينة الرياضية,32.0590,35.7024
201
+ المدينة الطبية,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن تلاع العلي,المدينة الطبية,31.9808,35.8289
202
+ المدينة المنورة,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,المدينة المنورة,32.0581,36.0538
203
+ المروج,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن شفا بدران,المروج,32.0511,35.9198
204
+ المزار,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن زهران,المزار,31.9600,35.8720
205
+ المسرة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,المسرة,32.1658,35.9344
206
+ المشتى,لواء سحاب,مديرية شرطة شرق عمان,مركز أمن سحاب,المشتى,31.7659,36.0028
207
+ المشقر,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,المشقر,31.8417,35.7761
208
+ المشيرفة,لواء القويسمة,مديرية شرطة شرق عمان,مركز أمن أحد,المشيرفة,31.9006,36.0528
209
+ المصانع,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,المصانع,32.0621,35.7246
210
+ المصطبة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,المصطبة,32.1864,35.8561
211
+ المضاري,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,المضاري,32.0673,35.7833
212
+ المعادي,لواء القويسمة,مديرية شرطة شرق عمان,مركز أمن القويسمة,المعادي,31.9150,35.9599
213
+ المعليق,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,المعليق,31.9433,35.7751
214
+ المغبة الشرقي,لواء سحاب,مديرية شرطة شرق عمان,مركز أمن سحاب,المغبة الشرقي,31.8853,35.9733
215
+ المقابلين,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن المقابلين,المقابلين,31.9028,35.9125
216
+ الملك طلال,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,الملك طلال,32.0339,36.0727
217
+ المنارة,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن النصر,المنارة,31.9448,35.9619
218
+ المنش,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,المنش,32.1333,35.8333
219
+ المنشية/الجيزة,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,المنشية/الجيزة,31.7000,35.9333
220
+ الموحدين,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن شفا بدران,الموحدين,32.0689,35.9058
221
+ الموقر,لواء القويسمة,مديرية شرطة شرق عمان,مركز أمن أحد,الموقر,31.8130,36.1080
222
+ الميدات,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,الميدات,31.9626,35.7367
223
+ الميدان,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,الميدان,32.0420,35.7287
224
+ الميسة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,الميسة,32.0518,35.7629
225
+ النديم,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,النديم,31.7160,35.7788
226
+ النزهة,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن النزهة,النزهة,31.9750,35.9350
227
+ النصر,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن النصر,النصر,31.9450,35.9750
228
+ النظافة,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,النظافة,31.7314,35.7878
229
+ النظيف,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن المهاجرين,النظيف,31.9371,35.9264
230
+ النعامي,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,النعامي,32.1969,35.8677
231
+ النقب,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,النقب,31.8650,35.7950
232
+ النهارية,لواء القويسمة,مديرية شرطة شرق عمان,مركز أمن القويسمة,النهارية,31.9264,35.9500
233
+ الهاشمي,لواء قصبة عمان,مديرية شرطة شمال عمان,مركز أمن الهاشمي,الهاشمي,31.9710,35.9550
234
+ الهاشمي الجنوبي,لواء قصبة عمان,مديرية شرطة شمال عمان,مركز أمن الهاشمي,الهاشمي الجنوبي,31.9622,35.9528
235
+ الهاشمي الشامي,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن تلاع العلي,الهاشمي الشامي,31.9780,35.8640
236
+ الهاشمي الشمالي,لواء قصبة عمان,مديرية شرطة شمال عمان,مركز أمن الهاشمي,الهاشمي الشمالي,31.9703,35.9589
237
+ الهاشمية الزرقاء,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,الهاشمية الزرقاء,32.1372,36.1199
238
+ الهاشمية/سحاب,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن المقابلين,الهاشمية/سحاب,31.8780,35.9120
239
+ الهلال,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن زهران,الهلال,31.9304,35.8986
240
+ الهوايات,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,الهوايات,31.9620,35.7469
241
+ الوادي الاخضر,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,الوادي الاخضر,31.9232,35.7650
242
+ الوفاء,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن الجويدة,الوفاء,31.8419,35.9486
243
+ اليادودة,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن المقابلين,اليادودة,31.8700,35.9100
244
+ الياسمين,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن المقابلين,الياسمين,31.9156,35.8889
245
+ الياسمينة,لواء قصبة عمان,مديرية شرطة جنوب عمان,��ركز أمن جبل الزهور,الياسمينة,31.9215,35.9100
246
+ اليرموك,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,اليرموك,32.0271,36.0547
247
+ ام اذينة الشرقي,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن تلاع العلي,ام اذينة الشرقي,31.9668,35.8739
248
+ ام اذينة الغربي,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن تلاع العلي,ام اذينة الغربي,31.9681,35.8680
249
+ ام البيار,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن شفا بدران,ام البيار,32.1122,35.9496
250
+ ام الجدايل,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن المقابلين,ام الجدايل,31.8858,35.8935
251
+ ام العساكر,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,ام العساكر,31.8337,35.8773
252
+ ام الفطاير,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن شفا بدران,ام الفطاير,32.0742,35.9991
253
+ ام القطين,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,ام القطين,31.8597,35.8259
254
+ ام انجاصة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,ام انجاصة,32.0867,35.8081
255
+ ام بلانة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن شفا بدران,ام بلانة,32.0742,35.9135
256
+ ام بياضة,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,ام بياضة,32.0522,36.0626
257
+ ام شطيرات,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,ام شطيرات,32.0810,35.9036
258
+ ام صليح,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن شفا بدران,ام صليح,32.1573,36.0901
259
+ ام نجاصة,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,ام نجاصة,31.9421,35.7548
260
+ بئر السبيل الشرقي,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,بئر السبيل الشرقي,31.9622,35.7690
261
+ بئر حسن,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن تلاع العلي,بئر حسن,31.9900,35.8550
262
+ بدر الجديد,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,بدر الجديد,31.9380,35.8450
263
+ بدر الجديدة,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,بدر الجديدة,31.9664,35.7808
264
+ برخ,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,برخ,32.0837,36.0966
265
+ بركة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن ضاحية الرشيد,بركة,31.9900,35.8791
266
+ بركة العامرية,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,بركة العامرية,32.0534,35.7477
267
+ بسمان,لواء قصبة عمان,مديرية شرطة شمال عمان,مركز أمن الهاشمي,بسمان,31.9720,35.9510
268
+ بيادر وادي السير,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,بيادر وادي السير,31.9340,35.8450
269
+ بيت المقدس,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,بيت المقدس,31.7238,35.7994
270
+ بيت زرعة,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,بيت زرعة,31.8333,35.8500
271
+ تلاع العلي,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن تلاع العلي,تلاع العلي,31.9860,35.8580
272
+ تلعة الرز,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,تلعة الرز,32.1724,35.8660
273
+ جاوا,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن الجويدة,جاوا,31.8594,35.9350
274
+ جاوا الجنوبي,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن الجويدة,جاوا الجنوبي,31.8535,35.9315
275
+ جاوا الشمالي,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن الجويدة,جاوا الشمالي,31.8641,35.9347
276
+ جبة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,جبة,32.1873,35.8820
277
+ جبل الأشرفية,لواء قصبة عمان,مديرية شرطة شرق عمان,مركز أمن الأشرفية,جبل الأشرفية,31.9410,35.9377
278
+ جبل الأمير حسن,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,جبل الأمير حسن,32.0407,36.0670
279
+ جبل الأميرة رحمة,لواء مارك��,مديرية شرطة شرق عمان,مركز أمن ماركا,جبل الأميرة رحمة,32.0478,36.0817
280
+ جبل التاج,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن التاج,جبل التاج,31.9450,35.9450
281
+ جبل الجوفة,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن التاج,جبل الجوفة,31.9532,35.9517
282
+ جبل الحسين,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن الحسين,جبل الحسين,31.9650,35.9180
283
+ جبل الزهراء,لواء قصبة عمان,مديرية شرطة جنوب عمان,مركز أمن جبل الزهور,جبل الزهراء,31.9280,35.9080
284
+ جبل الزهور,لواء قصبة عمان,مديرية شرطة جنوب عمان,مركز أمن جبل الزهور,جبل الزهور,31.9215,35.9280
285
+ جبل القلعة,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن المدينة,جبل القلعة,31.9540,35.9350
286
+ جبل اللويبدة,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن المدينة,جبل اللويبدة,31.9557,35.9279
287
+ جبل المريخ,لواء قصبة عمان,مديرية شرطة شرق عمان,مركز أمن الأشرفية,جبل المريخ,31.9352,35.9298
288
+ جبل النزهة,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن النزهة,جبل النزهة,31.9750,35.9350
289
+ جبل النصر,لواء قصبة عمان,مديرية شرطة شمال عمان,مركز أمن الهاشمي,جبل النصر,31.9605,35.9639
290
+ جبل طارق,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,جبل طارق,32.0437,36.0991
291
+ جبل عمان,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن المهاجرين,جبل عمان,31.9507,35.9215
292
+ جبيها,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن ضاحية الرشيد,جبيها,32.0150,35.8950
293
+ جريش,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,جريش,32.1492,35.7317
294
+ جرينة,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,جرينة,31.7607,35.7962
295
+ جسر الملك فيصل,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,جسر الملك فيصل,31.9530,35.8630
296
+ جلعد,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,جلعد,32.1208,35.7742
297
+ جلول,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,جلول,31.7167,35.8500
298
+ جناعة,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,جناعة,32.0539,36.0892
299
+ جندويل,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن تلاع العلي,جندويل,31.9620,35.8680
300
+ حرمين,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,حرمين,31.8750,35.7700
301
+ حسبان,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,حسبان,31.8000,35.8000
302
+ حطين,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن الجويدة,حطين,31.8922,35.9280
303
+ حمزة,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,حمزة,31.9878,35.9916
304
+ حنينا,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,حنينا,31.7285,35.8018
305
+ حوارة,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,حوارة,31.7000,35.8500
306
+ حوض النصارى,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن المقابلين,حوض النصارى,31.8830,35.9180
307
+ حي اكلة الكاشف,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,حي اكلة الكاشف,31.9546,35.7543
308
+ حي الأشرفية,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,حي الأشرفية,32.1052,35.7969
309
+ حي الأمير شاكر,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,حي الأمير شاكر,32.0730,36.0761
310
+ حي البستان,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,حي البستان,32.0772,36.0714
311
+ حي الجدعة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,حي الجدعة,32.0373,35.7282
312
+ حي الجنينة,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,حي الجنينة,32.0737,36.0665
313
+ حي الحديب,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,حي الحديب,32.0906,35.7759
314
+ حي الحسين,لواء ماركا,مديرية شرطة شرق عمان,��ركز أمن ماركا,حي الحسين,32.0692,36.0773
315
+ حي الحليلة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,حي الحليلة,32.0298,35.7089
316
+ حي الدفيانة,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,حي الدفيانة,31.9538,35.7668
317
+ حي الذراع,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,حي الذراع,31.9340,35.8132
318
+ حي الربيدي,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,حي الربيدي,32.0621,35.7802
319
+ حي الرشيد,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,حي الرشيد,32.0273,36.0196
320
+ حي الزعتري,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,حي الزعتري,32.0707,35.7521
321
+ حي السحلولية,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,حي السحلولية,32.0879,35.7981
322
+ حي السرايا,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,حي السرايا,32.0389,35.7247
323
+ حي السرور,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,حي السرور,32.0430,35.7790
324
+ حي السويسة,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,حي السويسة,31.9531,35.7613
325
+ حي الشجرة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,حي الشجرة,32.0972,35.7343
326
+ حي الشفا,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,حي الشفا,32.0473,35.7599
327
+ حي الصافح والبقيع,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,حي الصافح والبقيع,32.0371,35.7119
328
+ حي الصنوبر,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,حي الصنوبر,31.9429,35.8231
329
+ حي الضباط,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,حي الضباط,32.0572,36.0867
330
+ حي العوايشة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,حي العوايشة,32.0320,35.7932
331
+ حي العيزرية,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,حي العيزرية,32.0367,35.7229
332
+ حي الغروس الشرقي,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,حي الغروس الشرقي,31.9581,35.7762
333
+ حي الغروس الغربي,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,حي الغروس الغربي,31.9620,35.7801
334
+ حي الفروسية,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,حي الفروسية,32.0258,35.8025
335
+ حي الفلاح,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,حي الفلاح,32.0368,36.0635
336
+ حي القبة,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,حي القبة,31.9711,35.7832
337
+ حي القسام,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,حي القسام,32.0172,35.7138
338
+ حي القلعة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,حي القلعة,32.0417,35.7239
339
+ حي القمر,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,حي القمر,32.0633,36.0633
340
+ حي الكرسي,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن تلاع العلي,حي الكرسي,31.9658,35.8271
341
+ حي المركز الصحي,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,حي المركز الصحي,32.1224,35.7415
342
+ حي المريخ,لواء قصبة عمان,مديرية شرطة شرق عمان,مركز أمن الأشرفية,حي المريخ,31.9352,35.9298
343
+ حي المزود,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,حي المزود,32.0069,35.7055
344
+ حي المصلى,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,حي المصلى,32.0742,35.7218
345
+ حي المطار,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,حي المطار,31.9771,35.9849
346
+ حي المنتزه,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,حي المنتزه,32.1081,35.7094
347
+ حي المنشية,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,حي المنشية,32.0330,35.7260
348
+ حي الميامين,لواء ال��امعة,مديرية شرطة شمال عمان,مركز أمن صويلح,حي الميامين,32.0256,35.7190
349
+ حي النزهة,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,حي النزهة,32.0616,36.0813
350
+ حي النصر,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,حي النصر,32.0685,36.0972
351
+ حي النعير,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,حي النعير,31.9540,35.8049
352
+ حي الوسية,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,حي الوسية,32.1005,35.7821
353
+ حي اليزيدية,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,حي اليزيدية,32.0583,35.7728
354
+ حي اليزيدية الجنوبي,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,حي اليزيدية الجنوبي,32.0587,35.7761
355
+ حي اليزيدية الشمالي,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,حي اليزيدية الشمالي,32.0586,35.7692
356
+ حي ام العمد,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,حي ام العمد,32.1150,35.7453
357
+ حي بطنا,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,حي بطنا,32.0011,35.7051
358
+ حي بلال,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,حي بلال,31.9640,35.7988
359
+ حي جلعد,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,حي جلعد,32.1374,35.7899
360
+ حي رمزي,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,حي رمزي,32.0772,36.0829
361
+ حي زي,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,حي زي,32.1058,35.7238
362
+ حي سلعوف,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,حي سلعوف,32.1097,35.7597
363
+ حي طباعة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,حي طباعة,32.0923,35.7109
364
+ حي كفر هودا,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,حي كفر هودا,32.0877,35.7030
365
+ حي معصوم,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,حي معصوم,32.0782,36.0759
366
+ حي نقب الدبور,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,حي نقب الدبور,32.0323,35.7397
367
+ حي وادي الاكراد,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,حي وادي الاكراد,32.0428,35.7148
368
+ حي وادي الحلبي,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,حي وادي الحلبي,32.0500,35.7198
369
+ حي وادي السير,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,حي وادي السير,31.9541,35.8275
370
+ حي وادي سودا,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,حي وادي سودا,32.0511,35.7034
371
+ حي وادي شعيب,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,حي وادي شعيب,31.9819,35.7080
372
+ خربة الأديرة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,خربة الأديرة,32.1175,35.7343
373
+ خربة الرصيفة,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,خربة الرصيفة,32.0167,36.0167
374
+ خربة السمراء,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن شفا بدران,خربة السمراء,32.1833,36.1667
375
+ خربة الشباك,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,خربة الشباك,32.0833,35.7833
376
+ خربة العناب,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,خربة العناب,32.0167,35.7500
377
+ خربة اليزيدية,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,خربة اليزيدية,32.0660,35.7831
378
+ خربة جريبة,لواء ماركا,مديرية شرطة شمال عمان,مركز أمن طارق,خربة جريبة,32.0492,35.9997
379
+ خربة خو,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,خربة خو,32.0833,36.1333
380
+ خربة شومر,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,خربة شومر,32.0838,36.0543
381
+ خربة مخول,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن شفا بدران,خربة مخول,32.1167,36.0667
382
+ خربیه السوق,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن الجويدة,خربیه السوق,31.8701,35.9292
383
+ خلدا,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن تلاع العلي,خلدا,31.9860,35.8480
384
+ دابوق,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن تلاع العلي,دابوق,31.9881,35.8113
385
+ دارة الفكر,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن تلاع العلي,دارة الفكر,31.9620,35.8710
386
+ درودة,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,درودة,31.9400,35.8550
387
+ دعم الغزالات,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,دعم الغزالات,32.0809,35.7193
388
+ دوار أنس,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,دوار أنس,32.0658,36.0799
389
+ دوار ال جي كي,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,دوار ال جي كي,32.0910,36.0891
390
+ دوار الأشرفية,لواء قصبة عمان,مديرية شرطة شرق عمان,مركز أمن الأشرفية,دوار الأشرفية,31.9383,35.9332
391
+ دوار الأميرة بسمة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,دوار الأميرة بسمة,32.0373,35.8650
392
+ دوار الثقافة,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,دوار الثقافة,32.0485,36.0951
393
+ دوار الجمرك,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن الجويدة,دوار الجمرك,31.9007,35.9380
394
+ دوار الحاووز,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,دوار الحاووز,32.0721,36.0894
395
+ دوار الحويان,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن الجويدة,دوار الحويان,31.9003,35.9329
396
+ دوار الداخلية,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن الشميساني,دوار الداخلية,31.9732,35.9095
397
+ دوار الدبابة,لواء القويسمة,مديرية شرطة شرق عمان,مركز أمن القويسمة,دوار الدبابة,31.9047,35.9647
398
+ دوار الدلة,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,دوار الدلة,32.0677,36.0718
399
+ دوار الرابية,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن الشميساني,دوار الرابية,31.9740,35.8841
400
+ دوار الزهور,لواء قصبة عمان,مديرية شرطة جنوب عمان,مركز أمن جبل الزهور,دوار الزهور,31.9199,35.9232
401
+ دوار السخنة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن شفا بدران,دوار السخنة,32.1293,36.0650
402
+ دوار السيف والدلة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن شفا بدران,دوار السيف والدلة,32.0914,35.9358
403
+ دوار الشعب,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن تلاع العلي,دوار الشعب,31.9735,35.8390
404
+ دوار الشميساني,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن الشميساني,دوار الشميساني,31.9645,35.9005
405
+ دوار الشيخ ابراهيم عبد الكريم ابو حديد,لواء سحاب,مديرية شرطة شرق عمان,مركز أمن سحاب,دوار الشيخ ابراهيم عبد الكريم ابو حديد,31.7026,35.9476
406
+ دوار الصقر,لواء القويسمة,مديرية شرطة شرق عمان,مركز أمن أحد,دوار الصقر,31.8121,36.1063
407
+ دوار الطيارة,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,دوار الطيارة,31.7287,35.7841
408
+ دوار العمادة,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,دوار العمادة,32.1030,36.1867
409
+ دوار القيسية,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن المهاجرين,دوار القيسية,31.9399,35.9076
410
+ دوار الكمالية,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,دوار الكمالية,32.0289,35.8258
411
+ دوار الكيلو,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن تلاع العلي,دوار الكيلو,31.9745,35.8654
412
+ دوار المدفعية,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,دوار المدفعية,32.0773,36.1295
413
+ دوار المدينة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن ضاحية الرشيد,دوار المدينة,31.9855,35.8977
414
+ دوار المدينة الرياضية,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن ضاحية الرشيد,دوار المدينة الرياضية,31.9855,35.8977
415
+ دوار المدينة المنورة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن تلاع العلي,دوار المدينة المنورة,31.9911,35.8683
416
+ دوار المشاغل,لواء ماركا,مديرية شرطة شمال عمان,مركز أمن طارق,دوار المشاغل,31.9933,35.9300
417
+ دوار المنطقه الصناعيه,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,دوار المنطقه الصناعيه,31.9452,35.8499
418
+ دوار المهباش,لواء القويسمة,مديرية شرطة شرق عمان,مركز أمن القويسمة,دوار المهباش,31.9063,35.9591
419
+ دوار النزهة,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن النزهة,دوار النزهة,31.9713,35.9291
420
+ دوار الواحة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن تلاع العلي,دوار الواحة,31.9911,35.8685
421
+ دوار الواحة y,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن ضاحية الرشيد,دوار الواحة y,31.9889,35.8743
422
+ دوار جويعد,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن المقابلين,دوار جويعد,31.9038,35.9017
423
+ دوار خلدا,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن تلاع العلي,دوار خلدا,31.9947,35.8303
424
+ دوار خميس,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,دوار خميس,32.0667,36.0659
425
+ دوار زمزم,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,دوار زمزم,31.9923,36.0126
426
+ دوار صويلح,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,دوار صويلح,32.0219,35.8439
427
+ دوار ضاحية الأمير حسن,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن النزهة,دوار ضاحية الأمير حسن,31.9877,35.9240
428
+ دوار فراس,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن الحسين,دوار فراس,31.9675,35.9178
429
+ دوار معصوم,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,دوار معصوم,32.0783,36.0746
430
+ دوار ناعور,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,دوار ناعور,31.8786,35.8312
431
+ دوقرة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن شفا بدران,دوقرة,32.1393,36.0354
432
+ دوّار المعارف,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن تلاع العلي,دوّار المعارف,31.9900,35.8448
433
+ دوّار عبدون,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن زهران,دوّار عبدون,31.9488,35.8925
434
+ دير غبار,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,دير غبار,31.9350,35.8750
435
+ ذهيبة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن شفا بدران,ذهيبة,32.0501,35.9025
436
+ راس العين,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن المهاجرين,راس العين,31.9420,35.9220
437
+ رجم الشرائرة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,رجم الشرائرة,32.0000,35.8333
438
+ رجم المضمار,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,رجم المضمار,32.0667,35.8333
439
+ رغدان,لواء قصبة عمان,مديرية شرطة شمال عمان,مركز أمن الهاشمي,رغدان,31.9780,35.9561
440
+ زبدا,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,زبدا,31.9639,35.7645
441
+ زبدة,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,زبدة,31.9453,35.7543
442
+ زبدة السويسة,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,زبدة السويسة,31.9582,35.7603
443
+ زبود,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,زبود,31.8573,35.7572
444
+ زويرة,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,زويرة,31.7000,35.9167
445
+ ساحة باريس,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن المدينة,ساحة باريس,31.9558,35.9279
446
+ سحاب,لواء سحاب,مديرية شرطة شرق عمان,مركز أمن سحاب,سحاب,31.8850,36.0050
447
+ سد ناعور,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,سد ناعور,31.8680,35.7750
448
+ سوميا,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,سوميا,32.1625,35.7828
449
+ سيل حسبان,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,سيل حسبان,31.8537,35.7849
450
+ شفا بدران,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن شفا بدران,شفا بدران,32.0410,35.9120
451
+ شمسان,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن تلاع العلي,شمسان,31.9710,35.8760
452
+ صافوط,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,صافوط,32.0336,35.8332
453
+ صالحية العابد,لواء القويسمة,مديرية شرطة شرق عمان,مركز أمن المنارة,صالحية العابد,31.9553,35.9995
454
+ صبحية,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,صبحية,32.0845,35.7966
455
+ صروت,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن شفا بدران,صروت,32.1464,35.9592
456
+ صلخد,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,صلخد,31.9403,35.7595
457
+ صويفية,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,صويفية,31.9510,35.8610
458
+ صويلح,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,صويلح,32.0165,35.8480
459
+ ضاحية الأقصى,لواء ماركا,مديرية شرطة شمال عمان,مركز أمن طارق,ضاحية الأقصى,31.9920,35.9410
460
+ ضاحية الأمانة,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن المقابلين,ضاحية الأمانة,31.9120,35.9320
461
+ ضاحية الأمير حسن,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن النزهة,ضاحية الأمير حسن,31.9860,35.9230
462
+ ضاحية الأمير راشد,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,ضاحية الأمير راشد,31.9680,35.8500
463
+ ضاحية الأمير زيد,لواء ماركا,مديرية شرطة شمال عمان,مركز أمن طارق,ضاحية الأمير زيد,31.9950,35.9380
464
+ ضاحية الأمير علي,لواء ماركا,مديرية شرطة شمال عمان,مركز أمن طارق,ضاحية الأمير علي,31.9960,35.9450
465
+ ضاحية الأميرة هيا,لواء ماركا,مديرية شرطة شمال عمان,مركز أمن طارق,ضاحية الأميرة هيا,32.0010,35.9550
466
+ ضاحية الأوقاف,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن ضاحية الرشيد,ضاحية الأوقاف,31.9900,35.8750
467
+ ضاحية الاستقلال,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن النزهة,ضاحية الاستقلال,31.9750,35.9350
468
+ ضاحية الامير غازي بن محمد,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,ضاحية الامير غازي بن محمد,32.0744,35.7141
469
+ ضاحية الاميرة سلمى,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,ضاحية الاميرة سلمى,32.0731,36.1073
470
+ ضاحية البستان,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن شفا بدران,ضاحية البستان,32.1070,36.0549
471
+ ضاحية الحاج حسن,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن المقابلين,ضاحية الحاج حسن,31.9160,35.9400
472
+ ضاحية الحسين,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن الشميساني,ضاحية الحسين,31.9830,35.8770
473
+ ضاحية الرشيد,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن ضاحية الرشيد,ضاحية الرشيد,31.9970,35.8926
474
+ ضاحية الرضا,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,ضاحية الرضا,32.0050,35.9800
475
+ ضاحية الروضة,لواء قصبة عمان,مديرية شرطة جنوب عمان,مركز أمن جبل الزهور,ضاحية الروضة,31.9220,35.9250
476
+ ضاحية الزهور,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,ضاحية الزهور,32.0583,35.7501
477
+ ضاحية السلام,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,ضاحية السلام,32.0160,35.8650
478
+ ضاحية الشروق,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,ضاحية الشروق,32.0571,35.7446
479
+ ضاحية النخيل,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن مرج الحمام,ضاحية النخيل,31.9050,35.8750
480
+ ضاحية الياسمين,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن المقابلين,ضاحية الياسمين,31.9180,35.9180
481
+ ضاحية خليل الرحمن,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن مرج الحمام,ضاحية خليل الرحمن,31.9100,35.8800
482
+ طاب كراع,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,طاب كراع,32.0512,35.8918
483
+ طبربور,لواء ماركا,مديرية شرطة شمال عمان,مركز أمن طارق,طبربور,32.0031,35.9472
484
+ طف النبي يوشع,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,طف النبي يوشع,32.0707,35.7097
485
+ عبدلي,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن الشميساني,عبدلي,31.9630,35.9050
486
+ عبدون,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,عبدون,31.9400,35.8750
487
+ عبدون الجنوبي,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن زهران,عبدون الجنوبي,31.9412,35.8860
488
+ عراق الأمير,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,عراق الأمير,31.9240,35.8100
489
+ عرجان الشرقية,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن النزهة,عرجان الشرقية,31.9835,35.9165
490
+ عرقاوة,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن المقابلين,عرقاوة,31.9180,35.9100
491
+ علان,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,علان,32.1172,35.7440
492
+ عليقون,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,عليقون,32.1587,35.7672
493
+ عوجان الشرقي,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,عوجان الشرقي,32.0333,36.0833
494
+ عين الباشا,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,عين الباشا,32.0300,35.8400
495
+ عين خنيزير,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,عين خنيزير,32.0833,35.8000
496
+ عين رباط,لواء ماركا,مديرية شرطة شمال عمان,مركز أمن طارق,عين رباط,32.0072,35.9743
497
+ عين غزال,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,عين غزال,31.9961,35.9770
498
+ غرناطة,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,غرناطة,31.7433,35.7880
499
+ غريسة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن شفا بدران,غريسة,32.1833,36.0833
500
+ قبور عبد الله,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,قبور عبد الله,31.7667,35.7667
501
+ قرطبة,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,قرطبة,32.0687,36.0576
502
+ قرية سالم,لواء سحاب,مديرية شرطة شرق عمان,مركز أمن سحاب,قرية سالم,31.8500,35.9667
503
+ قصيب,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,قصيب,32.1611,35.7532
504
+ قلعة الزرقاء,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,قلعة الزرقاء,32.0833,36.1000
505
+ كفير أبو سربوط,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,كفير أبو سربوط,31.7500,35.7833
506
+ كفيرات أبو خينان,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,كفيرات أبو خينان,31.7333,35.8000
507
+ كورنيت سعيد,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,كورنيت سعيد,31.9250,35.8150
508
+ مؤته,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,مؤته,31.7119,35.7931
509
+ ماحص,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,ماحص,31.9833,35.7667
510
+ مادبا,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,مادبا,31.7240,35.7986
511
+ ماركا,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,ماركا,31.9750,35.9850
512
+ ماركا الجنوبية,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,ماركا الجنوبية,31.9620,35.9798
513
+ ماركا الشمالية,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,ماركا الشمالية,31.9800,35.9900
514
+ ماسوح,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,ماسوح,31.7777,35.8462
515
+ مجمع السفريات,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,مجمع السفريات,31.7137,35.8013
516
+ محمد الفاتح,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,محمد الفاتح,31.7275,35.7889
517
+ مخيم البقعة,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,مخيم البقعة,32.0731,35.8430
518
+ مخيم الحسين,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن الحسين,مخيم الحسين,31.9679,35.9251
519
+ مخيم الزرقاء,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,مخيم الزرقاء,32.0581,36.0919
520
+ مخيم الطالبية,لواء سحاب,مديرية شرطة شرق عمان,مركز أمن سحاب,مخيم الطالبية,31.7053,35.9492
521
+ مخيم الوحدات,لواء قصبة عمان,مديرية شرطة شرق عمان,مركز أمن الأشرفية,مخيم الوحدات,31.9304,35.9386
522
+ مخيم حطين,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,مخيم حطين,32.0074,36.0200
523
+ مدينة الشرق,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,مدينة الشرق,32.0566,36.1210
524
+ مدينة المجد,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,مدينة المجد,32.0389,36.1110
525
+ مدينة رغدان,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن ضاحية الرشيد,مدينة رغدان,32.0050,35.8700
526
+ مرج الحمام,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن مرج الحمام,مرج الحمام,31.8950,35.8550
527
+ مرج الفرس,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن شفا بدران,مرج الفرس,32.0442,35.9408
528
+ مرج الموالي,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,مرج الموالي,32.1501,35.7190
529
+ مرصع,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,مرصع,32.1370,35.8710
530
+ مزرعة السامك,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,مزرعة السامك,31.7923,35.8673
531
+ مشيرفة الرواشدة,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,مشيرفة الرواشدة,31.9367,35.7795
532
+ مطار ماركا,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,مطار ماركا,31.9730,35.9930
533
+ مقابلين,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن المقابلين,مقابلين,31.9050,35.9150
534
+ مكة المكرمة,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,مكة المكرمة,32.0482,36.0417
535
+ منجا,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,منجا,31.7450,35.8544
536
+ منطقة أبو نصير,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,منطقة أبو نصير,32.0520,35.8805
537
+ منطقة احد,لواء سحاب,مديرية شرطة شرق عمان,مركز أمن سحاب,منطقة احد,31.8876,36.0326
538
+ منطقة التطوير,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,منطقة التطوير,31.9968,36.0536
539
+ منطقة الضليل,لواء القويسمة,مديرية شرطة شرق عمان,مركز أمن أحد,منطقة الضليل,32.1308,36.2716
540
+ منطقة القويسمة,لواء القويسمة,مديرية شرطة شرق عمان,مركز أمن القويسمة,منطقة القويسمة,31.9167,35.9500
541
+ منطقة المدينة,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن المهاجرين,منطقة المدينة,31.9450,35.9288
542
+ منطقة المقابلين,لواء القويسمة,مديرية شرطة جنوب عمان,مركز أمن المقابلين,منطقة المقابلين,31.8963,35.9041
543
+ منطقة النصر,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن النصر,منطقة النصر,31.9526,35.9668
544
+ منطقة اليرموك,لواء قصبة عمان,مديرية شرطة شرق عمان,مركز أمن الأشرفية,منطقة اليرموك,31.9356,35.9381
545
+ منطقة بدر,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن المهاجرين,منطقة بدر,31.9307,35.9070
546
+ منطقة بسمان,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن النزهة,منطقة بسمان,31.9877,35.9239
547
+ منطقة تلاع العلي,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن تل��ع العلي,منطقة تلاع العلي,31.9947,35.8662
548
+ منطقة رأس العين,لواء قصبة عمان,مديرية شرطة جنوب عمان,مركز أمن جبل الزهور,منطقة رأس العين,31.9308,35.9277
549
+ منطقة زهران,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن زهران,منطقة زهران,31.9543,35.9041
550
+ منطقة صويلح,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,منطقة صويلح,32.0250,35.8381
551
+ منطقة طارق,لواء ماركا,مديرية شرطة شمال عمان,مركز أمن طارق,منطقة طارق,31.9930,35.9447
552
+ منطقة ماركا,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,منطقة ماركا,31.9777,35.9801
553
+ منطقة مرج الحمام,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن مرج الحمام,منطقة مرج الحمام,31.9017,35.8517
554
+ منطقة ناعور,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,منطقة ناعور,31.8704,35.8202
555
+ منطقة وادي السير,لواء وادي السير,مديرية شرطة جنوب عمان,مركز أمن البيادر,منطقة وادي السير,31.9546,35.8299
556
+ موبص,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن أبو نصير,موبص,32.0949,35.8856
557
+ ميدان الجيش العربي,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,ميدان الجيش العربي,32.0608,36.0943
558
+ ميدان هزاع المجالي,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,ميدان هزاع المجالي,32.0811,36.1070
559
+ ناعور,لواء ناعور,مديرية شرطة جنوب عمان,مركز أمن ناعور,ناعور,31.8650,35.8250
560
+ نزال,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن المهاجرين,نزال,31.9328,35.9130
561
+ نظمي,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن زهران,نظمي,31.9550,35.8700
562
+ وادي الازرق,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,وادي الازرق,32.0064,35.7334
563
+ وادي الحجر,لواء ماركا,مديرية شرطة شرق عمان,مركز أمن ماركا,وادي الحجر,32.0411,36.0887
564
+ وادي الحدادة,لواء قصبة عمان,مديرية شرطة وسط عمان,مركز أمن المدينة,وادي الحدادة,31.9599,35.9317
565
+ وادي الحور,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,وادي الحور,32.0777,35.7702
566
+ وسط البلد,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن صويلح,وسط البلد,32.0355,35.7290
567
+ ياجوز,لواء الجامعة,مديرية شرطة شمال عمان,مركز أمن شفا بدران,ياجوز,32.0333,35.9167
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Ensure persistent data directory exists
6
+ RUN mkdir -p /data && chmod 777 /data
7
+
8
+ # Declare volume for data persistence across container restarts
9
+ VOLUME ["/data"]
10
+
11
+ # Copy all project files
12
+ COPY . .
13
+
14
+ # Expose default port
15
+ EXPOSE 7860
16
+ EXPOSE 8080
17
+
18
+ # Default port for Hugging Face Spaces
19
+ ENV PORT=7860
20
+
21
+ # Start the MAT server
22
+ CMD ["python", "server.py"]
23
+
Police_Station_Finder.html ADDED
The diff for this file is too large to render. See raw diff
 
README.md CHANGED
@@ -1,10 +1,116 @@
1
  ---
2
- title: MAT
3
- emoji: 🏢
4
- colorFrom: pink
5
- colorTo: red
6
  sdk: static
7
  pinned: false
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: MAT - Amman Police Stations Toolkit
3
+ emoji: 🏛️
4
+ colorFrom: blue
5
+ colorTo: indigo
6
  sdk: static
7
  pinned: false
8
+ license: mit
9
  ---
10
 
11
+ # MAT — حقيبة الأدوات المساعدة
12
+ ### Modular Assistant Toolkit
13
+
14
+ > **Official Arabic Name:** "حقيبة الأدوات المساعدة"
15
+ > **Full Acronym Definition:** Modular Assistant Toolkit
16
+ > **Project Version:** 1.28.0
17
+ > **Official Short URL:** [https://abualzait.github.io/MAT](https://abualzait.github.io/MAT)
18
+ > **Direct Live Deployment:** [https://mat-ee756.containers.snapdeploy.app](https://mat-ee756.containers.snapdeploy.app)
19
+ > **Cloud Secret Key:** `mat_secret_key_2026_prod`
20
+
21
+ ---
22
+
23
+ ## 💾 Volume Persistence & Storage
24
+ The application includes automatic persistent volume support (`/data`) to prevent data loss across container restarts:
25
+ - **Docker Compose:** Run `docker compose up -d` (uses the `mat_data` volume).
26
+ - **Docker CLI:** Run `docker run -d -p 8080:8080 -v mat_data:/data mat_toolkit`
27
+ - **Auto JSON Backup:** Database state is continuously saved to `data_backup.json` and restored on startup.
28
+
29
+ ## 📋 Overview & Strategic Vision
30
+
31
+ **MAT (Modular Assistant Toolkit)** is a highly scalable, modular digital workspace designed for governorate departments and official administrative support, built to dynamically accommodate custom tools, specialized departmental screens, and future horizontal expansion under the Ministry of Interior.
32
+
33
+ It operates seamlessly in offline and local network environments with zero external dependencies, providing local administrative support, citizen complaints management, appointment booking, file reservation tracking, and area/police station lookup utilities.
34
+
35
+ ---
36
+
37
+ ## 🏗️ Architecture & Structural Naming Convention Blueprint (`mat`)
38
+
39
+ Developers onboarding onto the MAT workspace must strictly follow the **`mat`** structural naming convention standard across all architectural layers:
40
+
41
+ ### 1. Database Layer (`mat_` Prefix)
42
+ All SQLite database tables, indexes, views, and foreign key references must strictly use the **`mat_`** prefix:
43
+
44
+ | Legacy Table Name | MAT Database Table Name | Description |
45
+ | :--- | :--- | :--- |
46
+ | `officers` | `mat_officers` | Administrative officers and system users |
47
+ | `complaints` | `mat_complaints` | Citizens' complaints and case records |
48
+ | `parties` | `mat_parties` | Complaint complainants and respondents |
49
+ | `appointments` | `mat_appointments` | Departmental appointment bookings |
50
+ | `appointment_parties` | `mat_appointment_parties` | Attendees for scheduled appointments |
51
+ | `activity_log` | `mat_activity_log` | Detailed user action audit trails |
52
+ | `simple_appointments` | `mat_simple_appointments` | Fast-track appointment bookings |
53
+ | `search_logs` | `mat_search_logs` | Area and police station search metrics |
54
+ | `chat_messages` | `mat_chat_messages` | Internal administrative team messaging |
55
+ | `reserved_files` | `mat_reserved_files` | Physical file reservation index |
56
+ | `file_custody_log` | `mat_file_custody_log` | Chain of custody history for files |
57
+ | `sessions` | `mat_sessions` | Active user authentication sessions |
58
+ | `audit_logs` | `mat_audit_logs` | High-level system audit log entries |
59
+
60
+ * **Indexes:** Must be prefixed with `idx_mat_*` (e.g. `idx_mat_complaints_status`, `idx_mat_parties_name`).
61
+
62
+ ### 2. API Routing Namespace (`/api/v1/mat/`)
63
+ All backend HTTP microservices and API routes follow the `/api/v1/mat/` endpoint standard:
64
+
65
+ - **Authentication:** `/api/v1/mat/login`, `/api/v1/mat/logout`, `/api/v1/mat/me`
66
+ - **Complaints & Cases:** `/api/v1/mat/complaints`, `/api/v1/mat/parties`
67
+ - **Appointments:** `/api/v1/mat/appointments`, `/api/v1/mat/simple-appointments`
68
+ - **File Custody:** `/api/v1/mat/reservations`, `/api/v1/mat/reservations/transfer`
69
+ - **Internal Messaging:** `/api/v1/mat/chat/messages`, `/api/v1/mat/chat/poll`
70
+ - **GIS / Finder:** `/api/v1/mat/areas`, `/api/v1/mat/search`
71
+
72
+ ### 3. Code Structures & Components (`Mat*` & `mat*`)
73
+ - **Classes & Backend Handlers:** PascalCase with `Mat` prefix (e.g., `MatServerHandler`, `MatUserController`).
74
+ - **Configuration & Client State:** CamelCase with `mat` prefix (e.g., `matConfig`, `matState`, `MatApp`).
75
+
76
+ ### 4. Environment Variables (`MAT_*`)
77
+ System parameters are stored inside `.env` using uppercase **`MAT_*`** environment variable keys:
78
+
79
+ ```env
80
+ MAT_ENV=production
81
+ MAT_PORT=5001
82
+ MAT_HOST=0.0.0.0
83
+ MAT_DB_PATH=complaints.db
84
+ MAT_API_PREFIX=/api/v1/mat
85
+ MAT_SECRET_KEY=mat_secret_key_2026
86
+ ```
87
+
88
+ ---
89
+
90
+ ## 🚀 Quick Start & Execution
91
+
92
+ ### Prerequisites
93
+ - Python 3.8+ (Uses built-in standard libraries `http.server`, `sqlite3`, `json`, `hashlib`)
94
+
95
+ ### Running the Application
96
+
97
+ 1. **Configure Environment:**
98
+ ```bash
99
+ cp .env.example .env
100
+ ```
101
+
102
+ 2. **Start the MAT Web Server:**
103
+ ```bash
104
+ python server.py
105
+ ```
106
+
107
+ 3. **Access the Portal:**
108
+ - Web App: `http://localhost:5001/` or `http://localhost:5001/complaints/app`
109
+ - Login Portal: `http://localhost:5001/complaints/login`
110
+ - Police Station Finder: `http://localhost:5001/finder`
111
+
112
+ ---
113
+
114
+ ## 🛠️ Data & Migration Safety
115
+
116
+ On server startup, `init_db()` automatically performs zero-downtime schema migrations, renaming legacy database tables (if present) to the new `mat_` prefix standard while preserving all existing user records and historical activity log data.
amman_logo.png ADDED

Git LFS Details

  • SHA256: e3332356c1d2f585533e98b628ab16ac4bcba3ced7432d3f430254296c3d6c0c
  • Pointer size: 131 Bytes
  • Size of remote file: 210 kB
complaints/app.html ADDED
@@ -0,0 +1,892 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="ar" dir="rtl">
3
+
4
+ <head>
5
+ <meta charset="UTF-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <title>MAT — حقيبة الأدوات المساعدة (Modular Assistant Toolkit)</title>
8
+ <!-- Google Fonts - IBM Plex Sans Arabic & Tajawal -->
9
+ <link rel="preconnect" href="https://fonts.googleapis.com">
10
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
11
+ <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Tajawal:wght@400;500;700;800&display=swap" rel="stylesheet">
12
+
13
+ <!-- Civic Horizon CSS Design System -->
14
+ <link rel="stylesheet" href="/complaints/css/design-system.css?v=21">
15
+
16
+ <!-- Leaflet CSS for unified map -->
17
+ <link rel="stylesheet" href="/leaflet.css">
18
+ </head>
19
+
20
+ <body>
21
+
22
+ <div class="app-layout">
23
+
24
+ <!-- Sidebar Navigation -->
25
+ <aside class="sidebar" id="mainSidebar">
26
+ <div class="sidebar-header">
27
+ <div class="logo-container" title="MAT (Modular Assistant Toolkit) — حقيبة الأدوات المساعدة">
28
+ <img src="/amman_logo.png" alt="شعار المحافظة" class="logo-img"
29
+ onerror="this.src='https://upload.wikimedia.org/wikipedia/commons/thumb/c/c1/Coat_of_arms_of_Jordan.svg/500px-Coat_of_arms_of_Jordan.svg.png'">
30
+ </div>
31
+ <div class="header-titles">
32
+ <div class="header-brand-badge">
33
+ <span class="brand-acronym">MAT</span>
34
+ <span class="brand-fullname">Modular Assistant Toolkit</span>
35
+ </div>
36
+ <h1 class="header-main-title">حقيبة الأدوات المساعدة</h1>
37
+ <p class="header-jurisdiction">
38
+ <span>محافظة العاصمة</span>
39
+ <span class="badge badge-purple" style="font-size:0.62rem; padding:1px 5px; border-radius:4px;">v1.28.0</span>
40
+ </p>
41
+ </div>
42
+ <button class="sidebar-close-btn" onclick="closeSidebarDrawer()" title="إغلاق القائمة" aria-label="إغلاق القائمة">
43
+ ✕
44
+ </button>
45
+ </div>
46
+
47
+ <nav class="sidebar-menu" id="dynamicSidebarMenu">
48
+ <!-- Populated dynamically by JS -->
49
+ </nav>
50
+
51
+ <div class="sidebar-footer">
52
+ <div class="user-info-card">
53
+ <div class="user-avatar-wrapper">
54
+ <div class="user-avatar">👤</div>
55
+ <span class="user-status-dot" title="متصل"></span>
56
+ </div>
57
+ <div class="user-details">
58
+ <span id="userNameSidebar" class="user-name">...</span>
59
+ <span id="userRoleBadgeSidebar" class="role-badge-sidebar">...</span>
60
+ </div>
61
+ </div>
62
+ <button onclick="logout()" class="btn-logout-sidebar" title="تسجيل الخروج">
63
+ <span>🚪</span> <span class="logout-text">تسجيل الخروج</span>
64
+ </button>
65
+ </div>
66
+
67
+ </aside>
68
+
69
+ <!-- Main Content Area -->
70
+ <main class="main-content">
71
+
72
+ <!-- Top Bar -->
73
+ <header class="top-bar">
74
+ <div class="top-bar-left">
75
+ <button id="sidebarToggle" class="btn btn-ghost" onclick="toggleSidebar()" title="إظهار/إخفاء القائمة" style="color:#ffffff !important;font-size:1.2rem;background:rgba(255,255,255,0.1);border:1px solid rgba(255,255,255,0.25);">
76
+ ☰
77
+ </button>
78
+ <div class="search-bar-container">
79
+ <span class="search-icon">🔍</span>
80
+ <input type="text" id="globalSearchInput"
81
+ placeholder="ابحث برقم القضية/الصادر، اسم المراجع..."
82
+ onkeyup="handleGlobalSearch(event)">
83
+ </div>
84
+ </div>
85
+ <div class="top-bar-right">
86
+ <!-- Meeting Room / Live Chat Button -->
87
+ <button class="btn btn-ghost meeting-room-top-btn" id="meetingRoomTopBtn"
88
+ onclick="toggleChatPane(true)"
89
+ title="غرفة الاجتماعات (المحادثة الفورية)">
90
+ <span class="meeting-btn-icon" style="font-size: 1.1rem;">💬</span>
91
+ <span class="meeting-btn-text">غرفة الاجتماعات</span>
92
+ <span id="chatActiveUsersCountTop" class="meeting-btn-badge">0</span>
93
+ </button>
94
+ <div style="position: relative;">
95
+ <button id="notificationToggleBtn" class="btn btn-ghost notification-btn" title="التنبيهات" onclick="toggleNotificationPanel()" style="position: relative;color:#ffffff !important;background:rgba(255,255,255,0.12);border:1px solid rgba(255,255,255,0.3);">
96
+ 🔔 <span id="notificationBadge" class="badge badge-red" style="position: absolute; top: -5px; right: -5px; display: none;">0</span>
97
+ </button>
98
+ <!-- Notification Panel -->
99
+ <div id="notificationPanel" class="card" style="display: none; position: absolute; top: 100%; left: 0; width: 320px; z-index: 100; box-shadow: 0 10px 25px rgba(0,0,0,0.2); margin-top: 0.5rem; background:#ffffff; border:1px solid #cbd5e1;">
100
+ <div class="card-header" style="padding: 1rem; background:#f1f5f9; border-bottom:1px solid #cbd5e1;">
101
+ <h3 style="font-size: 1rem; margin: 0; color:#0f172a;">🔔 الإشعارات الواردة</h3>
102
+ </div>
103
+ <div id="notificationList" class="card-body" style="padding: 0; max-height: 300px; overflow-y: auto; color:#0f172a;">
104
+ <div style="padding: 1rem; text-align: center; color: #64748b; font-size: 0.9rem;">لا توجد إشعارات حالياً</div>
105
+ </div>
106
+ </div>
107
+ </div>
108
+ <!-- Top Bar Logout Button -->
109
+ <button class="btn btn-ghost top-logout-btn" onclick="logout()" title="تسجيل الخروج" aria-label="تسجيل الخروج">
110
+ <span style="font-size: 1.1rem;">🚪</span>
111
+ <span class="top-logout-text">تسجيل الخروج</span>
112
+ </button>
113
+ </div>
114
+ </header>
115
+
116
+ <!-- Search Results Panel -->
117
+ <div id="searchResultsContainer" class="search-results card mb-3">
118
+ <div class="card-header">
119
+ <h3>🔍 نتائج البحث عن المواعيد والقضايا</h3>
120
+ <button class="btn btn-ghost btn-sm" onclick="closeSearchResults()">إغلاق النتائج ✖</button>
121
+ </div>
122
+ <div class="card-body" id="searchResultsBody">
123
+ <!-- Populated dynamically -->
124
+ </div>
125
+ </div>
126
+
127
+ <!-- Tab 1: Dashboard (لوحة التحكم والملخص) -->
128
+ <div id="tab-dashboard" class="tab-content active">
129
+ <div class="page-title">
130
+ <div class="title-text">
131
+ 📊 لوحة التحكم — ملخص المواعيد والاتصالات والأبحاث
132
+ </div>
133
+ <div style="display: flex; gap: 10px; align-items: center;">
134
+ <select id="dashboardTimeFilter" class="form-control" onchange="loadSimpleDashboard()" style="width: 200px; padding: 0.5rem;">
135
+ <option value="today">إحصائيات اليوم</option>
136
+ <option value="week">إحصائيات هذا الأسبوع</option>
137
+ <option value="month">إحصائيات هذا الشهر</option>
138
+ <option value="all">إحصائيات كل الوقت</option>
139
+ </select>
140
+ <button class="btn btn-primary" onclick="openNewSimpleAppointmentModal()">➕ حجز موعد جديد</button>
141
+ </div>
142
+ </div>
143
+
144
+ <!-- Stats Row -->
145
+ <div class="stats-grid stats-grid-3">
146
+ <!-- Card 1: عدد المواعيد للفترة المحددة -->
147
+ <div class="stat-card stat-card-primary">
148
+ <div class="stat-card-header">
149
+ <div class="stat-icon-wrapper icon-blue">
150
+ <span>📅</span>
151
+ </div>
152
+ <span class="stat-badge badge-blue" id="statPeriodBadge">اليوم</span>
153
+ </div>
154
+ <div class="stat-card-body">
155
+ <div class="stat-value-large text-primary" id="statFilteredTotalAppts">0</div>
156
+ <div class="stat-label">عدد المواعيد</div>
157
+ </div>
158
+ <div class="stat-card-footer">
159
+ <span class="stat-footer-text" id="statPeriodFooterText">إجمالي المواعيد للفترة المحددة</span>
160
+ </div>
161
+ </div>
162
+
163
+ <!-- Card 2: التي تم تأجيلها للفترة المحددة -->
164
+ <div class="stat-card stat-card-warning">
165
+ <div class="stat-card-header">
166
+ <div class="stat-icon-wrapper icon-purple">
167
+ <span>🔄</span>
168
+ </div>
169
+ <span class="stat-badge badge-purple" id="statPeriodBadgePostponed">اليوم</span>
170
+ </div>
171
+ <div class="stat-card-body">
172
+ <div class="stat-value-large text-purple" id="statFilteredPostponedAppts">0</div>
173
+ <div class="stat-label">التي تم تأجيلها</div>
174
+ </div>
175
+ <div class="stat-card-footer">
176
+ <span class="stat-footer-text" id="statPeriodFooterTextPostponed">مواعيد تم تحويلها وإعادة جدولتها</span>
177
+ </div>
178
+ </div>
179
+
180
+ <!-- Card 3: لم يحضر للفترة المحددة -->
181
+ <div class="stat-card stat-card-danger">
182
+ <div class="stat-card-header">
183
+ <div class="stat-icon-wrapper icon-red">
184
+ <span>❌</span>
185
+ </div>
186
+ <span class="stat-badge badge-red" id="statPeriodBadgeNoShow">اليوم</span>
187
+ </div>
188
+ <div class="stat-card-body">
189
+ <div class="stat-value-large text-danger" id="statFilteredNoShowAppts">0</div>
190
+ <div class="stat-label">لم يحضر</div>
191
+ </div>
192
+ <div class="stat-card-footer">
193
+ <span class="stat-footer-text" id="statPeriodFooterTextNoShow">تخلف المراجعين عن الحضور في الموعد</span>
194
+ </div>
195
+ </div>
196
+ </div>
197
+
198
+ <!-- Dashboard Grid -->
199
+ <div class="dashboard-grid">
200
+
201
+ <!-- My Reserved Files Widget -->
202
+ <div class="card" style="grid-column: 1 / -1;">
203
+ <div class="card-header">
204
+ <h3>📁 ملفاتي المحجوزة</h3>
205
+ <button class="btn btn-outline btn-sm" onclick="switchTab('file-reservations')">إدارة الملفات</button>
206
+ </div>
207
+ <div class="card-body">
208
+ <div class="smart-cards-grid" id="dashboardReservedFilesList">
209
+ <!-- Populated dynamically -->
210
+ </div>
211
+ </div>
212
+ </div>
213
+
214
+ <!-- No Answer List (Pending Suspension) -->
215
+ <div class="card" style="grid-column: 1 / -1;" id="dashboardNoAnswerWrapper" style="display:none;">
216
+ <div class="card-header" style="background: rgba(231, 76, 60, 0.1); border-bottom: 2px solid #e74c3c;">
217
+ <h3 style="color: #c0392b;">📵 جهات لم تجب على الاتصال (معلقة)</h3>
218
+ <button class="btn btn-outline btn-sm" onclick="switchTab('appointments')">إدارة المعلقين</button>
219
+ </div>
220
+ <div class="card-body">
221
+ <div class="smart-cards-grid" id="dashboardNoAnswerList">
222
+ <!-- Populated dynamically -->
223
+ </div>
224
+ </div>
225
+ </div>
226
+
227
+ <!-- Today's Schedule -->
228
+ <div class="card" style="grid-column: 1 / -1;">
229
+ <div class="card-header">
230
+ <h3>⏱️ مواعيد واتصالات اليوم المقررة</h3>
231
+ <button class="btn btn-outline btn-sm" onclick="switchTab('appointments')">الجدول الكامل</button>
232
+ </div>
233
+ <div class="card-body">
234
+ <div class="smart-cards-grid" id="dashboardTodaySimpleAppointmentsList">
235
+ <!-- Populated dynamically -->
236
+ </div>
237
+ </div>
238
+ </div>
239
+
240
+ <!-- Top Searched Areas Widget -->
241
+ <div class="card" style="grid-column: 1 / -1;">
242
+ <div class="card-header">
243
+ <h3>📍 أكثر المناطق بحثاً والمراكز الأمنية التابعة لها</h3>
244
+ <button class="btn btn-ghost btn-sm" onclick="switchTab('stations')">فتح الدليل</button>
245
+ </div>
246
+ <div class="card-body">
247
+ <div id="topSearchedAreasContainer" class="top-areas-list" style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem;">
248
+ <!-- Populated dynamically -->
249
+ </div>
250
+ </div>
251
+ </div>
252
+
253
+ </div>
254
+ </div>
255
+
256
+ <!-- Tab: Daily Appointments Cards View -->
257
+ <div id="tab-daily-view" class="tab-content">
258
+ <div class="page-title">
259
+ <div class="title-text">
260
+ 🗓️ العرض اليومي للمواعيد
261
+ </div>
262
+ <div class="form-group mb-0" style="display:flex; align-items:center; gap:10px;">
263
+ <button class="btn btn-outline" onclick="window.print()">🖨️ طباعة الجدول</button>
264
+ <label style="margin:0; font-weight:bold; color:var(--text-color);">تاريخ العرض:</label>
265
+ <input type="date" id="dailyViewDatePicker" class="form-control" onchange="loadDailyView()"
266
+ style="width: 200px;">
267
+ </div>
268
+ </div>
269
+
270
+ <div id="dailyCardsContainer" class="daily-cards-grid">
271
+ <!-- Cards will be populated here -->
272
+ </div>
273
+ </div>
274
+
275
+ <!-- Tab: Calendar View -->
276
+ <div id="tab-calendar-view" class="tab-content">
277
+ <div class="page-title">
278
+ <div class="title-text">
279
+ 📆 التقويم الشهري للمواعيد
280
+ </div>
281
+ <button class="btn btn-outline" onclick="loadCalendarView()">🔄 تحديث التقويم</button>
282
+ </div>
283
+ <div class="card">
284
+ <div class="card-body">
285
+ <div id="calendarHeader" style="display:flex; justify-content:space-between; align-items:center; margin-bottom: 1.5rem; background: var(--bg-tertiary); padding: 10px; border-radius: var(--radius-md);">
286
+ <button class="btn btn-outline" onclick="changeCalendarMonth(-1)">⬅️ الشهر السابق</button>
287
+ <h3 id="calendarMonthYear" style="margin:0; font-weight:bold; color:var(--primary-color);"></h3>
288
+ <button class="btn btn-outline" onclick="changeCalendarMonth(1)">الشهر التالي ➡️</button>
289
+ </div>
290
+ <div id="calendarGrid" class="modern-calendar-grid">
291
+ <!-- Populated dynamically -->
292
+ </div>
293
+ </div>
294
+ </div>
295
+
296
+ <!-- Modern Calendar Agenda Drawer -->
297
+ <div id="agendaDrawerOverlay" class="drawer-overlay" onclick="closeAgendaDrawer()"></div>
298
+ <div id="agendaDrawer" class="agenda-drawer">
299
+ <div class="drawer-header">
300
+ <h3 id="agendaDateTitle" style="margin:0; font-weight:bold; color:var(--text-primary);">تفاصيل اليوم</h3>
301
+ <button class="btn btn-outline" onclick="closeAgendaDrawer()" style="border:none; background:transparent; font-size:1.5rem; color:var(--text-primary);">&times;</button>
302
+ </div>
303
+ <div class="drawer-body" id="agendaContent">
304
+ <!-- Agenda items injected here -->
305
+ </div>
306
+ </div>
307
+ </div>
308
+
309
+ <!-- Tab 2: Appointments Scheduling (جدولة المواعيد والقضايا) -->
310
+ <div id="tab-appointments" class="tab-content">
311
+ <div class="page-title">
312
+ <div class="title-text">
313
+ 📅 جدول المواعيد والقضايا والاتصالات المسجلة
314
+ </div>
315
+ <button class="btn btn-primary btn-lg" onclick="openNewSimpleAppointmentModal()">➕ حجز / إضافة موعد
316
+ جديد</button>
317
+ </div>
318
+
319
+ <!-- Filter & Search Row -->
320
+ <div class="card mb-2">
321
+ <div class="card-body" style="padding: 0.85rem 1.25rem;">
322
+ <div class="form-row align-center">
323
+ <div class="form-group mb-0">
324
+ <label>من تاريخ:</label>
325
+ <input type="date" id="apptFilterFrom" class="form-control"
326
+ onchange="loadSimpleAppointments()">
327
+ </div>
328
+ <div class="form-group mb-0">
329
+ <label>إلى تاريخ:</label>
330
+ <input type="date" id="apptFilterTo" class="form-control"
331
+ onchange="loadSimpleAppointments()">
332
+ </div>
333
+ <div class="form-group mb-0">
334
+ <label>حالة الموعد:</label>
335
+ <select id="apptFilterStatus" class="form-control" onchange="loadSimpleAppointments()">
336
+ <option value="">كل الحالات</option>
337
+ <option value="مُجدول">مُجدول</option>
338
+ <option value="مُؤجل">مُؤجل (إعادة جدولة)</option>
339
+ <option value="تم الحضور">تم الحضور</option>
340
+ <option value="لم يحضر">لم يحضر</option>
341
+ <option value="لم يجيبوا">لم يجيبوا (معلق)</option>
342
+ <option value="ملغى">ملغى</option>
343
+ </select>
344
+ </div>
345
+ </div>
346
+ </div>
347
+ </div>
348
+
349
+ <!-- Appointments Table -->
350
+ <div class="card">
351
+ <div class="card-body">
352
+ <div id="simpleAppointmentsTableContainer">
353
+ <!-- Populated dynamically -->
354
+ </div>
355
+ </div>
356
+ </div>
357
+ </div>
358
+
359
+ <!-- Tab 3: Security Stations Directory (دليل المراكز الأمنية) -->
360
+ <div id="tab-stations" class="tab-content" style="padding: 0;">
361
+ <div style="border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); border: 1px solid var(--border-color, rgba(255,255,255,0.12));">
362
+ <iframe id="stationsIframe"
363
+ src="about:blank"
364
+ style="width:100%; height:calc(100vh - 110px); border:none; display:block;"
365
+ title="دليل المراكز الأمنية">
366
+ </iframe>
367
+ </div>
368
+ </div>
369
+
370
+ <!-- Tab: File Reservations (حجز الملفات) -->
371
+ <div id="tab-reservations" class="tab-content">
372
+ <div class="page-title" style="display: flex; justify-content: space-between; align-items: center;">
373
+ <div class="title-text">
374
+ 🔒 نظام تتبع الملفات المصغر
375
+ </div>
376
+ <label class="admin-only" id="adminAllReservationsLabel" style="display:none; align-items:center; gap:8px; font-weight: normal; cursor: pointer;">
377
+ <input type="checkbox" id="showAllReservationsCheck" onchange="loadReservations()">
378
+ عرض جميع ملفات المركز (صلاحية مشرف)
379
+ </label>
380
+ </div>
381
+
382
+ <!-- Quick Search Area -->
383
+ <div class="card mb-4" style="background: var(--bg-tertiary); border: 1px solid var(--primary-color); text-align: center; padding: 25px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05);">
384
+ <h3 style="margin-bottom: 20px; color: var(--text-color);">🔍 أين يوجد هذا الملف؟</h3>
385
+ <div class="form-row align-center" style="max-width: 600px; margin: 0 auto; gap: 10px;">
386
+ <input type="text" id="searchReservationInput" class="form-control" placeholder="أدخل رقم الملف أو القضية للبحث..." style="flex:1; text-align: center; font-size: 1.2rem; padding: 12px; border-radius: 8px;">
387
+ <button class="btn btn-primary" onclick="searchReservations()" style="padding: 12px 25px; font-size: 1.1rem; border-radius: 8px;">ابحث فوراً</button>
388
+ </div>
389
+ <div id="reservationSearchResult" style="margin-top:20px; font-weight:bold; font-size: 1.1rem;"></div>
390
+ </div>
391
+
392
+ <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 25px;">
393
+ <!-- New File Registration -->
394
+ <div class="card" style="border-top: 4px solid var(--primary-color);">
395
+ <div class="card-header">
396
+ <h3>➕ تسجيل ملف في عهدتي</h3>
397
+ </div>
398
+ <div class="card-body">
399
+ <form onsubmit="reserveFile(event)">
400
+ <div class="form-group">
401
+ <label>رقم الملف / القضية *</label>
402
+ <input type="text" id="newReservationFileNumber" class="form-control" placeholder="أدخل رقم الملف هنا..." required>
403
+ </div>
404
+ <div class="form-group">
405
+ <label>ملاحظات الاستلام (اختياري)</label>
406
+ <input type="text" id="newReservationNotes" class="form-control" placeholder="مثال: مستلم من الأرشيف...">
407
+ </div>
408
+ <button type="submit" class="btn btn-primary w-100">تأكيد الاستلام وحفظه باسمي</button>
409
+ </form>
410
+ </div>
411
+ </div>
412
+
413
+ <!-- Pending Transfers -->
414
+ <div class="card" style="border-top: 4px solid #f39c12;">
415
+ <div class="card-header" style="display: flex; justify-content: space-between;">
416
+ <h3>⏳ طلبات نقل العهدة</h3>
417
+ <button class="btn btn-ghost btn-sm" onclick="loadPendingTransfers()">🔄 تحديث</button>
418
+ </div>
419
+ <div class="card-body" style="max-height: 250px; overflow-y: auto; padding-top: 10px;" id="pendingTransfersContainer">
420
+ <div class="text-center text-light" style="padding: 20px;">جاري التحميل...</div>
421
+ </div>
422
+ </div>
423
+ </div>
424
+
425
+ <!-- My Files Table -->
426
+ <div class="card">
427
+ <div class="card-header" style="display: flex; justify-content: space-between;">
428
+ <h3 id="myReservationsTitle">📂 الملفات المحجوزة (في عهدتي)</h3>
429
+ <button class="btn btn-ghost btn-sm" onclick="loadReservations()">🔄 تحديث القائمة</button>
430
+ </div>
431
+ <div class="card-body">
432
+ <div class="table-wrapper">
433
+ <table>
434
+ <thead>
435
+ <tr>
436
+ <th>رقم الملف</th>
437
+ <th>المسؤول الحالي</th>
438
+ <th>تاريخ التسجيل</th>
439
+ <th>ملاحظات</th>
440
+ <th>الإجراءات / التتبع</th>
441
+ </tr>
442
+ </thead>
443
+ <tbody id="myReservationsTableBody">
444
+ <!-- Populated dynamically -->
445
+ </tbody>
446
+ </table>
447
+ </div>
448
+ </div>
449
+ </div>
450
+ </div>
451
+
452
+ <!-- Tab 4: Settings & User Management (Admin Only) -->
453
+ <div id="tab-officers" class="tab-content">
454
+ <div class="page-title">
455
+ <div class="title-text">
456
+ ⚙️ إعدادات المنصة والصلاحيات
457
+ </div>
458
+ <button class="btn btn-primary" onclick="openNewOfficerModal()">➕ إضافة مستخدم جديد</button>
459
+ </div>
460
+
461
+ <div class="card">
462
+ <div class="card-body">
463
+ <div class="table-wrapper">
464
+ <table>
465
+ <thead>
466
+ <tr>
467
+ <th>الاسم الكامل</th>
468
+ <th>اسم المستخدم</th>
469
+ <th>الدور (الصلاحية)</th>
470
+ <th>الأدوات المتاحة</th>
471
+ <th>الحالة</th>
472
+ <th>إجراءات</th>
473
+ </tr>
474
+ </thead>
475
+ <tbody id="officersTableBody">
476
+ <!-- Populated dynamically -->
477
+ </tbody>
478
+ </table>
479
+ </div>
480
+ </div>
481
+ </div>
482
+ </div>
483
+
484
+ <!-- Tab 5: Admin Permissions Manager (Admin Mode Only) -->
485
+ <div id="tab-admin_permissions" class="tab-content">
486
+ <div class="page-title">
487
+ <div class="title-text">
488
+ 🛡️ إدارة الصلاحيات المتقدمة (وضع المشرف السري)
489
+ </div>
490
+ </div>
491
+
492
+ <div class="card">
493
+ <div class="card-body">
494
+ <div class="table-wrapper">
495
+ <table>
496
+ <thead>
497
+ <tr>
498
+ <th>الاسم الكامل</th>
499
+ <th>لوحة التحكم</th>
500
+ <th>نظام المواعيد</th>
501
+ <th>دليل المراكز</th>
502
+ <th>أداة الملفات</th>
503
+ <th>غرفة الاجتماعات</th>
504
+ <th>الحالة العامة</th>
505
+ </tr>
506
+ </thead>
507
+ <tbody id="permissionsTableBody">
508
+ <!-- Populated dynamically -->
509
+ </tbody>
510
+ </table>
511
+ </div>
512
+ </div>
513
+ </div>
514
+ </div>
515
+
516
+ </main>
517
+ </div>
518
+
519
+ <!-- ════════════════════ MODALS ════════════════════ -->
520
+
521
+ <!-- Modal: New / Edit Simple Appointment -->
522
+ <div id="modalNewSimpleAppointment" class="modal-overlay">
523
+ <div class="modal" style="max-width: 600px;">
524
+ <div class="modal-header">
525
+ <h3>📅 حجز وإدخال موعد جديد</h3>
526
+ <button class="modal-close" onclick="closeModal('modalNewSimpleAppointment')">&times;</button>
527
+ </div>
528
+ <div class="modal-body">
529
+ <form id="formNewSimpleAppointment" onsubmit="submitNewSimpleAppointment(event)">
530
+ <input type="hidden" id="editSimpleApptId">
531
+ <input type="hidden" id="parentAppointmentId">
532
+
533
+ <div class="form-group">
534
+ <label>الضابط / الموظف طالب الاتصال (المتصل)</label>
535
+ <select id="simpleRequestedBy" class="form-control">
536
+ <option value="me">أنا (المستخدم الحالي)</option>
537
+ <option value="" disabled>-- أو اختر من قائمة الموظفين --</option>
538
+ </select>
539
+ </div>
540
+
541
+ <div class="form-row">
542
+ <div class="form-group">
543
+ <label>اسم المراجع / المتصل عليه</label>
544
+ <input type="text" id="simpleVisitorName" class="form-control"
545
+ placeholder="الاسم الكامل للمراجع">
546
+ </div>
547
+ <div class="form-group">
548
+ <label>رقم هاتف المراجع</label>
549
+ <input type="tel" id="simplePhone" class="form-control" placeholder="07XXXXXXXX">
550
+ </div>
551
+ </div>
552
+
553
+ <div class="form-group">
554
+ <label>رقم القضية / المعاملة (إن وجدت)</label>
555
+ <input type="text" id="simpleCaseNumber" class="form-control"
556
+ placeholder="مثال: ص-2026/1054 أو رقم الملف الداخلي">
557
+ </div>
558
+
559
+ <div class="form-row">
560
+ <div class="form-group">
561
+ <label>تاريخ الاجتماع / الموعد</label>
562
+ <input type="date" id="simpleDate" class="form-control">
563
+ </div>
564
+ <div class="form-group">
565
+ <label>وقت الاجتماع / الموعد</label>
566
+ <input type="time" id="simpleTime" class="form-control">
567
+ </div>
568
+ </div>
569
+
570
+ <div class="form-group">
571
+ <label>حالة الموعد</label>
572
+ <select id="simpleStatus" class="form-control">
573
+ <option value="مُجدول">مُجدول</option>
574
+ <option value="مُؤجل">مُؤجل (إعادة جدولة)</option>
575
+ <option value="تم الحضور">تم الحضور</option>
576
+ <option value="لم يحضر">لم يحضر</option>
577
+ <option value="لم يجيبوا">لم يجيبوا (معلق)</option>
578
+ <option value="ملغى">ملغى</option>
579
+ </select>
580
+ </div>
581
+
582
+ <div class="form-group">
583
+ <label>ملاحظات الموعد / بيانات إضافية بالأنظمة الداخلية</label>
584
+ <textarea id="simpleNotes" class="form-control"
585
+ placeholder="أدخل أي ملاحظات، تفاصيل كتاب الصادر، أو تعليمات خاصة بالمواجهة..."></textarea>
586
+ </div>
587
+
588
+ <div class="modal-footer">
589
+ <button type="submit" class="btn btn-primary btn-lg">حفظ الموعد</button>
590
+ <button type="button" class="btn btn-ghost"
591
+ onclick="closeModal('modalNewSimpleAppointment')">إلغاء</button>
592
+ </div>
593
+ </form>
594
+ </div>
595
+ </div>
596
+ </div>
597
+
598
+ <!-- Modal: New Officer (Admin) -->
599
+ <div id="modalNewOfficer" class="modal-overlay">
600
+ <div class="modal" style="max-width: 500px;">
601
+ <div class="modal-header">
602
+ <h3>👥 إضافة مستخدم جديد</h3>
603
+ <button class="modal-close" onclick="closeModal('modalNewOfficer')">&times;</button>
604
+ </div>
605
+ <div class="modal-body">
606
+ <form id="formNewOfficer" onsubmit="submitNewOfficer(event)">
607
+ <div class="form-group">
608
+ <label>الاسم الكامل *</label>
609
+ <input type="text" id="officerName" class="form-control" placeholder="مثال: النقيب أحمد علي"
610
+ required>
611
+ </div>
612
+ <div class="form-group">
613
+ <label>اسم المستخدم *</label>
614
+ <input type="text" id="officerUsername" class="form-control" placeholder="مثال: officer3"
615
+ required>
616
+ </div>
617
+ <div class="form-group">
618
+ <label>كلمة المرور *</label>
619
+ <input type="password" id="officerPassword" class="form-control" placeholder="••••••••"
620
+ required>
621
+ </div>
622
+ <div class="form-group">
623
+ <label>الدور / الصلاحية *</label>
624
+ <select id="officerRole" class="form-control" onchange="toggleAccessibleTools()">
625
+ <option value="officer">ضابط مواعيد / قضايا</option>
626
+ <option value="caller">موظف مقسم / اتصال</option>
627
+ <option value="admin">رئيس قسم (صلاحيات كاملة)</option>
628
+ </select>
629
+ </div>
630
+ <div class="form-group" id="accessibleToolsGroup">
631
+ <label>الأدوات المتاحة (الصلاحيات)</label><br>
632
+ <label><input type="checkbox" name="accessible_tool" value="dashboard" checked> 📊 لوحة التحكم والملخص</label><br>
633
+ <label><input type="checkbox" name="accessible_tool" value="complaints" checked> 📅 نظام المواعيد</label><br>
634
+ <label><input type="checkbox" name="accessible_tool" value="finder" checked> 🗺️ دليل المراكز الأمنية</label><br>
635
+ <label><input type="checkbox" name="accessible_tool" value="file_reservations" checked> 🔒 أداة حجز الملفات</label><br>
636
+ <label><input type="checkbox" name="accessible_tool" value="chat" checked> 💬 غرفة الاجتماعات (المحادثة)</label>
637
+ </div>
638
+ <div class="modal-footer">
639
+ <button type="submit" class="btn btn-primary">إنشاء الحساب</button>
640
+ <button type="button" class="btn btn-ghost"
641
+ onclick="closeModal('modalNewOfficer')">إلغاء</button>
642
+ </div>
643
+ </form>
644
+ </div>
645
+ </div>
646
+ </div>
647
+
648
+
649
+ <!-- Transfer Custody Modal -->
650
+ <div id="modalTransferCustody" class="modal-overlay">
651
+ <div class="modal" style="max-width: 500px;">
652
+ <div class="modal-header">
653
+ <h3>🔄 طلب نقل عهدة ملف</h3>
654
+ <button class="modal-close" onclick="closeModal('modalTransferCustody')">&times;</button>
655
+ </div>
656
+ <div class="modal-body">
657
+ <div class="alert alert-info mb-3" style="background: rgba(46,204,113,0.1); border-left: 4px solid var(--primary-color); padding: 10px; border-radius: 4px;">
658
+ <strong>ملاحظة:</strong> سيتم إرسال طلب للضابط المستلم، ولن تنتقل العهدة رسمياً إلا بعد قبوله للطلب.
659
+ </div>
660
+ <form onsubmit="submitTransferCustody(event)">
661
+ <input type="hidden" id="transferReservationId">
662
+ <div class="form-group">
663
+ <label>��قم الملف</label>
664
+ <input type="text" id="transferFileNumber" class="form-control" disabled>
665
+ </div>
666
+ <div class="form-group">
667
+ <label>نقل إلى الضابط</label>
668
+ <select id="transferToOfficer" class="form-control" required>
669
+ <option value="">-- اختر الضابط --</option>
670
+ <!-- Populated dynamically -->
671
+ </select>
672
+ </div>
673
+ <div class="form-group">
674
+ <label>ملاحظات النقل</label>
675
+ <input type="text" id="transferNotes" class="form-control" placeholder="سبب النقل أو ملاحظات للمستلم...">
676
+ </div>
677
+ <div class="modal-footer">
678
+ <button type="submit" class="btn btn-primary">إرسال طلب النقل</button>
679
+ <button type="button" class="btn btn-ghost" onclick="closeModal('modalTransferCustody')">إلغاء</button>
680
+ </div>
681
+ </form>
682
+ </div>
683
+ </div>
684
+ </div>
685
+
686
+ <!-- Custody History Modal -->
687
+ <div id="modalCustodyHistory" class="modal-overlay">
688
+ <div class="modal" style="max-width: 650px;">
689
+ <div class="modal-header">
690
+ <h3>🕒 السجل الزمني لحركة الملف</h3>
691
+ <button class="modal-close" onclick="closeModal('modalCustodyHistory')">&times;</button>
692
+ </div>
693
+ <div class="modal-body">
694
+ <div style="background: var(--bg-tertiary); padding: 15px; border-radius: 8px; margin-bottom: 20px;">
695
+ <strong>الملف رقم: </strong> <span id="historyFileNumber" class="text-primary fw-bold">...</span><br>
696
+ <strong>موجود حالياً لدى: </strong> <span id="historyCurrentOwner">...</span>
697
+ </div>
698
+
699
+ <div class="timeline" id="custodyHistoryTimeline" style="position: relative; padding-left: 20px; border-left: 2px solid var(--border-color); max-height: 400px; overflow-y: auto;">
700
+ <!-- Populated dynamically -->
701
+ </div>
702
+ </div>
703
+ <div class="modal-footer">
704
+ <button type="button" class="btn btn-ghost" onclick="closeModal('modalCustodyHistory')">إغلاق</button>
705
+ </div>
706
+ </div>
707
+ </div>
708
+
709
+ <!-- Overdue Appointment Status Update & Notes Modal -->
710
+ <div id="modalOverdueUpdate" class="modal-overlay">
711
+ <div class="modal" style="max-width: 550px;">
712
+ <div class="modal-header" style="background:#FFFBEB; border-bottom: 2px solid #F59E0B;">
713
+ <h3 style="color:#B45309; display:flex; align-items:center; gap:8px;">
714
+ ⏰ انقضاء وقت الموعد — إدخال النتيجة والملاحظات
715
+ </h3>
716
+ <button class="modal-close" onclick="closeModal('modalOverdueUpdate')">&times;</button>
717
+ </div>
718
+ <div class="modal-body">
719
+ <form id="formOverdueUpdate" onsubmit="submitOverdueUpdate(event)">
720
+ <input type="hidden" id="overdueApptId">
721
+
722
+ <div style="background:#F8FAFC; border:1px solid #E2E8F0; padding:12px; border-radius:8px; margin-bottom:15px; font-size:0.9rem; color:#0F172A;">
723
+ <div><strong>👤 اسم المراجع:</strong> <span id="overdueVisitorName">—</span></div>
724
+ <div><strong>📄 رقم القضية/الصادر:</strong> <span id="overdueCaseNumber">—</span></div>
725
+ <div><strong>⏱️ تاريخ ووقت الموعد:</strong> <span id="overdueApptDateTime">—</span></div>
726
+ </div>
727
+
728
+ <div class="form-group">
729
+ <label style="font-weight:700; color:#0F172A;">نتيجة الموعد / الحالة الجديدة *</label>
730
+ <select id="overdueStatusSelect" class="form-control" style="font-weight:700;" required onchange="toggleOverdueBranchFields()">
731
+ <option value="تم الحضور">✅ تم الحضور (حضر المراجع)</option>
732
+ <option value="لم يحضر">❌ لم يحضر (تخلف عن الموعد)</option>
733
+ <option value="مُؤجل">🔄 تأجيل وإعادة جدولة (حجز موعد فرعي جديد)</option>
734
+ <option value="لم يجيبوا">📵 لم يجيبوا (الاتصال معلق)</option>
735
+ <option value="ملغى">🚫 ملغى</option>
736
+ </select>
737
+ </div>
738
+
739
+ <!-- Additional Date & Time fields if 'مُؤجل' selected -->
740
+ <div id="overdueBranchFields" style="display:none; background:#F3E8FF; padding:12px; border-radius:8px; margin-bottom:15px; border:1px solid #DDD6FE;">
741
+ <div class="form-row">
742
+ <div class="form-group">
743
+ <label style="color:#6B21A8; font-weight:700;">تاريخ الموعد الجديد *</label>
744
+ <input type="date" id="overdueNewDate" class="form-control">
745
+ </div>
746
+ <div class="form-group">
747
+ <label style="color:#6B21A8; font-weight:700;">وقت الموعد الجديد *</label>
748
+ <input type="time" id="overdueNewTime" class="form-control">
749
+ </div>
750
+ </div>
751
+ </div>
752
+
753
+ <div class="form-group">
754
+ <label style="font-weight:700; color:#0F172A;">👤 إسناد / تحويل الموعد إلى الموظف (الضابط المسؤول)</label>
755
+ <select id="overdueAssignOfficerSelect" class="form-control" style="font-weight:700;">
756
+ <option value="">— جاري تحميل قائمة الموظفين... —</option>
757
+ </select>
758
+ </div>
759
+
760
+ <div class="form-group">
761
+ <label style="font-weight:700; color:#0F172A;">ملاحظات الإجراء والنتيجة التفصيلية *</label>
762
+ <textarea id="overdueActionNotes" class="form-control" rows="3" required
763
+ placeholder="أدخل ملاحظات الإجراء، سبب عدم الحضور، أو تفاصيل كتاب الصادر/المواجهة..."></textarea>
764
+ </div>
765
+
766
+ <div class="modal-footer">
767
+ <button type="submit" class="btn btn-primary btn-lg" style="background:#D97706; border-color:#D97706;">💾 حفظ النتيجة والملاحظات</button>
768
+ <button type="button" class="btn btn-ghost" onclick="closeModal('modalOverdueUpdate')">إلغاء</button>
769
+ </div>
770
+ </form>
771
+ </div>
772
+ </div>
773
+ </div>
774
+
775
+ <!-- ═══ Appointment Detail Modal ══════════════════════════════════════ -->
776
+ <div id="modalAppointmentDetail" class="modal-overlay">
777
+ <div class="modal" style="max-width: 760px;">
778
+ <div class="modal-header" style="background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);">
779
+ <h3 style="color:#fff; display:flex; align-items:center; gap:0.5rem;">📋 <span id="apptDetailTitle">تفاصيل الموعد</span></h3>
780
+ <button class="modal-close" style="color:#fff;" onclick="closeModal('modalAppointmentDetail')">&times;</button>
781
+ </div>
782
+ <div class="modal-body" style="padding: 0;">
783
+
784
+ <!-- Info Cards Row -->
785
+ <div id="apptDetailInfoRow" style="display:grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap:0; border-bottom: 1px solid var(--border-color);">
786
+ <!-- Populated dynamically -->
787
+ </div>
788
+
789
+ <div style="display:grid; grid-template-columns: 1fr 1fr; gap:0;">
790
+ <!-- Left: Action History -->
791
+ <div style="padding: 1.25rem; border-left: 1px solid var(--border-color);">
792
+ <h4 style="margin-bottom:1rem; color:var(--accent-primary); font-size:0.95rem;">⚙️ سجل الإجراءات</h4>
793
+ <div id="apptDetailHistory" style="max-height:260px; overflow-y:auto;">
794
+ <div style="color:var(--text-muted); text-align:center; padding:2rem;">جاري التحميل...</div>
795
+ </div>
796
+ </div>
797
+ <!-- Right: Previous Appointments for same case -->
798
+ <div style="padding: 1.25rem;">
799
+ <h4 style="margin-bottom:1rem; color:var(--accent-primary); font-size:0.95rem;">🕰️ المواعيد السابقة لنفس القضية</h4>
800
+ <div id="apptDetailPrevious" style="max-height:260px; overflow-y:auto;">
801
+ <div style="color:var(--text-muted); text-align:center; padding:2rem;">جاري التحميل...</div>
802
+ </div>
803
+ </div>
804
+ </div>
805
+
806
+ </div>
807
+ <div class="modal-footer" style="justify-content:flex-end;">
808
+ <button type="button" class="btn btn-ghost" onclick="closeModal('modalAppointmentDetail')">إغلاق</button>
809
+ </div>
810
+ </div>
811
+ </div>
812
+
813
+ <!-- Toast Container -->
814
+ <div id="toastContainer" class="toast-container"></div>
815
+
816
+ <script src="/leaflet.js"></script>
817
+ <script src="/complaints/js/app.js?v=21"></script>
818
+ <!-- Map integration -->
819
+ <script src="/complaints/js/map.js"></script>
820
+
821
+ <!-- Floating Chat Widget (Rule 21 Modernized) -->
822
+ <div id="chatPane" class="chat-widget">
823
+ <div class="chat-widget-header" style="display: flex; justify-content: space-between; align-items: center; gap: 8px;">
824
+ <div style="flex:1; min-width:0;">
825
+ <h3 style="margin:0; font-size:0.95rem; display:flex; align-items:center; gap:6px; color:#ffffff !important; flex-wrap:wrap;">
826
+ <span>💬 غرفة الاجتماعات</span>
827
+ <span id="chatDateBadge" class="badge badge-purple" style="font-size:0.65rem; font-weight:700; padding:2px 6px;">المحادثة الفورية</span>
828
+ </h3>
829
+ <div style="font-size:0.68rem; color:rgba(255,255,255,0.85); margin-top:2px;">🧹 تتفرغ المحادثات وتُؤرشف تلقائياً يومياً</div>
830
+ </div>
831
+ <div style="display:flex; align-items:center; gap:6px; flex-shrink:0;">
832
+ <button class="btn btn-sm" onclick="toggleChatArchiveModal()" title="أرشيف المحادثات السابقة" style="color:#ffffff !important; background:rgba(255,255,255,0.18); border:1px solid rgba(255,255,255,0.35); font-size:0.75rem; padding:3px 8px; border-radius:var(--radius-sm); white-space:nowrap;">
833
+ 📜 الأرشيف
834
+ </button>
835
+ <button class="modal-close" onclick="toggleChatPane()" style="color:#ffffff; font-size:1.4rem; cursor:pointer; background:none; border:none; padding:0 4px;">&times;</button>
836
+ </div>
837
+ </div>
838
+ <div class="chat-widget-body">
839
+ <!-- Active Room Participants Section -->
840
+ <div class="chat-online-users">
841
+ <strong>👥 المشاركون الفعّالون بالمحادثة الآن:</strong>
842
+ <div id="onlineUsersList" class="online-users-list"></div>
843
+ </div>
844
+ <div id="chatMessages" class="chat-messages">
845
+ <div class="chat-bubble system">مرحباً بك في نظام التواصل الداخلي. تتجدد الغرفة يومياً ويتم أرشفة الرسائل تلقائياً.</div>
846
+ </div>
847
+ </div>
848
+ <div class="chat-input-area">
849
+ <input type="text" id="chatInput" placeholder="اكتب رسالتك هنا..." onkeydown="handleChatKey(event)">
850
+ <button class="btn btn-primary" onclick="sendChatMessage()">إرسال</button>
851
+ </div>
852
+ </div>
853
+
854
+ <!-- Chat Archive Modal -->
855
+ <div id="modalChatArchive" class="modal-overlay">
856
+ <div class="modal" style="max-width: 650px;">
857
+ <div class="modal-header" style="background: var(--primary-color, #1e3a8a); color: white;">
858
+ <h3 style="margin:0; font-size:1.1rem; color:#ffffff !important;">📜 أرشيف المحادثات اليومية السابقة</h3>
859
+ <button class="modal-close" onclick="closeModal('modalChatArchive')" style="color: white;">&times;</button>
860
+ </div>
861
+ <div class="modal-body" style="padding: 1.25rem;">
862
+ <div style="display: flex; gap: 10px; align-items: center; margin-bottom: 1rem; background: #f8fafc; padding: 10px 14px; border-radius: var(--radius-md); border: 1px solid #e2e8f0;">
863
+ <label style="margin: 0; font-weight: bold; font-size:0.85rem; color:#1e293b;">اختر تاريخ الأرشيف:</label>
864
+ <input type="date" id="chatArchiveDatePicker" class="form-control" onchange="loadArchivedChatByPicker()" style="width: 170px; padding:0.4rem;">
865
+ <button class="btn btn-outline btn-sm" onclick="loadChatArchivesList()" style="font-size:0.8rem;">🔄 القائمة الكاملة</button>
866
+ </div>
867
+
868
+ <div style="font-size:0.8rem; font-weight:bold; color:var(--text-secondary); margin-bottom:6px;">الأيام المؤرشفة المتاحة:</div>
869
+ <div id="chatArchivesListContainer" style="margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: 6px; max-height: 100px; overflow-y: auto; padding:4px; background:#f1f5f9; border-radius:6px;">
870
+ <!-- Populated dynamically -->
871
+ </div>
872
+
873
+ <div style="border: 1px solid #cbd5e1; border-radius: var(--radius-md); padding: 12px; background: #ffffff; box-shadow:0 1px 3px rgba(0,0,0,0.05);">
874
+ <div id="archiveDateTitle" style="font-weight: 800; margin-bottom: 10px; color: #1e3a8a; font-size: 0.9rem; border-bottom:1px dashed #cbd5e1; padding-bottom:6px;">
875
+ اختر يوماً من الأرشيف أعلى الشاشة لعرض السجل كامل.
876
+ </div>
877
+ <div id="archivedChatMessages" class="chat-messages" style="background: #f8fafc; height: 260px; overflow-y: auto; padding:10px; border-radius:6px; border:1px solid #e2e8f0;">
878
+ <div style="text-align: center; color: #64748b; font-size: 0.85rem; padding: 2rem 0;">
879
+ لا توجد رسائل معروضة حالياً.
880
+ </div>
881
+ </div>
882
+ </div>
883
+ </div>
884
+ <div class="modal-footer" style="display:flex; justify-content:space-between; align-items:center;">
885
+ <button class="btn btn-outline" onclick="exportArchivedChatText()">📥 تصدير السجل نصياً (.txt)</button>
886
+ <button class="btn btn-ghost" onclick="closeModal('modalChatArchive')">إغلاق</button>
887
+ </div>
888
+ </div>
889
+ </div>
890
+ </body>
891
+
892
+ </html>
complaints/css/design-system.css ADDED
@@ -0,0 +1,2609 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ Nexus - Modern Offline CSS Framework
3
+ Custom-built to simulate Tailwind/shadcn ui in an offline environment
4
+ */
5
+
6
+ :root {
7
+ /* ═══ Civic Horizon — Stitch MCP System Tokens ═══ */
8
+ --bg-primary: #F8FAFF; /* Stitch Soft Slate Light Canvas */
9
+ --bg-secondary: #FFFFFF; /* Pure White Cards */
10
+ --bg-tertiary: #E6EEFF; /* Soft Blue Container Background */
11
+ --bg-input: #FFFFFF; /* Pure White Inputs */
12
+ --bg-sidebar: #0D2E58; /* Deep National Blue Sidebar */
13
+ --bg-topbar: #0D2E58; /* Deep National Blue Topbar */
14
+
15
+ --text-primary: #0D1C2E; /* Deep Navy Text */
16
+ --text-secondary: #43474F; /* Slate Muted Text */
17
+ --text-muted: #747780; /* Cool Gray Text */
18
+
19
+ --accent-primary: #0D2E58; /* Civic Horizon Deep Blue */
20
+ --accent-primary-hover: #001939; /* Dark Midnight Blue */
21
+ --accent-secondary: #006D39; /* Institutional Emerald Green */
22
+ --accent-warning: #D97706; /* Amber Gold */
23
+ --accent-danger: #BA1A1A; /* Civic Alert Red */
24
+
25
+ --border-color: #CBD5E1; /* Defined Border Lines */
26
+ --border-color-dark: #1E293B; /* Slate 700 Dark Borders */
27
+
28
+ /* Card elevation shadows */
29
+ --shadow-card: 0 4px 14px rgba(13, 46, 88, 0.06), 0 1px 3px rgba(13, 46, 88, 0.04);
30
+ --shadow-card-hover: 0 10px 24px rgba(13, 46, 88, 0.12), 0 4px 8px rgba(13, 46, 88, 0.06);
31
+
32
+ --radius-sm: 0.25rem;
33
+ --radius-md: 0.375rem;
34
+ --radius-lg: 0.5rem;
35
+ --radius-xl: 0.75rem;
36
+ --radius-2xl: 1rem;
37
+
38
+ --font-sans: 'IBM Plex Sans', 'Tajawal', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
39
+ }
40
+
41
+ * {
42
+ box-sizing: border-box;
43
+ margin: 0;
44
+ padding: 0;
45
+ }
46
+
47
+ body {
48
+ font-family: var(--font-sans);
49
+ background-color: var(--bg-primary);
50
+ color: var(--text-primary);
51
+ line-height: 1.5;
52
+ min-height: 100vh;
53
+ font-size: 15px;
54
+ }
55
+
56
+ /* Glassmorphism Utilities */
57
+ .glass {
58
+ background: var(--glass-bg);
59
+ backdrop-filter: blur(12px);
60
+ -webkit-backdrop-filter: blur(12px);
61
+ border: 1px solid var(--glass-border);
62
+ box-shadow: var(--glass-shadow);
63
+ }
64
+
65
+ .glass-panel {
66
+ background: var(--bg-secondary);
67
+ border: 1px solid var(--border-color);
68
+ border-radius: var(--radius-xl);
69
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
70
+ }
71
+
72
+ /* Typography */
73
+ h1, h2, h3, h4, h5, h6 {
74
+ font-weight: 700;
75
+ color: var(--text-primary);
76
+ letter-spacing: -0.025em;
77
+ }
78
+
79
+ p {
80
+ color: var(--text-secondary);
81
+ }
82
+
83
+ /* Buttons */
84
+ .btn {
85
+ display: inline-flex;
86
+ align-items: center;
87
+ justify-content: center;
88
+ padding: 0.5rem 1rem;
89
+ font-size: 0.875rem;
90
+ font-weight: 500;
91
+ border-radius: var(--radius-md);
92
+ border: none;
93
+ cursor: pointer;
94
+ transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
95
+ gap: 0.5rem;
96
+ }
97
+
98
+ .btn:active {
99
+ transform: scale(0.98);
100
+ }
101
+
102
+ .btn-primary {
103
+ background-color: var(--accent-primary);
104
+ color: white;
105
+ }
106
+
107
+ .btn-primary:hover {
108
+ background-color: var(--accent-primary-hover);
109
+ box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
110
+ }
111
+
112
+ .btn-ghost {
113
+ background-color: transparent;
114
+ color: var(--text-primary);
115
+ border: 1px solid var(--border-color);
116
+ }
117
+
118
+ .btn-ghost:hover {
119
+ background-color: var(--bg-tertiary);
120
+ }
121
+
122
+ .btn-outline {
123
+ background-color: transparent;
124
+ color: var(--accent-primary);
125
+ border: 1px solid var(--accent-primary);
126
+ }
127
+ .btn-outline:hover {
128
+ background-color: rgba(59, 130, 246, 0.1);
129
+ }
130
+
131
+ .btn-lg {
132
+ padding: 0.75rem 1.5rem;
133
+ font-size: 1rem;
134
+ }
135
+ .btn-sm {
136
+ padding: 0.25rem 0.75rem;
137
+ font-size: 0.75rem;
138
+ }
139
+ .btn-block {
140
+ width: 100%;
141
+ }
142
+
143
+ /* Inputs & Forms */
144
+ .form-group {
145
+ margin-bottom: 1.25rem;
146
+ display: flex;
147
+ flex-direction: column;
148
+ }
149
+
150
+ .form-group label {
151
+ font-size: 0.875rem;
152
+ font-weight: 700;
153
+ margin-bottom: 0.4rem;
154
+ color: #1E293B; /* Slate 800 - crisp label inside white cards/forms */
155
+ }
156
+
157
+ /* Labels directly on dark main-content tab */
158
+ .tab-content > .form-group label,
159
+ .top-bar label {
160
+ color: #F8FAFC;
161
+ }
162
+
163
+ .form-control {
164
+ background-color: #FFFFFF;
165
+ border: 1.5px solid #94A3B8; /* Sharp, clearly defined border for input boxes */
166
+ color: #0F172A; /* Deep dark black text for maximum readability */
167
+ padding: 0.65rem 0.9rem;
168
+ border-radius: var(--radius-md);
169
+ font-family: inherit;
170
+ font-size: 0.9rem;
171
+ font-weight: 500;
172
+ transition: all 0.2s ease;
173
+ width: 100%;
174
+ max-width: 100%;
175
+ box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
176
+ }
177
+
178
+ .form-control::placeholder {
179
+ color: #64748B;
180
+ font-weight: 400;
181
+ }
182
+
183
+ .form-control:hover {
184
+ border-color: #3B82F6;
185
+ }
186
+
187
+ .form-control:focus {
188
+ outline: none;
189
+ border-color: #2563EB;
190
+ box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
191
+ background-color: #FFFFFF;
192
+ color: #0F172A;
193
+ }
194
+
195
+ .form-row {
196
+ display: flex;
197
+ gap: 1.5rem;
198
+ flex-wrap: wrap; /* Proportional sizing: allow wrapping on small screens */
199
+ }
200
+ .form-row .form-group {
201
+ flex: 1;
202
+ min-width: 250px; /* Prevent shrinking too much */
203
+ }
204
+ .align-center {
205
+ align-items: center;
206
+ }
207
+ .mb-0 { margin-bottom: 0 !important; }
208
+ .mb-2 { margin-bottom: 0.5rem !important; }
209
+ .mb-3 { margin-bottom: 1rem !important; }
210
+
211
+ /* Spinners */
212
+ .spinner {
213
+ width: 1.25rem;
214
+ height: 1.25rem;
215
+ border: 2px solid rgba(255,255,255,0.3);
216
+ border-radius: 50%;
217
+ border-top-color: white;
218
+ animation: spin 1s ease-in-out infinite;
219
+ }
220
+ @keyframes spin {
221
+ to { transform: rotate(360deg); }
222
+ }
223
+
224
+ /* Auth / Login Page */
225
+ .login-container {
226
+ display: flex;
227
+ align-items: center;
228
+ justify-content: center;
229
+ min-height: 100vh;
230
+ padding: 1rem;
231
+ background: radial-gradient(circle at center, var(--bg-secondary) 0%, var(--bg-primary) 100%);
232
+ }
233
+
234
+ .login-card {
235
+ width: 100%;
236
+ max-width: 420px;
237
+ padding: 2.5rem;
238
+ text-align: center;
239
+ }
240
+
241
+ .login-card h2 {
242
+ font-size: 1.75rem;
243
+ margin-bottom: 0.5rem;
244
+ margin-top: 1rem;
245
+ }
246
+ .login-subtitle {
247
+ font-size: 0.875rem;
248
+ margin-bottom: 2rem;
249
+ }
250
+ .login-icon {
251
+ font-size: 3rem;
252
+ background: linear-gradient(135deg, var(--accent-primary), #60a5fa);
253
+ -webkit-background-clip: text;
254
+ -webkit-text-fill-color: transparent;
255
+ }
256
+ .form-error {
257
+ color: var(--accent-danger);
258
+ font-size: 0.875rem;
259
+ margin-bottom: 1rem;
260
+ background: rgba(239, 68, 68, 0.1);
261
+ padding: 0.5rem;
262
+ border-radius: var(--radius-sm);
263
+ display: none;
264
+ }
265
+ .form-error.show {
266
+ display: block;
267
+ }
268
+
269
+ /* Layout Architecture */
270
+ .app-layout {
271
+ display: flex;
272
+ height: 100vh;
273
+ overflow: hidden;
274
+ width: 100%;
275
+ max-width: 100vw;
276
+ }
277
+
278
+ /* ════════════════════ STITCH MCP ELEGANT SIDEBAR ════════════════════ */
279
+ .sidebar {
280
+ width: 280px;
281
+ background: linear-gradient(180deg, #0D2E58 0%, #0F172A 100%);
282
+ border-left: 1px solid rgba(255, 255, 255, 0.08); /* RTL border */
283
+ display: flex;
284
+ flex-direction: column;
285
+ transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
286
+ z-index: 100;
287
+ box-shadow: -4px 0 25px rgba(0, 0, 0, 0.25);
288
+ position: relative;
289
+ user-select: none;
290
+ }
291
+
292
+ .main-content {
293
+ flex: 1;
294
+ display: flex;
295
+ flex-direction: column;
296
+ overflow-y: auto;
297
+ overflow-x: hidden;
298
+ background-color: var(--bg-primary);
299
+ min-width: 0;
300
+ }
301
+
302
+ /* Sidebar Header & Logo Box Redesign */
303
+ .sidebar-header {
304
+ padding: 0.9rem 0.85rem;
305
+ display: flex;
306
+ align-items: center;
307
+ justify-content: flex-start;
308
+ gap: 0.65rem;
309
+ border-bottom: 1px solid rgba(255, 255, 255, 0.08);
310
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
311
+ backdrop-filter: blur(12px);
312
+ position: relative;
313
+ }
314
+
315
+ .sidebar .logo-container {
316
+ background: linear-gradient(135deg, #FFFFFF 0%, #F0F6FF 100%);
317
+ border: 1.5px solid rgba(255, 255, 255, 0.7);
318
+ border-radius: 14px;
319
+ padding: 4px;
320
+ display: flex;
321
+ align-items: center;
322
+ justify-content: center;
323
+ width: 60px;
324
+ height: 60px;
325
+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3), inset 0 1px 1px #ffffff;
326
+ flex-shrink: 0;
327
+ transition: all 0.25s ease;
328
+ }
329
+
330
+ .sidebar .logo-container:hover {
331
+ transform: translateY(-2px) scale(1.04);
332
+ box-shadow: 0 8px 22px rgba(59, 130, 246, 0.4);
333
+ }
334
+
335
+ .sidebar .logo-img {
336
+ width: 52px;
337
+ height: 52px;
338
+ object-fit: contain;
339
+ filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.16));
340
+ }
341
+
342
+ .sidebar .header-titles {
343
+ flex: 1;
344
+ min-width: 0;
345
+ display: flex;
346
+ flex-direction: column;
347
+ justify-content: center;
348
+ gap: 1px;
349
+ }
350
+
351
+ .header-brand-badge {
352
+ display: inline-flex;
353
+ align-items: center;
354
+ gap: 4px;
355
+ background: rgba(96, 165, 250, 0.15);
356
+ border: 1px solid rgba(96, 165, 250, 0.3);
357
+ padding: 1px 6px;
358
+ border-radius: 4px;
359
+ max-width: 100%;
360
+ margin-bottom: 2px;
361
+ }
362
+
363
+ .header-brand-badge .brand-acronym {
364
+ font-size: 0.65rem;
365
+ font-weight: 900;
366
+ color: #60A5FA;
367
+ letter-spacing: 0.04em;
368
+ flex-shrink: 0;
369
+ }
370
+
371
+ .header-brand-badge .brand-fullname {
372
+ font-size: 0.58rem;
373
+ color: #CBD5E1;
374
+ font-weight: 500;
375
+ white-space: nowrap;
376
+ overflow: hidden;
377
+ text-overflow: ellipsis;
378
+ max-width: 120px;
379
+ }
380
+
381
+ .sidebar .header-main-title {
382
+ font-size: 0.92rem;
383
+ font-weight: 800;
384
+ margin: 0;
385
+ color: #FFFFFF !important;
386
+ line-height: 1.25;
387
+ white-space: normal;
388
+ word-break: keep-all;
389
+ }
390
+
391
+ .sidebar .header-jurisdiction {
392
+ font-size: 0.7rem;
393
+ margin: 1px 0 0 0;
394
+ color: #94A3B8 !important;
395
+ display: flex;
396
+ align-items: center;
397
+ gap: 0.35rem;
398
+ white-space: nowrap;
399
+ overflow: hidden;
400
+ text-overflow: ellipsis;
401
+ }
402
+
403
+ /* Close button for Mobile Drawer Header */
404
+ .sidebar-close-btn {
405
+ display: none; /* Visible on mobile */
406
+ background: rgba(255, 255, 255, 0.1);
407
+ border: 1px solid rgba(255, 255, 255, 0.2);
408
+ color: #FFFFFF;
409
+ width: 32px;
410
+ height: 32px;
411
+ border-radius: 8px;
412
+ cursor: pointer;
413
+ align-items: center;
414
+ justify-content: center;
415
+ font-size: 1rem;
416
+ transition: all 0.2s ease;
417
+ flex-shrink: 0;
418
+ }
419
+
420
+ .sidebar-close-btn:hover {
421
+ background: rgba(239, 68, 68, 0.8);
422
+ border-color: #EF4444;
423
+ transform: scale(1.05);
424
+ }
425
+
426
+ /* Sidebar Menu Container */
427
+ .sidebar-menu {
428
+ flex: 1;
429
+ overflow-y: auto;
430
+ padding: 0.85rem 0.75rem;
431
+ display: flex;
432
+ flex-direction: column;
433
+ gap: 0.35rem;
434
+ }
435
+
436
+ .sidebar-menu::-webkit-scrollbar {
437
+ width: 4px;
438
+ }
439
+ .sidebar-menu::-webkit-scrollbar-thumb {
440
+ background: rgba(255, 255, 255, 0.15);
441
+ border-radius: 4px;
442
+ }
443
+ .sidebar-menu::-webkit-scrollbar-thumb:hover {
444
+ background: rgba(255, 255, 255, 0.3);
445
+ }
446
+
447
+ /* Nav Group Accordion */
448
+ .nav-group {
449
+ display: flex;
450
+ flex-direction: column;
451
+ margin-bottom: 0.25rem;
452
+ border-radius: var(--radius-md);
453
+ transition: background 0.2s ease;
454
+ }
455
+
456
+ .nav-group-header {
457
+ display: flex;
458
+ align-items: center;
459
+ justify-content: space-between;
460
+ width: 100%;
461
+ padding: 0.65rem 0.85rem;
462
+ background: transparent;
463
+ border: none;
464
+ color: #94A3B8 !important;
465
+ font-weight: 700;
466
+ font-size: 0.78rem;
467
+ cursor: pointer;
468
+ letter-spacing: 0.04em;
469
+ border-radius: var(--radius-md);
470
+ transition: all 0.2s ease;
471
+ }
472
+
473
+ .nav-group-header:hover {
474
+ color: #F1F5F9 !important;
475
+ background: rgba(255, 255, 255, 0.05);
476
+ }
477
+
478
+ .nav-header-left {
479
+ display: flex;
480
+ align-items: center;
481
+ gap: 0.6rem;
482
+ }
483
+
484
+ .nav-chevron {
485
+ font-size: 0.7rem;
486
+ transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
487
+ opacity: 0.7;
488
+ }
489
+
490
+ .nav-group.expanded .nav-chevron {
491
+ transform: rotate(180deg);
492
+ opacity: 1;
493
+ }
494
+
495
+ .nav-sub-menu {
496
+ display: none;
497
+ flex-direction: column;
498
+ gap: 0.2rem;
499
+ padding-top: 0.2rem;
500
+ padding-right: 0.5rem;
501
+ }
502
+
503
+ .nav-group.expanded .nav-sub-menu {
504
+ display: flex;
505
+ }
506
+
507
+ /* Nav Items */
508
+ .nav-item {
509
+ display: flex;
510
+ align-items: center;
511
+ gap: 0.75rem;
512
+ padding: 0.7rem 0.9rem;
513
+ width: 100%;
514
+ background: transparent;
515
+ border: 1px solid transparent;
516
+ border-radius: 10px;
517
+ color: #CBD5E1 !important;
518
+ font-size: 0.9rem;
519
+ font-weight: 600;
520
+ cursor: pointer;
521
+ transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
522
+ text-align: right;
523
+ position: relative;
524
+ overflow: hidden;
525
+ }
526
+
527
+ .nav-item .nav-icon {
528
+ font-size: 1.1rem;
529
+ transition: transform 0.2s ease;
530
+ flex-shrink: 0;
531
+ }
532
+
533
+ .nav-item .nav-text {
534
+ flex: 1;
535
+ white-space: nowrap;
536
+ overflow: hidden;
537
+ text-overflow: ellipsis;
538
+ }
539
+
540
+ .nav-item:hover {
541
+ background: rgba(255, 255, 255, 0.08) !important;
542
+ color: #FFFFFF !important;
543
+ transform: translateX(-2px);
544
+ }
545
+
546
+ .nav-item:hover .nav-icon {
547
+ transform: scale(1.15);
548
+ }
549
+
550
+ .nav-item.active {
551
+ background: linear-gradient(90deg, #2563EB 0%, #1D4ED8 100%) !important;
552
+ color: #FFFFFF !important;
553
+ font-weight: 700 !important;
554
+ border-color: rgba(255, 255, 255, 0.2);
555
+ box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
556
+ border-right: 4px solid #60A5FA !important;
557
+ }
558
+
559
+ .nav-item.active .nav-icon {
560
+ transform: scale(1.1);
561
+ }
562
+
563
+ .nav-item .badge {
564
+ background: var(--accent-danger);
565
+ color: white;
566
+ padding: 2px 7px;
567
+ border-radius: 9999px;
568
+ font-size: 0.7rem;
569
+ font-weight: 800;
570
+ margin-right: auto;
571
+ }
572
+
573
+ /* Sidebar Footer & User Profile */
574
+ .sidebar-footer {
575
+ padding: 0.85rem 0.85rem;
576
+ border-top: 1px solid rgba(255, 255, 255, 0.08);
577
+ background: rgba(0, 0, 0, 0.25);
578
+ display: flex;
579
+ flex-direction: column;
580
+ gap: 0.75rem;
581
+ }
582
+
583
+ .sidebar .user-info-card {
584
+ display: flex;
585
+ align-items: center;
586
+ gap: 0.75rem;
587
+ padding: 0.6rem 0.75rem;
588
+ background: rgba(255, 255, 255, 0.04);
589
+ border: 1px solid rgba(255, 255, 255, 0.06);
590
+ border-radius: 12px;
591
+ transition: background 0.2s ease;
592
+ }
593
+
594
+ .sidebar .user-info-card:hover {
595
+ background: rgba(255, 255, 255, 0.08);
596
+ }
597
+
598
+ .user-avatar-wrapper {
599
+ position: relative;
600
+ flex-shrink: 0;
601
+ }
602
+
603
+ .sidebar .user-avatar {
604
+ width: 38px;
605
+ height: 38px;
606
+ border-radius: 50%;
607
+ background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
608
+ color: #FFFFFF;
609
+ display: flex;
610
+ align-items: center;
611
+ justify-content: center;
612
+ font-size: 1.1rem;
613
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
614
+ }
615
+
616
+ .user-status-dot {
617
+ position: absolute;
618
+ bottom: 0;
619
+ left: 0;
620
+ width: 10px;
621
+ height: 10px;
622
+ background: #22C55E;
623
+ border: 2px solid #0F172A;
624
+ border-radius: 50%;
625
+ animation: pulse-green 2s infinite;
626
+ }
627
+
628
+ .sidebar .user-details {
629
+ display: flex;
630
+ flex-direction: column;
631
+ min-width: 0;
632
+ }
633
+
634
+ .sidebar .user-name {
635
+ font-weight: 700 !important;
636
+ font-size: 0.85rem;
637
+ color: #FFFFFF !important;
638
+ white-space: nowrap;
639
+ overflow: hidden;
640
+ text-overflow: ellipsis;
641
+ }
642
+
643
+ .sidebar .role-badge-sidebar {
644
+ font-size: 0.7rem;
645
+ color: #93C5FD !important;
646
+ background: rgba(59, 130, 246, 0.25) !important;
647
+ border: 1px solid rgba(147, 197, 253, 0.2);
648
+ padding: 0.1rem 0.5rem;
649
+ border-radius: 6px;
650
+ display: inline-block;
651
+ margin-top: 2px;
652
+ font-weight: 600;
653
+ width: fit-content;
654
+ }
655
+
656
+ .btn-logout-sidebar {
657
+ width: 100%;
658
+ padding: 0.6rem 0.85rem;
659
+ background: rgba(255, 255, 255, 0.05);
660
+ border: 1px solid rgba(255, 255, 255, 0.15);
661
+ color: #F1F5F9;
662
+ border-radius: 10px;
663
+ cursor: pointer;
664
+ transition: all 0.2s ease;
665
+ display: flex;
666
+ align-items: center;
667
+ justify-content: center;
668
+ gap: 0.5rem;
669
+ font-size: 0.85rem;
670
+ font-weight: 600;
671
+ }
672
+
673
+ .nav-header-left {
674
+ display: flex;
675
+ align-items: center;
676
+ gap: 0.6rem;
677
+ }
678
+
679
+ .nav-chevron {
680
+ font-size: 0.7rem;
681
+ transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
682
+ opacity: 0.7;
683
+ }
684
+
685
+ .nav-group.expanded .nav-chevron {
686
+ transform: rotate(180deg);
687
+ opacity: 1;
688
+ }
689
+
690
+ .nav-sub-menu {
691
+ display: none;
692
+ flex-direction: column;
693
+ gap: 0.2rem;
694
+ padding-top: 0.2rem;
695
+ padding-right: 0.5rem;
696
+ }
697
+
698
+ .nav-group.expanded .nav-sub-menu {
699
+ display: flex;
700
+ }
701
+
702
+ /* Nav Items */
703
+ .nav-item {
704
+ display: flex;
705
+ align-items: center;
706
+ gap: 0.75rem;
707
+ padding: 0.7rem 0.9rem;
708
+ width: 100%;
709
+ background: transparent;
710
+ border: 1px solid transparent;
711
+ border-radius: 10px;
712
+ color: #CBD5E1 !important;
713
+ font-size: 0.9rem;
714
+ font-weight: 600;
715
+ cursor: pointer;
716
+ transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
717
+ text-align: right;
718
+ position: relative;
719
+ overflow: hidden;
720
+ }
721
+
722
+ .nav-item .nav-icon {
723
+ font-size: 1.1rem;
724
+ transition: transform 0.2s ease;
725
+ flex-shrink: 0;
726
+ }
727
+
728
+ .nav-item .nav-text {
729
+ flex: 1;
730
+ white-space: nowrap;
731
+ overflow: hidden;
732
+ text-overflow: ellipsis;
733
+ }
734
+
735
+ .nav-item:hover {
736
+ background: rgba(255, 255, 255, 0.08) !important;
737
+ color: #FFFFFF !important;
738
+ transform: translateX(-2px);
739
+ }
740
+
741
+ .nav-item:hover .nav-icon {
742
+ transform: scale(1.15);
743
+ }
744
+
745
+ .nav-item.active {
746
+ background: linear-gradient(90deg, #2563EB 0%, #1D4ED8 100%) !important;
747
+ color: #FFFFFF !important;
748
+ font-weight: 700 !important;
749
+ border-color: rgba(255, 255, 255, 0.2);
750
+ box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
751
+ border-right: 4px solid #60A5FA !important;
752
+ }
753
+
754
+ .nav-item.active .nav-icon {
755
+ transform: scale(1.1);
756
+ }
757
+
758
+ .nav-item .badge {
759
+ background: var(--accent-danger);
760
+ color: white;
761
+ padding: 2px 7px;
762
+ border-radius: 9999px;
763
+ font-size: 0.7rem;
764
+ font-weight: 800;
765
+ margin-right: auto;
766
+ }
767
+
768
+ /* Sidebar Footer & User Profile */
769
+ .sidebar-footer {
770
+ padding: 0.85rem 0.85rem;
771
+ border-top: 1px solid rgba(255, 255, 255, 0.08);
772
+ background: rgba(0, 0, 0, 0.25);
773
+ display: flex;
774
+ flex-direction: column;
775
+ gap: 0.75rem;
776
+ }
777
+
778
+ .sidebar .user-info-card {
779
+ display: flex;
780
+ align-items: center;
781
+ gap: 0.75rem;
782
+ padding: 0.6rem 0.75rem;
783
+ background: rgba(255, 255, 255, 0.04);
784
+ border: 1px solid rgba(255, 255, 255, 0.06);
785
+ border-radius: 12px;
786
+ transition: background 0.2s ease;
787
+ }
788
+
789
+ .sidebar .user-info-card:hover {
790
+ background: rgba(255, 255, 255, 0.08);
791
+ }
792
+
793
+ .user-avatar-wrapper {
794
+ position: relative;
795
+ flex-shrink: 0;
796
+ }
797
+
798
+ .sidebar .user-avatar {
799
+ width: 38px;
800
+ height: 38px;
801
+ border-radius: 50%;
802
+ background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
803
+ color: #FFFFFF;
804
+ display: flex;
805
+ align-items: center;
806
+ justify-content: center;
807
+ font-size: 1.1rem;
808
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
809
+ }
810
+
811
+ .user-status-dot {
812
+ position: absolute;
813
+ bottom: 0;
814
+ left: 0;
815
+ width: 10px;
816
+ height: 10px;
817
+ background: #22C55E;
818
+ border: 2px solid #0F172A;
819
+ border-radius: 50%;
820
+ animation: pulse-green 2s infinite;
821
+ }
822
+
823
+ .sidebar .user-details {
824
+ display: flex;
825
+ flex-direction: column;
826
+ min-width: 0;
827
+ }
828
+
829
+ .sidebar .user-name {
830
+ font-weight: 700 !important;
831
+ font-size: 0.85rem;
832
+ color: #FFFFFF !important;
833
+ white-space: nowrap;
834
+ overflow: hidden;
835
+ text-overflow: ellipsis;
836
+ }
837
+
838
+ .sidebar .role-badge-sidebar {
839
+ font-size: 0.7rem;
840
+ color: #93C5FD !important;
841
+ background: rgba(59, 130, 246, 0.25) !important;
842
+ border: 1px solid rgba(147, 197, 253, 0.2);
843
+ padding: 0.1rem 0.5rem;
844
+ border-radius: 6px;
845
+ display: inline-block;
846
+ margin-top: 2px;
847
+ font-weight: 600;
848
+ width: fit-content;
849
+ }
850
+
851
+ .btn-logout-sidebar {
852
+ width: 100%;
853
+ padding: 0.6rem 0.85rem;
854
+ background: rgba(255, 255, 255, 0.05);
855
+ border: 1px solid rgba(255, 255, 255, 0.15);
856
+ color: #F1F5F9;
857
+ border-radius: 10px;
858
+ cursor: pointer;
859
+ transition: all 0.2s ease;
860
+ display: flex;
861
+ align-items: center;
862
+ justify-content: center;
863
+ gap: 0.5rem;
864
+ font-size: 0.85rem;
865
+ font-weight: 600;
866
+ }
867
+
868
+ .btn-logout-sidebar:hover {
869
+ background: var(--accent-danger);
870
+ color: white;
871
+ border-color: var(--accent-danger);
872
+ box-shadow: 0 4px 12px rgba(186, 26, 26, 0.3);
873
+ }
874
+
875
+ /* Desktop Collapsed Mini-Sidebar (68px - Styled & Aligned Icons) */
876
+ .sidebar.collapsed {
877
+ width: 68px;
878
+ }
879
+
880
+ .sidebar.collapsed .header-titles,
881
+ .sidebar.collapsed .nav-text,
882
+ .sidebar.collapsed .nav-group-header .nav-text,
883
+ .sidebar.collapsed .nav-group-header .nav-chevron,
884
+ .sidebar.collapsed .user-details,
885
+ .sidebar.collapsed .logout-text,
886
+ .sidebar.collapsed .header-subtitle {
887
+ opacity: 0;
888
+ visibility: hidden;
889
+ position: absolute;
890
+ pointer-events: none;
891
+ transition: opacity 0.15s ease;
892
+ }
893
+
894
+ .sidebar.collapsed .sidebar-header {
895
+ padding: 0.75rem 0.25rem !important;
896
+ justify-content: center !important;
897
+ }
898
+
899
+ .sidebar.collapsed .logo-container {
900
+ width: 38px !important;
901
+ height: 38px !important;
902
+ padding: 3px !important;
903
+ margin: 0 auto !important;
904
+ }
905
+
906
+ .sidebar.collapsed .logo-img {
907
+ width: 26px !important;
908
+ height: 26px !important;
909
+ }
910
+
911
+ .sidebar.collapsed .nav-group {
912
+ align-items: center !important;
913
+ margin-bottom: 0.25rem !important;
914
+ }
915
+
916
+ .sidebar.collapsed .nav-group-header {
917
+ justify-content: center !important;
918
+ padding: 0.45rem 0 !important;
919
+ width: 100% !important;
920
+ }
921
+
922
+ .sidebar.collapsed .nav-sub-menu {
923
+ padding-right: 0 !important;
924
+ padding-left: 0 !important;
925
+ margin: 0 !important;
926
+ align-items: center !important;
927
+ width: 100% !important;
928
+ }
929
+
930
+ .sidebar.collapsed .nav-item {
931
+ justify-content: center !important;
932
+ padding: 0.45rem 0 !important;
933
+ border-radius: 10px !important;
934
+ width: 100% !important;
935
+ }
936
+
937
+ .sidebar.collapsed .nav-icon {
938
+ opacity: 1 !important;
939
+ visibility: visible !important;
940
+ position: static !important;
941
+ pointer-events: auto !important;
942
+ font-size: 1.05rem !important;
943
+ width: 36px !important;
944
+ height: 36px !important;
945
+ border-radius: 10px !important;
946
+ display: flex !important;
947
+ align-items: center !important;
948
+ justify-content: center !important;
949
+ margin: 0 auto !important;
950
+ transition: all 0.2s ease !important;
951
+ }
952
+
953
+ .sidebar.collapsed .standalone-meeting-btn {
954
+ padding: 0.45rem 0 !important;
955
+ justify-content: center !important;
956
+ border-radius: 10px !important;
957
+ }
958
+
959
+ .sidebar.collapsed .standalone-meeting-btn #onlineUsersCount {
960
+ position: absolute !important;
961
+ top: -2px !important;
962
+ right: 6px !important;
963
+ font-size: 0.65rem !important;
964
+ padding: 1px 5px !important;
965
+ }
966
+
967
+ .sidebar.collapsed .sidebar-footer {
968
+ padding: 0.5rem 0.25rem !important;
969
+ align-items: center !important;
970
+ }
971
+
972
+ .sidebar.collapsed .user-info-card {
973
+ justify-content: center !important;
974
+ padding: 0.2rem 0 !important;
975
+ background: transparent !important;
976
+ border: none !important;
977
+ }
978
+
979
+ .sidebar.collapsed .user-avatar {
980
+ width: 34px !important;
981
+ height: 34px !important;
982
+ font-size: 0.95rem !important;
983
+ }
984
+
985
+ .sidebar.collapsed .user-status-dot {
986
+ width: 8px !important;
987
+ height: 8px !important;
988
+ bottom: 0 !important;
989
+ left: 2px !important;
990
+ }
991
+
992
+ .sidebar.collapsed .btn-logout-sidebar {
993
+ padding: 0.5rem 0 !important;
994
+ justify-content: center !important;
995
+ border-radius: 8px !important;
996
+ }
997
+
998
+ .sidebar.collapsed .user-info-card {
999
+ justify-content: center;
1000
+ padding: 0.4rem;
1001
+ background: transparent;
1002
+ border: none;
1003
+ }
1004
+
1005
+ .sidebar.collapsed .btn-logout-sidebar {
1006
+ padding: 0.6rem 0;
1007
+ }
1008
+
1009
+ /* ════════════════════ COLLAPSED SIDEBAR HOVER EXPANSION ════════════════════ */
1010
+ @media (min-width: 993px) {
1011
+ /* Hover state for collapsed sidebar */
1012
+ .sidebar.collapsed:hover,
1013
+ .sidebar.collapsed.hover-expanded {
1014
+ width: 280px !important;
1015
+ box-shadow: -10px 0 35px rgba(0, 0, 0, 0.45) !important;
1016
+ z-index: 1000 !important;
1017
+ }
1018
+
1019
+ /* Reveal all hidden elements on hover */
1020
+ .sidebar.collapsed:hover .header-titles,
1021
+ .sidebar.collapsed:hover .nav-text,
1022
+ .sidebar.collapsed:hover .nav-group-header .nav-text,
1023
+ .sidebar.collapsed:hover .nav-group-header .nav-chevron,
1024
+ .sidebar.collapsed:hover .user-details,
1025
+ .sidebar.collapsed:hover .logout-text,
1026
+ .sidebar.collapsed:hover .header-subtitle,
1027
+ .sidebar.collapsed.hover-expanded .header-titles,
1028
+ .sidebar.collapsed.hover-expanded .nav-text,
1029
+ .sidebar.collapsed.hover-expanded .nav-group-header .nav-text,
1030
+ .sidebar.collapsed.hover-expanded .nav-group-header .nav-chevron,
1031
+ .sidebar.collapsed.hover-expanded .user-details,
1032
+ .sidebar.collapsed.hover-expanded .logout-text,
1033
+ .sidebar.collapsed.hover-expanded .header-subtitle {
1034
+ opacity: 1 !important;
1035
+ visibility: visible !important;
1036
+ position: static !important;
1037
+ pointer-events: auto !important;
1038
+ transition: opacity 0.25s ease 0.08s !important;
1039
+ }
1040
+
1041
+ /* Restore layout alignments on hover */
1042
+ .sidebar.collapsed:hover .nav-group-header,
1043
+ .sidebar.collapsed.hover-expanded .nav-group-header {
1044
+ justify-content: space-between !important;
1045
+ padding: 0.65rem 0.85rem !important;
1046
+ }
1047
+
1048
+ .sidebar.collapsed:hover .nav-item,
1049
+ .sidebar.collapsed.hover-expanded .nav-item {
1050
+ justify-content: flex-start !important;
1051
+ padding: 0.7rem 0.9rem !important;
1052
+ border-radius: 10px !important;
1053
+ }
1054
+
1055
+ .sidebar.collapsed:hover .nav-icon,
1056
+ .sidebar.collapsed.hover-expanded .nav-icon {
1057
+ font-size: 1.1rem !important;
1058
+ margin: 0 0 0 0.65rem !important;
1059
+ display: inline-block !important;
1060
+ }
1061
+
1062
+ .sidebar.collapsed:hover .logo-container,
1063
+ .sidebar.collapsed.hover-expanded .logo-container {
1064
+ width: 48px !important;
1065
+ height: 48px !important;
1066
+ padding: 4px !important;
1067
+ }
1068
+
1069
+ .sidebar.collapsed:hover .logo-img,
1070
+ .sidebar.collapsed.hover-expanded .logo-img {
1071
+ width: 38px !important;
1072
+ height: 38px !important;
1073
+ }
1074
+
1075
+ .sidebar.collapsed:hover .sidebar-footer,
1076
+ .sidebar.collapsed.hover-expanded .sidebar-footer {
1077
+ padding: 0.85rem 0.85rem !important;
1078
+ }
1079
+
1080
+ .sidebar.collapsed:hover .user-info-card,
1081
+ .sidebar.collapsed.hover-expanded .user-info-card {
1082
+ justify-content: flex-start !important;
1083
+ padding: 0.6rem 0.75rem !important;
1084
+ background: rgba(255, 255, 255, 0.04) !important;
1085
+ border: 1px solid rgba(255, 255, 255, 0.06) !important;
1086
+ }
1087
+
1088
+ .sidebar.collapsed:hover .btn-logout-sidebar,
1089
+ .sidebar.collapsed.hover-expanded .btn-logout-sidebar {
1090
+ padding: 0.6rem 0.85rem !important;
1091
+ }
1092
+ }
1093
+
1094
+ /* Backdrop Blur Overlay for Mobile Drawer */
1095
+ .sidebar-backdrop {
1096
+ position: fixed;
1097
+ top: 0;
1098
+ left: 0;
1099
+ right: 0;
1100
+ bottom: 0;
1101
+ background: rgba(15, 23, 42, 0.65);
1102
+ backdrop-filter: blur(6px);
1103
+ -webkit-backdrop-filter: blur(6px);
1104
+ z-index: 999;
1105
+ opacity: 0;
1106
+ visibility: hidden;
1107
+ transition: opacity 0.3s ease, visibility 0.3s ease;
1108
+ }
1109
+
1110
+ .sidebar-backdrop.show {
1111
+ opacity: 1;
1112
+ visibility: visible;
1113
+ }
1114
+
1115
+ /* Main Content */
1116
+ .main-content {
1117
+ flex: 1;
1118
+ display: flex;
1119
+ flex-direction: column;
1120
+ position: relative;
1121
+ overflow: hidden;
1122
+ background: #F1F5F9; /* Soft light slate workspace canvas */
1123
+ }
1124
+
1125
+ .top-bar {
1126
+ display: flex;
1127
+ justify-content: space-between;
1128
+ align-items: center;
1129
+ padding: 0.75rem 1.5rem;
1130
+ background: #0F172A;
1131
+ border-bottom: 1px solid #1E293B;
1132
+ box-shadow: 0 4px 12px rgba(0,0,0,0.25);
1133
+ z-index: 20;
1134
+ }
1135
+ .top-bar-left, .top-bar-right {
1136
+ display: flex;
1137
+ align-items: center;
1138
+ gap: 1rem;
1139
+ }
1140
+
1141
+ /* Top bar meeting room button */
1142
+ .meeting-room-top-btn {
1143
+ display: flex;
1144
+ align-items: center;
1145
+ gap: 8px;
1146
+ font-weight: 600;
1147
+ font-size: 0.88rem;
1148
+ color: #ffffff !important;
1149
+ background: rgba(255, 255, 255, 0.12);
1150
+ border: 1px solid rgba(255, 255, 255, 0.25);
1151
+ padding: 0.45rem 0.85rem;
1152
+ border-radius: var(--radius-md);
1153
+ transition: all 0.2s ease;
1154
+ cursor: pointer;
1155
+ }
1156
+
1157
+ .meeting-room-top-btn:hover {
1158
+ background: rgba(255, 255, 255, 0.22);
1159
+ border-color: rgba(255, 255, 255, 0.4);
1160
+ transform: translateY(-1px);
1161
+ }
1162
+
1163
+ .meeting-btn-badge {
1164
+ background: #22c55e;
1165
+ color: #ffffff;
1166
+ font-size: 0.75rem;
1167
+ padding: 2px 7px;
1168
+ border-radius: 10px;
1169
+ font-weight: 800;
1170
+ box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
1171
+ }
1172
+
1173
+ @media (max-width: 640px) {
1174
+ .meeting-btn-text, .top-logout-text {
1175
+ display: none;
1176
+ }
1177
+ }
1178
+
1179
+ /* Top bar logout button */
1180
+ .top-logout-btn {
1181
+ display: flex;
1182
+ align-items: center;
1183
+ gap: 6px;
1184
+ font-weight: 600;
1185
+ font-size: 0.88rem;
1186
+ color: #ffffff !important;
1187
+ background: rgba(239, 68, 68, 0.2) !important;
1188
+ border: 1px solid rgba(239, 68, 68, 0.4) !important;
1189
+ padding: 0.45rem 0.85rem;
1190
+ border-radius: var(--radius-md);
1191
+ transition: all 0.2s ease;
1192
+ cursor: pointer;
1193
+ }
1194
+
1195
+ .top-logout-btn:hover {
1196
+ background: rgba(239, 68, 68, 0.38) !important;
1197
+ border-color: #ef4444 !important;
1198
+ transform: translateY(-1px);
1199
+ box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
1200
+ }
1201
+
1202
+ .search-bar-container {
1203
+ display: flex;
1204
+ align-items: center;
1205
+ background: #1E293B !important;
1206
+ border: 1.5px solid #475569 !important;
1207
+ border-radius: var(--radius-xl);
1208
+ padding: 0.35rem 1rem;
1209
+ max-width: 600px;
1210
+ margin: 0 auto;
1211
+ width: 100%;
1212
+ }
1213
+ .search-bar .search-icon {
1214
+ color: #94A3B8;
1215
+ font-size: 1.2rem;
1216
+ margin-left: 1rem; /* RTL */
1217
+ }
1218
+ .search-bar input {
1219
+ flex: 1;
1220
+ background: transparent;
1221
+ border: none;
1222
+ color: #FFFFFF !important;
1223
+ font-size: 0.95rem;
1224
+ outline: none;
1225
+ }
1226
+ .search-bar input::placeholder {
1227
+ color: #94A3B8 !important;
1228
+ }
1229
+
1230
+ /* Tool Cards */
1231
+ .tool-card {
1232
+ background: #FFFFFF;
1233
+ padding: 15px;
1234
+ border-radius: var(--radius-md);
1235
+ text-align: center;
1236
+ border: 1px solid #CBD5E1;
1237
+ color: #0F172A;
1238
+ font-size: 1rem;
1239
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
1240
+ transition: transform 0.2s ease, background 0.2s ease;
1241
+ }
1242
+ .tool-card:hover {
1243
+ transform: translateY(-2px);
1244
+ background: #FFFFFF;
1245
+ border-color: #2563EB;
1246
+ }
1247
+
1248
+ /* Tabs */
1249
+ .tab-content {
1250
+ display: none;
1251
+ padding: 1.5rem 2rem;
1252
+ flex: 1;
1253
+ overflow-y: auto;
1254
+ animation: fadeIn 0.3s ease;
1255
+ }
1256
+ .tab-content.active {
1257
+ display: block;
1258
+ }
1259
+
1260
+ @keyframes fadeIn {
1261
+ from { opacity: 0; transform: translateY(10px); }
1262
+ to { opacity: 1; transform: translateY(0); }
1263
+ }
1264
+
1265
+ .page-title {
1266
+ display: flex;
1267
+ justify-content: space-between;
1268
+ align-items: center;
1269
+ flex-wrap: wrap;
1270
+ gap: 1rem;
1271
+ margin-bottom: 1.5rem;
1272
+ padding-bottom: 0.75rem;
1273
+ border-bottom: 2px solid #CBD5E1;
1274
+ }
1275
+ .page-title .title-text {
1276
+ font-size: 1.35rem;
1277
+ font-weight: 800;
1278
+ color: #0F172A !important; /* Deep dark slate 900 title - 100% crisp on light canvas */
1279
+ display: flex;
1280
+ align-items: center;
1281
+ gap: 0.5rem;
1282
+ letter-spacing: -0.01em;
1283
+ }
1284
+
1285
+ /* Headings inside workspace canvas */
1286
+ .tab-content > h1, .tab-content > h2, .tab-content > h3, .tab-content > h4 {
1287
+ color: #0F172A !important;
1288
+ }
1289
+ .tab-content > p {
1290
+ color: #475569 !important;
1291
+ }
1292
+
1293
+ /* Bento Grid Dashboard & Premium Stat Cards */
1294
+ .stats-grid {
1295
+ display: grid;
1296
+ grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
1297
+ gap: 1.25rem;
1298
+ margin-bottom: 1.75rem;
1299
+ }
1300
+
1301
+ .stats-grid-3 {
1302
+ display: grid;
1303
+ grid-template-columns: repeat(3, 1fr);
1304
+ gap: 1.25rem;
1305
+ margin-bottom: 1.75rem;
1306
+ }
1307
+
1308
+ @media (max-width: 768px) {
1309
+ .stats-grid-3 {
1310
+ grid-template-columns: 1fr;
1311
+ }
1312
+ }
1313
+
1314
+ .stat-card {
1315
+ background: #FFFFFF;
1316
+ border: 1px solid #CBD5E1;
1317
+ border-radius: 16px;
1318
+ padding: 1.25rem 1.4rem;
1319
+ position: relative;
1320
+ overflow: hidden;
1321
+ transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
1322
+ box-shadow: 0 4px 14px rgba(13, 46, 88, 0.06), 0 1px 3px rgba(13, 46, 88, 0.04);
1323
+ display: flex;
1324
+ flex-direction: column;
1325
+ justify-content: space-between;
1326
+ }
1327
+
1328
+ .stat-card::before {
1329
+ content: '';
1330
+ position: absolute;
1331
+ top: 0;
1332
+ right: 0;
1333
+ left: 0;
1334
+ height: 4px;
1335
+ background: transparent;
1336
+ transition: background 0.3s ease;
1337
+ }
1338
+
1339
+ .stat-card-primary::before { background: linear-gradient(90deg, #2563EB, #3B82F6); }
1340
+ .stat-card-warning::before { background: linear-gradient(90deg, #8B5CF6, #A855F7); }
1341
+ .stat-card-danger::before { background: linear-gradient(90deg, #DC2626, #EF4444); }
1342
+ .stat-card-success::before { background: linear-gradient(90deg, #059669, #10B981); }
1343
+
1344
+ .stat-card:hover {
1345
+ transform: translateY(-4px);
1346
+ box-shadow: 0 14px 28px rgba(13, 46, 88, 0.12);
1347
+ border-color: #94A3B8;
1348
+ }
1349
+
1350
+ .stat-card-header {
1351
+ display: flex;
1352
+ align-items: center;
1353
+ justify-content: space-between;
1354
+ margin-bottom: 1rem;
1355
+ }
1356
+
1357
+ .stat-icon-wrapper {
1358
+ width: 44px;
1359
+ height: 44px;
1360
+ border-radius: 12px;
1361
+ display: flex;
1362
+ align-items: center;
1363
+ justify-content: center;
1364
+ font-size: 1.35rem;
1365
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
1366
+ }
1367
+
1368
+ .icon-blue { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
1369
+ .icon-purple { background: #F3E8FF; color: #7C3AED; border: 1px solid #DDD6FE; }
1370
+ .icon-red { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
1371
+ .icon-green { background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0; }
1372
+
1373
+ .stat-badge {
1374
+ font-size: 0.72rem;
1375
+ font-weight: 700;
1376
+ padding: 3px 9px;
1377
+ border-radius: 20px;
1378
+ }
1379
+
1380
+ .badge-blue { background: #DBEAFE; color: #1E40AF; }
1381
+ .badge-purple { background: #F3E8FF; color: #6B21A8; }
1382
+ .badge-red { background: #FEE2E2; color: #991B1B; }
1383
+ .badge-green { background: #D1FAE5; color: #065F46; }
1384
+
1385
+ .stat-card-body {
1386
+ flex: 1;
1387
+ }
1388
+
1389
+ .stat-dual-value {
1390
+ display: flex;
1391
+ align-items: baseline;
1392
+ gap: 0.35rem;
1393
+ }
1394
+
1395
+ .stat-value-large {
1396
+ font-size: 2.2rem;
1397
+ font-weight: 800;
1398
+ line-height: 1.1;
1399
+ color: #0F172A;
1400
+ letter-spacing: -0.02em;
1401
+ }
1402
+
1403
+ .stat-value-separator {
1404
+ font-size: 1.5rem;
1405
+ font-weight: 600;
1406
+ color: #94A3B8;
1407
+ margin: 0 2px;
1408
+ }
1409
+
1410
+ .stat-value-sub {
1411
+ font-size: 1.35rem;
1412
+ font-weight: 700;
1413
+ color: #64748B;
1414
+ }
1415
+
1416
+ .text-purple { color: #7C3AED !important; }
1417
+ .text-danger { color: #DC2626 !important; }
1418
+ .text-success { color: #059669 !important; }
1419
+ .text-primary { color: #1D4ED8 !important; }
1420
+
1421
+ .stat-label {
1422
+ font-size: 0.92rem;
1423
+ font-weight: 700;
1424
+ color: #334155;
1425
+ margin-top: 0.4rem;
1426
+ }
1427
+
1428
+ .stat-sub-label {
1429
+ font-size: 0.8rem;
1430
+ font-weight: 500;
1431
+ color: #64748B;
1432
+ }
1433
+
1434
+ .stat-card-footer {
1435
+ margin-top: 0.85rem;
1436
+ padding-top: 0.6rem;
1437
+ border-top: 1px dashed #E2E8F0;
1438
+ font-size: 0.76rem;
1439
+ color: #64748B;
1440
+ display: flex;
1441
+ align-items: center;
1442
+ justify-content: space-between;
1443
+ }
1444
+
1445
+ /* ════════════════════ DATAGRIDS (TABLES) ════════════════════ */
1446
+ .table-wrapper, .data-grid-wrapper {
1447
+ width: 100%;
1448
+ overflow-x: auto;
1449
+ border: 1px solid #CBD5E1;
1450
+ border-radius: var(--radius-lg);
1451
+ background: #FFFFFF;
1452
+ box-shadow: var(--shadow-card);
1453
+ }
1454
+ table, .data-grid-table {
1455
+ width: 100%;
1456
+ border-collapse: collapse;
1457
+ text-align: right;
1458
+ margin-bottom: 0;
1459
+ }
1460
+ th, td {
1461
+ padding: 10px 12px;
1462
+ border-bottom: 1px solid #E2E8F0;
1463
+ color: #0F172A;
1464
+ font-size: 0.875rem;
1465
+ }
1466
+ th {
1467
+ background-color: #E2E8F0;
1468
+ font-weight: 700;
1469
+ color: #0F172A;
1470
+ text-transform: uppercase;
1471
+ font-size: 0.75rem;
1472
+ letter-spacing: 0.04em;
1473
+ border-bottom: 2px solid #CBD5E1;
1474
+ }
1475
+ tr:last-child td {
1476
+ border-bottom: none;
1477
+ }
1478
+ tr:nth-child(even) td {
1479
+ background-color: #F8FAFC;
1480
+ }
1481
+ tr:hover td {
1482
+ background-color: #EFF6FF !important; /* Soft blue row hover */
1483
+ }
1484
+ .stat-icon {
1485
+ font-size: 1.5rem;
1486
+ opacity: 0.9;
1487
+ margin-bottom: 0.25rem;
1488
+ }
1489
+ .stat-value {
1490
+ font-size: 1.75rem;
1491
+ font-weight: 800;
1492
+ color: #0F172A;
1493
+ line-height: 1.2;
1494
+ }
1495
+ .stat-label {
1496
+ color: #334155;
1497
+ font-size: 0.8rem;
1498
+ font-weight: 700;
1499
+ }
1500
+
1501
+ .stat-total { border-top: 4px solid #1D4ED8; }
1502
+ .stat-today { border-top: 4px solid #D97706; }
1503
+ .stat-completed { border-top: 4px solid #059669; }
1504
+ .stat-scheduled { border-top: 4px solid #7C3AED; }
1505
+
1506
+ .dashboard-grid {
1507
+ display: grid;
1508
+ grid-template-columns: 2fr 1fr;
1509
+ gap: 1rem;
1510
+ }
1511
+ @media (max-width: 1024px) {
1512
+ .dashboard-grid {
1513
+ grid-template-columns: 1fr;
1514
+ }
1515
+ }
1516
+
1517
+ .card {
1518
+ background: #FFFFFF;
1519
+ border: 1px solid #CBD5E1;
1520
+ border-radius: var(--radius-lg);
1521
+ overflow: hidden;
1522
+ box-shadow: var(--shadow-card);
1523
+ transition: box-shadow 0.2s ease, border-color 0.2s ease;
1524
+ }
1525
+ .card:hover {
1526
+ box-shadow: var(--shadow-card-hover);
1527
+ }
1528
+ .card-header {
1529
+ padding: 0.85rem 1.25rem;
1530
+ border-bottom: 1px solid #CBD5E1;
1531
+ display: flex;
1532
+ justify-content: space-between;
1533
+ align-items: center;
1534
+ background: #F1F5F9;
1535
+ }
1536
+ .card-header h3 {
1537
+ font-size: 1rem;
1538
+ font-weight: 700;
1539
+ margin: 0;
1540
+ color: #1D4ED8;
1541
+ }
1542
+ .card-body {
1543
+ padding: 1rem 1.25rem;
1544
+ color: #0F172A;
1545
+ }
1546
+
1547
+ /* Badges with High-Contrast Light Backgrounds & Dark Text */
1548
+ .badge {
1549
+ padding: 0.3rem 0.65rem;
1550
+ border-radius: 9999px;
1551
+ font-size: 0.75rem;
1552
+ font-weight: 700;
1553
+ display: inline-flex;
1554
+ align-items: center;
1555
+ gap: 0.25rem;
1556
+ }
1557
+ .badge-blue { background: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; }
1558
+ .badge-green { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
1559
+ .badge-purple { background: #EDE9FE; color: #6D28D9; border: 1px solid #DDD6FE; font-weight: 800; }
1560
+ .badge-yellow { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
1561
+ .badge-red { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
1562
+ .badge-noanswer { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; font-weight: 800; }
1563
+
1564
+ /* Status Row Colors */
1565
+ tr.row-cancelled td { background-color: rgba(239, 68, 68, 0.15); }
1566
+ tr.row-postponed td { background-color: rgba(124, 58, 237, 0.15); }
1567
+ tr.row-completed td { background-color: rgba(16, 185, 129, 0.15); }
1568
+ tr.row-noanswer td { background-color: rgba(231, 76, 60, 0.15); }
1569
+
1570
+ /* Status Card Colors */
1571
+ .card-cancelled { border: 1px solid #fca5a5; border-right: 4px solid #ef4444; background-color: rgba(239,68,68,0.15) !important; }
1572
+ .card-postponed { border: 1px solid #ddd6fe; border-right: 4px solid #7c3aed; background-color: rgba(124,58,237,0.15) !important; }
1573
+ .card-completed { border: 1px solid #6ee7b7; border-right: 4px solid #10b981; background-color: rgba(16,185,129,0.15) !important; }
1574
+ .card-noanswer { border: 1px solid #fca5a5; border-right: 4px solid #e74c3c; background-color: rgba(231,76,60,0.15) !important; }
1575
+
1576
+ /* ═══ Universal Status Card & Row Shading / Blur Masking System ═══ */
1577
+ .appointment-card, .smart-card, .calendar-appt-card, tr[onclick*="openAppointmentDetail"] {
1578
+ transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
1579
+ position: relative;
1580
+ }
1581
+
1582
+ /* Masked / Shaded state with backdrop blur */
1583
+ .card-masked {
1584
+ position: relative;
1585
+ backdrop-filter: blur(4px);
1586
+ -webkit-backdrop-filter: blur(4px);
1587
+ }
1588
+
1589
+ /* 1. Scheduled (Past / Overdue): Amber/Orange warning shade with subtle blur & mask */
1590
+ .card-masked.status-scheduled-past, tr.card-masked.status-scheduled-past td {
1591
+ background: rgba(254, 243, 199, 0.82) !important;
1592
+ border-right: 5px solid #D97706 !important;
1593
+ border-color: #FDE68A !important;
1594
+ }
1595
+
1596
+ /* 2. Rescheduled / Postponed (Purple/Violet shade) */
1597
+ .card-masked.status-postponed-masked, tr.card-masked.status-postponed-masked td {
1598
+ background: rgba(243, 232, 255, 0.88) !important;
1599
+ border-right: 5px solid #7C3AED !important;
1600
+ border-color: #DDD6FE !important;
1601
+ }
1602
+
1603
+ /* 3. Attended (Green shade) */
1604
+ .card-masked.status-attended-masked, tr.card-masked.status-attended-masked td {
1605
+ background: rgba(209, 250, 229, 0.82) !important;
1606
+ border-right: 5px solid #059669 !important;
1607
+ border-color: #A7F3D0 !important;
1608
+ }
1609
+
1610
+ /* 4. No Show (Red shade) */
1611
+ .card-masked.status-noshow-masked, tr.card-masked.status-noshow-masked td {
1612
+ background: rgba(254, 226, 226, 0.82) !important;
1613
+ border-right: 5px solid #DC2626 !important;
1614
+ border-color: #FCA5A5 !important;
1615
+ }
1616
+
1617
+ /* 5. No Answer (Orange/Peach shade) */
1618
+ .card-masked.status-noanswer-masked, tr.card-masked.status-noanswer-masked td {
1619
+ background: rgba(255, 237, 213, 0.82) !important;
1620
+ border-right: 5px solid #EA580C !important;
1621
+ border-color: #FDBA74 !important;
1622
+ }
1623
+
1624
+ /* 6. Cancelled (Slate shade) */
1625
+ .card-masked.status-cancelled-masked, tr.card-masked.status-cancelled-masked td {
1626
+ background: rgba(241, 245, 249, 0.85) !important;
1627
+ border-right: 5px solid #64748B !important;
1628
+ border-color: #CBD5E1 !important;
1629
+ }
1630
+
1631
+ /* Unmasked Upcoming Scheduled Appointments: Clear, crisp view with sharp blue accent */
1632
+ .status-scheduled-upcoming, tr.status-scheduled-upcoming td {
1633
+ border-right: 5px solid #2563EB !important;
1634
+ box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
1635
+ }
1636
+
1637
+ /* Hover on masked card removes blur dynamically for immediate reading & interaction */
1638
+ .card-masked:hover {
1639
+ backdrop-filter: blur(0px) !important;
1640
+ -webkit-backdrop-filter: blur(0px) !important;
1641
+ opacity: 1 !important;
1642
+ transform: translateY(-2px);
1643
+ box-shadow: 0 8px 22px rgba(0,0,0,0.15) !important;
1644
+ }
1645
+
1646
+ /* Daily Cards */
1647
+ .daily-cards-grid {
1648
+ display: grid;
1649
+ grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
1650
+ gap: 1.5rem;
1651
+ }
1652
+ .daily-card {
1653
+ background: var(--bg-secondary);
1654
+ border: 1px solid var(--border-color);
1655
+ border-radius: var(--radius-lg);
1656
+ padding: 1.5rem;
1657
+ display: flex;
1658
+ flex-direction: column;
1659
+ gap: 0.75rem;
1660
+ }
1661
+ .daily-card {
1662
+ background: #FFFFFF;
1663
+ border: 1px solid #CBD5E1;
1664
+ border-radius: var(--radius-lg);
1665
+ padding: 1.25rem;
1666
+ display: flex;
1667
+ flex-direction: column;
1668
+ gap: 0.75rem;
1669
+ box-shadow: 0 4px 12px rgba(0,0,0,0.15);
1670
+ }
1671
+ .daily-card-header {
1672
+ display: flex;
1673
+ justify-content: space-between;
1674
+ align-items: center;
1675
+ border-bottom: 1px solid #E2E8F0;
1676
+ padding-bottom: 0.75rem;
1677
+ }
1678
+ .daily-card-title {
1679
+ font-weight: 800;
1680
+ font-size: 1.125rem;
1681
+ color: #0F172A;
1682
+ }
1683
+ .daily-card-detail {
1684
+ display: flex;
1685
+ gap: 0.5rem;
1686
+ color: #334155;
1687
+ font-size: 0.875rem;
1688
+ }
1689
+ .daily-card-detail strong {
1690
+ color: #0F172A;
1691
+ font-weight: 700;
1692
+ }
1693
+
1694
+ /* Search Results Modal / Overlay */
1695
+ .search-results {
1696
+ display: none;
1697
+ margin: 0 2rem 1rem 2rem;
1698
+ max-height: 400px;
1699
+ overflow-y: auto;
1700
+ border: 2px solid #2563EB;
1701
+ background: #FFFFFF;
1702
+ box-shadow: 0 10px 30px rgba(0,0,0,0.4);
1703
+ border-radius: var(--radius-lg);
1704
+ }
1705
+
1706
+ /* Modals */
1707
+ .modal-overlay {
1708
+ display: none;
1709
+ position: fixed;
1710
+ top: 0; left: 0; right: 0; bottom: 0;
1711
+ background: rgba(15, 23, 42, 0.75);
1712
+ backdrop-filter: blur(6px);
1713
+ z-index: 100;
1714
+ align-items: center;
1715
+ justify-content: center;
1716
+ padding: 1rem;
1717
+ }
1718
+ .modal-overlay.show {
1719
+ display: flex;
1720
+ animation: fadeIn 0.2s ease;
1721
+ }
1722
+ .modal {
1723
+ background: #FFFFFF;
1724
+ width: 100%;
1725
+ border-radius: var(--radius-xl);
1726
+ box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
1727
+ border: 1px solid #CBD5E1;
1728
+ overflow: hidden;
1729
+ display: flex;
1730
+ flex-direction: column;
1731
+ max-height: 90vh;
1732
+ }
1733
+ .modal-header {
1734
+ padding: 1.25rem 1.5rem;
1735
+ border-bottom: 1px solid #CBD5E1;
1736
+ display: flex;
1737
+ justify-content: space-between;
1738
+ align-items: center;
1739
+ background: #F1F5F9;
1740
+ }
1741
+ .modal-header h3 {
1742
+ margin: 0;
1743
+ font-size: 1.25rem;
1744
+ color: #0F172A;
1745
+ font-weight: 800;
1746
+ }
1747
+ .modal-close {
1748
+ background: transparent;
1749
+ border: none;
1750
+ color: #475569;
1751
+ font-size: 1.5rem;
1752
+ cursor: pointer;
1753
+ transition: color 0.2s;
1754
+ }
1755
+ .modal-close:hover {
1756
+ color: #DC2626;
1757
+ }
1758
+ .modal-body {
1759
+ padding: 1.5rem;
1760
+ color: #0F172A;
1761
+ overflow-y: auto;
1762
+ }
1763
+ .modal-footer {
1764
+ padding: 1rem 1.5rem;
1765
+ border-top: 1px solid #CBD5E1;
1766
+ display: flex;
1767
+ gap: 1rem;
1768
+ background: #F8FAFC;
1769
+ }
1770
+
1771
+ /* Slide-over Chat Widget */
1772
+ .chat-pane {
1773
+ width: 0;
1774
+ opacity: 0;
1775
+ background: var(--bg-secondary);
1776
+ border-right: 0px solid var(--border-color);
1777
+ box-shadow: -4px 0 15px rgba(0,0,0,0.2);
1778
+ display: flex;
1779
+ flex-direction: column;
1780
+ z-index: 50;
1781
+ transition: width 0.3s ease, opacity 0.3s ease, border-width 0.3s ease;
1782
+ overflow: hidden;
1783
+ height: 100vh;
1784
+ }
1785
+ .chat-pane.show {
1786
+ width: 350px;
1787
+ opacity: 1;
1788
+ border-right: 1px solid var(--border-color);
1789
+ }
1790
+ .chat-pane > * {
1791
+ width: 350px; /* Force inner content width to prevent squishing during transition */
1792
+ }
1793
+
1794
+ .chat-header {
1795
+ padding: 1rem;
1796
+ border-bottom: 1px solid var(--border-color);
1797
+ display: flex;
1798
+ justify-content: space-between;
1799
+ align-items: center;
1800
+ background: rgba(0,0,0,0.3);
1801
+ }
1802
+ .chat-header h3 { font-size: 1rem; margin: 0; }
1803
+ .chat-close {
1804
+ background: transparent;
1805
+ border: none;
1806
+ color: white;
1807
+ font-size: 1.25rem;
1808
+ cursor: pointer;
1809
+ }
1810
+
1811
+ .chat-online-users {
1812
+ padding: 0.5rem 1rem;
1813
+ font-size: 0.75rem;
1814
+ background: rgba(16, 185, 129, 0.1);
1815
+ border-bottom: 1px solid var(--border-color);
1816
+ }
1817
+ .online-users-list {
1818
+ display: flex;
1819
+ flex-wrap: wrap;
1820
+ gap: 0.5rem;
1821
+ margin-top: 0.25rem;
1822
+ }
1823
+ .online-user-tag {
1824
+ background: rgba(255,255,255,0.1);
1825
+ padding: 2px 6px;
1826
+ border-radius: 4px;
1827
+ }
1828
+
1829
+ .chat-messages {
1830
+ flex: 1;
1831
+ padding: 1rem;
1832
+ overflow-y: auto;
1833
+ display: flex;
1834
+ flex-direction: column;
1835
+ gap: 1rem;
1836
+ }
1837
+ .chat-msg {
1838
+ max-width: 85%;
1839
+ padding: 0.75rem;
1840
+ border-radius: var(--radius-md);
1841
+ background: var(--bg-tertiary);
1842
+ align-self: flex-start;
1843
+ position: relative;
1844
+ }
1845
+ .chat-msg.me {
1846
+ background: rgba(59, 130, 246, 0.2);
1847
+ border: 1px solid rgba(59, 130, 246, 0.3);
1848
+ align-self: flex-end;
1849
+ }
1850
+ .chat-msg-header {
1851
+ font-size: 0.7rem;
1852
+ color: var(--text-secondary);
1853
+ margin-bottom: 0.25rem;
1854
+ display: flex;
1855
+ justify-content: space-between;
1856
+ }
1857
+ .chat-msg-body {
1858
+ font-size: 0.875rem;
1859
+ word-break: break-word;
1860
+ }
1861
+
1862
+ .chat-input-area {
1863
+ padding: 1rem;
1864
+ border-top: 1px solid var(--border-color);
1865
+ display: flex;
1866
+ gap: 0.5rem;
1867
+ background: rgba(0,0,0,0.2);
1868
+ border-radius: 0 0 var(--radius-xl) var(--radius-xl);
1869
+ }
1870
+ .chat-input-area input {
1871
+ flex: 1;
1872
+ background: var(--bg-tertiary);
1873
+ border: 1px solid var(--border-color);
1874
+ color: white;
1875
+ padding: 0.5rem;
1876
+ border-radius: var(--radius-md);
1877
+ outline: none;
1878
+ }
1879
+ .chat-input-area input:focus {
1880
+ border-color: var(--accent-primary);
1881
+ }
1882
+
1883
+ /* Toasts */
1884
+ .toast-container {
1885
+ position: fixed;
1886
+ bottom: 2rem;
1887
+ right: 2rem; /* RTL - right side */
1888
+ display: flex;
1889
+ flex-direction: column;
1890
+ gap: 0.5rem;
1891
+ z-index: 9999;
1892
+ }
1893
+ .toast {
1894
+ background: var(--bg-secondary);
1895
+ border: 1px solid var(--border-color);
1896
+ color: var(--text-primary);
1897
+ padding: 1rem 1.5rem;
1898
+ border-radius: var(--radius-md);
1899
+ box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
1900
+ display: flex;
1901
+ align-items: center;
1902
+ gap: 0.75rem;
1903
+ animation: slideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
1904
+ }
1905
+ .toast.success { border-right: 4px solid var(--accent-secondary); }
1906
+ .toast.error { border-right: 4px solid var(--accent-danger); }
1907
+
1908
+ @keyframes slideIn {
1909
+ from { transform: translateX(100%); opacity: 0; }
1910
+ to { transform: translateX(0); opacity: 1; }
1911
+ }
1912
+
1913
+ @media print {
1914
+ .sidebar, .search-bar, .chat-pane, .page-title button, .page-title input {
1915
+ display: none !important;
1916
+ }
1917
+ .app-layout {
1918
+ height: auto;
1919
+ }
1920
+ .main-content {
1921
+ background: white;
1922
+ color: black;
1923
+ }
1924
+ .tab-content {
1925
+ padding: 0;
1926
+ }
1927
+ .daily-card {
1928
+ border: 1px solid #ccc;
1929
+ background: white;
1930
+ color: black;
1931
+ break-inside: avoid;
1932
+ }
1933
+ .daily-card-detail { color: #333; }
1934
+ .daily-card-detail strong { color: black; }
1935
+ .badge { border: 1px solid #999; }
1936
+ }
1937
+
1938
+ /* ════════════════════ MODERN CALENDAR ════════════════════ */
1939
+ .calendar-grid, .modern-calendar-grid {
1940
+ display: grid;
1941
+ grid-template-columns: repeat(7, 1fr);
1942
+ gap: 8px;
1943
+ }
1944
+ .calendar-day-header {
1945
+ text-align: center;
1946
+ font-weight: 800;
1947
+ color: #0F172A;
1948
+ padding: 10px;
1949
+ background: #E2E8F0;
1950
+ border-radius: var(--radius-sm);
1951
+ font-size: 0.85rem;
1952
+ }
1953
+ .calendar-day, .modern-calendar-day {
1954
+ min-height: 110px;
1955
+ background: #FFFFFF;
1956
+ border: 1px solid #CBD5E1;
1957
+ border-radius: var(--radius-md);
1958
+ padding: 8px;
1959
+ display: flex;
1960
+ flex-direction: column;
1961
+ box-shadow: 0 2px 6px rgba(0,0,0,0.06);
1962
+ position: relative;
1963
+ transition: all 0.2s ease;
1964
+ cursor: pointer;
1965
+ }
1966
+ .calendar-day:hover, .modern-calendar-day:hover {
1967
+ background: #FFFFFF;
1968
+ transform: translateY(-2px);
1969
+ box-shadow: 0 6px 16px rgba(0,0,0,0.15);
1970
+ border-color: #2563EB;
1971
+ }
1972
+ .calendar-day.empty {
1973
+ background: #F8FAFC;
1974
+ border: 1px dashed #CBD5E1;
1975
+ }
1976
+ .calendar-date-number {
1977
+ font-weight: 800;
1978
+ font-size: 1.1rem;
1979
+ margin-bottom: 6px;
1980
+ color: #0F172A;
1981
+ }
1982
+ .calendar-day.today, .modern-calendar-day.today {
1983
+ border: 2px solid #2563EB;
1984
+ background: #EFF6FF;
1985
+ }
1986
+ .calendar-day.today .calendar-date-number {
1987
+ color: #1D4ED8;
1988
+ }
1989
+ .calendar-appt-card {
1990
+ background: #DBEAFE;
1991
+ border-right: 4px solid #1D4ED8;
1992
+ color: #1E40AF;
1993
+ font-weight: 700;
1994
+ padding: 6px;
1995
+ border-radius: 4px;
1996
+ font-size: 0.8rem;
1997
+ margin-bottom: 5px;
1998
+ cursor: pointer;
1999
+ transition: transform 0.1s;
2000
+ white-space: nowrap;
2001
+ overflow: hidden;
2002
+ text-overflow: ellipsis;
2003
+ }
2004
+ .calendar-appt-card:hover {
2005
+ transform: scale(1.02);
2006
+ box-shadow: 0 2px 4px rgba(0,0,0,0.15);
2007
+ }
2008
+ /* Calendar Chips - Status Variants */
2009
+ .calendar-appt-card.status-postponed-masked,
2010
+ .calendar-appt-card.row-postponed {
2011
+ background: #F3E8FF !important;
2012
+ border-right: 4px solid #7C3AED !important;
2013
+ color: #6B21A8 !important;
2014
+ border-color: #DDD6FE !important;
2015
+ }
2016
+ .calendar-appt-card.status-scheduled-past {
2017
+ background: #FEF3C7 !important;
2018
+ border-right: 4px solid #D97706 !important;
2019
+ color: #92400E !important;
2020
+ border-color: #FDE68A !important;
2021
+ }
2022
+ .calendar-appt-card.status-scheduled-upcoming {
2023
+ background: #DBEAFE !important;
2024
+ border-right: 4px solid #2563EB !important;
2025
+ color: #1E40AF !important;
2026
+ box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2) !important;
2027
+ }
2028
+ .calendar-appt-card.status-attended-masked,
2029
+ .calendar-appt-card.status-attended {
2030
+ border-right-color: #059669 !important;
2031
+ background: #D1FAE5 !important;
2032
+ color: #065F46 !important;
2033
+ }
2034
+ .calendar-appt-card.status-noshow-masked,
2035
+ .calendar-appt-card.status-noshow {
2036
+ border-right-color: #DC2626 !important;
2037
+ background: #FEE2E2 !important;
2038
+ color: #991B1B !important;
2039
+ }
2040
+ .calendar-appt-card.status-noanswer-masked {
2041
+ background: #FFEDD5 !important;
2042
+ border-right: 4px solid #EA580C !important;
2043
+ color: #9A3412 !important;
2044
+ }
2045
+ .calendar-appt-card.status-cancelled-masked {
2046
+ background: #F1F5F9 !important;
2047
+ border-right: 4px solid #64748B !important;
2048
+ color: #334155 !important;
2049
+ }
2050
+ .event-chips-container {
2051
+ display: flex;
2052
+ flex-direction: column;
2053
+ gap: 4px;
2054
+ }
2055
+ .event-chip {
2056
+ background: var(--primary-color);
2057
+ color: white;
2058
+ font-size: 0.75rem;
2059
+ padding: 4px 8px;
2060
+ border-radius: 12px;
2061
+ white-space: nowrap;
2062
+ overflow: hidden;
2063
+ text-overflow: ellipsis;
2064
+ }
2065
+
2066
+ /* ════════════════════ AGENDA DRAWER (Rule 21) ════════════════════ */
2067
+ .drawer-overlay {
2068
+ display: none;
2069
+ position: fixed;
2070
+ top: 0; left: 0; right: 0; bottom: 0;
2071
+ background: rgba(0,0,0,0.5);
2072
+ z-index: 1000;
2073
+ backdrop-filter: blur(2px);
2074
+ }
2075
+ .agenda-drawer {
2076
+ position: fixed;
2077
+ top: 0;
2078
+ left: -450px; /* Hidden on left for Arabic RTL feel */
2079
+ width: 400px;
2080
+ height: 100vh;
2081
+ background: var(--bg-primary);
2082
+ box-shadow: 2px 0 20px rgba(0,0,0,0.5);
2083
+ z-index: 1001;
2084
+ transition: left 0.3s ease;
2085
+ display: flex;
2086
+ flex-direction: column;
2087
+ }
2088
+ .agenda-drawer.open {
2089
+ left: 0;
2090
+ }
2091
+ .drawer-header {
2092
+ padding: 20px;
2093
+ background: var(--bg-secondary);
2094
+ border-bottom: 1px solid var(--border-color);
2095
+ display: flex;
2096
+ justify-content: space-between;
2097
+ align-items: center;
2098
+ }
2099
+ .drawer-body {
2100
+ padding: 20px;
2101
+ overflow-y: auto;
2102
+ flex: 1;
2103
+ }
2104
+ .agenda-item {
2105
+ background: var(--bg-tertiary);
2106
+ border-right: 4px solid var(--primary-color);
2107
+ padding: 15px;
2108
+ margin-bottom: 15px;
2109
+ border-radius: var(--radius-md);
2110
+ box-shadow: 0 2px 4px rgba(0,0,0,0.1);
2111
+ }
2112
+ .agenda-item.urgent { border-right-color: var(--danger-color); }
2113
+ .agenda-item.completed { border-right-color: var(--success-color); }
2114
+ .agenda-item p { margin: 5px 0; color: var(--text-secondary); }
2115
+ .agenda-item h4 { margin: 0 0 10px 0; color: var(--text-primary); }
2116
+
2117
+ /* ════════════════════ CHAT WIDGET (Rule 21 Modernized) ════════════════════ */
2118
+ .chat-widget {
2119
+ position: fixed;
2120
+ bottom: 20px;
2121
+ left: 20px;
2122
+ width: 350px;
2123
+ height: 500px;
2124
+ max-height: calc(100vh - 100px);
2125
+ background: var(--bg-primary);
2126
+ border: 1px solid var(--border-color);
2127
+ border-radius: var(--radius-xl);
2128
+ box-shadow: 0 10px 40px rgba(0,0,0,0.15);
2129
+ z-index: 2000;
2130
+ display: flex;
2131
+ flex-direction: column;
2132
+ transform: translateY(150%);
2133
+ transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
2134
+ overflow: hidden;
2135
+ }
2136
+ .chat-widget.show {
2137
+ transform: translateY(0);
2138
+ }
2139
+ .chat-widget-header {
2140
+ padding: 1rem 1.25rem;
2141
+ border-bottom: 1px solid var(--border-color);
2142
+ display: flex;
2143
+ justify-content: space-between;
2144
+ align-items: center;
2145
+ background: var(--accent-primary);
2146
+ }
2147
+ .chat-widget-header h3 {
2148
+ margin: 0;
2149
+ font-size: 1.05rem;
2150
+ color: white;
2151
+ }
2152
+ .chat-widget-header .modal-close {
2153
+ color: white;
2154
+ }
2155
+ .chat-widget-body {
2156
+ flex: 1;
2157
+ display: flex;
2158
+ flex-direction: column;
2159
+ overflow: hidden;
2160
+ background: var(--bg-tertiary);
2161
+ }
2162
+ .chat-online-users {
2163
+ padding: 10px 15px;
2164
+ background: var(--bg-secondary);
2165
+ border-bottom: 1px solid var(--border-color);
2166
+ font-size: 0.85rem;
2167
+ }
2168
+ .online-users-list {
2169
+ margin-top: 5px;
2170
+ display: flex;
2171
+ flex-wrap: wrap;
2172
+ gap: 5px;
2173
+ }
2174
+ .chat-messages {
2175
+ flex: 1;
2176
+ padding: 15px;
2177
+ overflow-y: auto;
2178
+ display: flex;
2179
+ flex-direction: column;
2180
+ gap: 10px;
2181
+ }
2182
+ .chat-bubble {
2183
+ max-width: 85%;
2184
+ padding: 10px 14px;
2185
+ border-radius: 18px;
2186
+ font-size: 0.95rem;
2187
+ line-height: 1.4;
2188
+ word-break: break-word;
2189
+ }
2190
+ .chat-bubble.system {
2191
+ align-self: center;
2192
+ background: rgba(255,255,255,0.05);
2193
+ color: var(--text-secondary);
2194
+ font-size: 0.85rem;
2195
+ text-align: center;
2196
+ }
2197
+ .chat-bubble.self {
2198
+ align-self: flex-start;
2199
+ background: var(--accent-primary);
2200
+ color: white;
2201
+ border-bottom-right-radius: 4px;
2202
+ }
2203
+ .chat-bubble:not(.self):not(.system) {
2204
+ align-self: flex-end;
2205
+ background: var(--bg-secondary);
2206
+ color: var(--text-primary);
2207
+ border: 1px solid var(--border-color);
2208
+ border-bottom-left-radius: 4px;
2209
+ }
2210
+ .chat-input-area {
2211
+ padding: 15px;
2212
+ border-top: 1px solid var(--border-color);
2213
+ background: var(--bg-secondary);
2214
+ display: flex;
2215
+ gap: 10px;
2216
+ }
2217
+ .chat-input-area input {
2218
+ flex: 1;
2219
+ padding: 10px;
2220
+ border: 1px solid var(--border-color);
2221
+ border-radius: var(--radius-md);
2222
+ background: var(--bg-primary);
2223
+ color: var(--text-primary);
2224
+ }
2225
+
2226
+ /* ════════════════════ ADVANCED DATAGRID (Rule 21) ════════════════════ */
2227
+ .data-grid-wrapper {
2228
+ overflow-x: auto;
2229
+ border: 1px solid var(--border-color);
2230
+ border-radius: var(--radius-md);
2231
+ box-shadow: 0 4px 6px rgba(0,0,0,0.1);
2232
+ background: var(--bg-tertiary);
2233
+ }
2234
+ .data-grid-table {
2235
+ width: 100%;
2236
+ border-collapse: collapse;
2237
+ white-space: nowrap;
2238
+ }
2239
+ .data-grid-table th {
2240
+ position: sticky;
2241
+ top: 0;
2242
+ background: var(--bg-secondary);
2243
+ }
2244
+
2245
+ /* Toggle Switch Styling */
2246
+ .switch {
2247
+ position: relative;
2248
+ display: inline-block;
2249
+ width: 50px;
2250
+ height: 24px;
2251
+ }
2252
+
2253
+ .switch input {
2254
+ opacity: 0;
2255
+ width: 0;
2256
+ height: 0;
2257
+ }
2258
+ .slider {
2259
+ position: absolute;
2260
+ cursor: pointer;
2261
+ top: 0;
2262
+ left: 0;
2263
+ right: 0;
2264
+ bottom: 0;
2265
+ background-color: var(--border-color, #ccc);
2266
+ transition: .4s;
2267
+ }
2268
+ .slider:before {
2269
+ position: absolute;
2270
+ content: "";
2271
+ height: 16px;
2272
+ width: 16px;
2273
+ left: 4px;
2274
+ bottom: 4px;
2275
+ background-color: white;
2276
+ transition: .4s;
2277
+ }
2278
+ input:checked + .slider {
2279
+ background-color: var(--primary, #0B3A2C);
2280
+ }
2281
+ input:focus + .slider {
2282
+ box-shadow: 0 0 1px var(--primary, #0B3A2C);
2283
+ }
2284
+ input:checked + .slider:before {
2285
+ transform: translateX(26px);
2286
+ }
2287
+ .slider.round {
2288
+ border-radius: 24px;
2289
+ }
2290
+ .slider.round:before {
2291
+ border-radius: 50%;
2292
+ }
2293
+
2294
+ /* ════════════════════ SIDEBAR BACKDROP (Drawer Auto Collapse) ════════════════════ */
2295
+ .sidebar-backdrop {
2296
+ position: fixed;
2297
+ top: 0;
2298
+ left: 0;
2299
+ right: 0;
2300
+ bottom: 0;
2301
+ background: rgba(15, 23, 42, 0.6); /* Deep navy overlay */
2302
+ z-index: 39; /* Just below the sidebar (which is z-index 40) */
2303
+ margin-bottom: 15px;
2304
+ border-radius: var(--radius-md);
2305
+ box-shadow: 0 2px 4px rgba(0,0,0,0.1);
2306
+ }
2307
+ .agenda-item.urgent { border-right-color: var(--danger-color); }
2308
+ .agenda-item.completed { border-right-color: var(--success-color); }
2309
+ .agenda-item p { margin: 5px 0; color: var(--text-secondary); }
2310
+ .agenda-item h4 { margin: 0 0 10px 0; color: var(--text-primary); }
2311
+
2312
+ /* ════════════════════ CHAT WIDGET (Rule 21 Modernized) ════════════════════ */
2313
+ .chat-widget {
2314
+ position: fixed;
2315
+ bottom: 24px;
2316
+ left: 24px;
2317
+ width: 380px;
2318
+ height: 520px;
2319
+ max-width: calc(100vw - 32px);
2320
+ max-height: calc(100vh - 80px);
2321
+ background: #ffffff;
2322
+ border: 1px solid #cbd5e1;
2323
+ border-radius: var(--radius-xl);
2324
+ box-shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
2325
+ z-index: 99999 !important;
2326
+ display: flex;
2327
+ flex-direction: column;
2328
+ transform: translateY(160%);
2329
+ opacity: 0;
2330
+ pointer-events: none;
2331
+ transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
2332
+ overflow: hidden;
2333
+ }
2334
+ .chat-widget.show {
2335
+ transform: translateY(0);
2336
+ opacity: 1;
2337
+ pointer-events: all;
2338
+ }
2339
+ .chat-widget-header {
2340
+ padding: 1rem 1.25rem;
2341
+ border-bottom: 1px solid var(--border-color);
2342
+ display: flex;
2343
+ justify-content: space-between;
2344
+ align-items: center;
2345
+ background: var(--accent-primary);
2346
+ }
2347
+ .chat-widget-header h3 {
2348
+ margin: 0;
2349
+ font-size: 1.05rem;
2350
+ color: white;
2351
+ }
2352
+ .chat-widget-header .modal-close {
2353
+ color: white;
2354
+ }
2355
+ .chat-widget-body {
2356
+ flex: 1;
2357
+ display: flex;
2358
+ flex-direction: column;
2359
+ overflow: hidden;
2360
+ background: var(--bg-tertiary);
2361
+ }
2362
+ .chat-online-users {
2363
+ padding: 10px 15px;
2364
+ background: var(--bg-secondary);
2365
+ border-bottom: 1px solid var(--border-color);
2366
+ font-size: 0.85rem;
2367
+ }
2368
+ .online-users-list {
2369
+ margin-top: 5px;
2370
+ display: flex;
2371
+ flex-wrap: wrap;
2372
+ gap: 5px;
2373
+ }
2374
+ .chat-messages {
2375
+ flex: 1;
2376
+ padding: 15px;
2377
+ overflow-y: auto;
2378
+ display: flex;
2379
+ flex-direction: column;
2380
+ gap: 10px;
2381
+ }
2382
+ .chat-bubble {
2383
+ max-width: 85%;
2384
+ padding: 10px 14px;
2385
+ border-radius: 18px;
2386
+ font-size: 0.95rem;
2387
+ line-height: 1.4;
2388
+ word-break: break-word;
2389
+ }
2390
+ .chat-bubble.system {
2391
+ align-self: center;
2392
+ background: rgba(255,255,255,0.05);
2393
+ color: var(--text-secondary);
2394
+ font-size: 0.85rem;
2395
+ text-align: center;
2396
+ }
2397
+ .chat-bubble.self {
2398
+ align-self: flex-start;
2399
+ background: var(--accent-primary);
2400
+ color: white;
2401
+ border-bottom-right-radius: 4px;
2402
+ }
2403
+ .chat-bubble:not(.self):not(.system) {
2404
+ align-self: flex-end;
2405
+ background: var(--bg-secondary);
2406
+ color: var(--text-primary);
2407
+ border: 1px solid var(--border-color);
2408
+ border-bottom-left-radius: 4px;
2409
+ }
2410
+ .chat-input-area {
2411
+ padding: 15px;
2412
+ border-top: 1px solid var(--border-color);
2413
+ background: var(--bg-secondary);
2414
+ display: flex;
2415
+ gap: 10px;
2416
+ }
2417
+ .chat-input-area input {
2418
+ flex: 1;
2419
+ padding: 10px;
2420
+ border: 1px solid var(--border-color);
2421
+ border-radius: var(--radius-md);
2422
+ background: var(--bg-primary);
2423
+ color: var(--text-primary);
2424
+ }
2425
+
2426
+ /* ════════════════════ ADVANCED DATAGRID (Rule 21) ════════════════════ */
2427
+ .data-grid-wrapper {
2428
+ overflow-x: auto;
2429
+ border: 1px solid var(--border-color);
2430
+ border-radius: var(--radius-md);
2431
+ box-shadow: 0 4px 6px rgba(0,0,0,0.1);
2432
+ background: var(--bg-tertiary);
2433
+ }
2434
+ .data-grid-table {
2435
+ width: 100%;
2436
+ border-collapse: collapse;
2437
+ white-space: nowrap;
2438
+ }
2439
+ .data-grid-table th {
2440
+ position: sticky;
2441
+ top: 0;
2442
+ background: var(--bg-secondary);
2443
+ }
2444
+
2445
+ /* Toggle Switch Styling */
2446
+ .switch {
2447
+ position: relative;
2448
+ display: inline-block;
2449
+ width: 50px;
2450
+ height: 24px;
2451
+ }
2452
+
2453
+ .switch input {
2454
+ opacity: 0;
2455
+ width: 0;
2456
+ height: 0;
2457
+ }
2458
+ .slider {
2459
+ position: absolute;
2460
+ cursor: pointer;
2461
+ top: 0;
2462
+ left: 0;
2463
+ right: 0;
2464
+ bottom: 0;
2465
+ background-color: var(--border-color, #ccc);
2466
+ transition: .4s;
2467
+ }
2468
+ .slider:before {
2469
+ position: absolute;
2470
+ content: "";
2471
+ height: 16px;
2472
+ width: 16px;
2473
+ left: 4px;
2474
+ bottom: 4px;
2475
+ background-color: white;
2476
+ transition: .4s;
2477
+ }
2478
+ input:checked + .slider {
2479
+ background-color: var(--primary, #0B3A2C);
2480
+ }
2481
+ input:focus + .slider {
2482
+ box-shadow: 0 0 1px var(--primary, #0B3A2C);
2483
+ }
2484
+ input:checked + .slider:before {
2485
+ transform: translateX(26px);
2486
+ }
2487
+ .slider.round {
2488
+ border-radius: 24px;
2489
+ }
2490
+ .slider.round:before {
2491
+ border-radius: 50%;
2492
+ }
2493
+
2494
+ /* ════════════════════ SIDEBAR BACKDROP (Drawer Auto Collapse) ════════════════════ */
2495
+ .sidebar-backdrop {
2496
+ position: fixed;
2497
+ top: 0;
2498
+ left: 0;
2499
+ right: 0;
2500
+ bottom: 0;
2501
+ background: rgba(15, 23, 42, 0.6); /* Deep navy overlay */
2502
+ z-index: 39; /* Just below the sidebar (which is z-index 40) */
2503
+ opacity: 0;
2504
+ visibility: hidden;
2505
+ transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
2506
+ backdrop-filter: blur(2px);
2507
+ }
2508
+ .sidebar-backdrop.show {
2509
+ opacity: 1;
2510
+ visibility: visible;
2511
+ }
2512
+
2513
+ /* ════════════ RESPONSIVE IMPROVEMENTS ════════════ */
2514
+ @media (max-width: 992px) {
2515
+ /* Off-canvas sidebar drawer on mobile/tablet */
2516
+ .sidebar {
2517
+ position: fixed !important;
2518
+ top: 0 !important;
2519
+ bottom: 0 !important;
2520
+ right: -320px !important;
2521
+ z-index: 1000 !important;
2522
+ width: 290px !important;
2523
+ height: 100vh !important;
2524
+ box-shadow: -8px 0 30px rgba(0, 0, 0, 0.4) !important;
2525
+ transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
2526
+ }
2527
+
2528
+ .sidebar.drawer-open {
2529
+ right: 0 !important;
2530
+ }
2531
+
2532
+ .sidebar-close-btn {
2533
+ display: flex !important;
2534
+ }
2535
+
2536
+ .sidebar.drawer-open .header-titles,
2537
+ .sidebar.drawer-open .nav-item span,
2538
+ .sidebar.drawer-open .nav-group-header .nav-text,
2539
+ .sidebar.drawer-open .nav-group-header .nav-chevron,
2540
+ .sidebar.drawer-open .user-details,
2541
+ .sidebar.drawer-open .logout-text,
2542
+ .sidebar.drawer-open .header-subtitle {
2543
+ opacity: 1 !important;
2544
+ visibility: visible !important;
2545
+ position: relative !important;
2546
+ pointer-events: auto !important;
2547
+ }
2548
+
2549
+ .sidebar.drawer-open .nav-item {
2550
+ justify-content: flex-start !important;
2551
+ padding: 0.7rem 0.9rem !important;
2552
+ }
2553
+
2554
+ .sidebar.drawer-open .nav-group-header {
2555
+ justify-content: space-between !important;
2556
+ padding: 0.65rem 0.85rem !important;
2557
+ }
2558
+
2559
+ .sidebar.drawer-open .user-info-card {
2560
+ justify-content: flex-start !important;
2561
+ padding: 0.6rem 0.75rem !important;
2562
+ background: rgba(255, 255, 255, 0.04) !important;
2563
+ border: 1px solid rgba(255, 255, 255, 0.06) !important;
2564
+ }
2565
+
2566
+ .main-content {
2567
+ width: 100%;
2568
+ }
2569
+
2570
+ .dashboard-grid {
2571
+ grid-template-columns: 1fr !important;
2572
+ }
2573
+ .stats-grid {
2574
+ grid-template-columns: repeat(2, 1fr) !important;
2575
+ }
2576
+ }
2577
+
2578
+ @media (max-width: 576px) {
2579
+ .stats-grid {
2580
+ grid-template-columns: 1fr !important;
2581
+ }
2582
+ .page-title {
2583
+ flex-direction: column;
2584
+ align-items: flex-start;
2585
+ }
2586
+ .top-bar {
2587
+ padding: 0.5rem;
2588
+ gap: 0.5rem;
2589
+ }
2590
+ .top-bar-left, .top-bar-right {
2591
+ gap: 0.5rem;
2592
+ }
2593
+ .search-bar-container {
2594
+ padding: 0.35rem 0.5rem;
2595
+ min-width: 0;
2596
+ }
2597
+ .search-bar-container input {
2598
+ min-width: 0;
2599
+ width: 100%;
2600
+ font-size: 0.8rem;
2601
+ }
2602
+ .form-row {
2603
+ flex-direction: column;
2604
+ gap: 0.75rem;
2605
+ }
2606
+ .form-row .form-group {
2607
+ min-width: 100%;
2608
+ }
2609
+ }
complaints/js/app.js ADDED
The diff for this file is too large to render. See raw diff
 
complaints/js/map.js ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // map.js - Unified map logic for Nexus Dashboard
2
+
3
+ document.addEventListener('DOMContentLoaded', () => {
4
+ // We wait for the 'stations' tab to become active before fully rendering the map
5
+ // to avoid Leaflet rendering bugs in hidden divs.
6
+ });
7
+
8
+ let unifiedMap = null;
9
+ let policeStationsData = [];
10
+
11
+ // Override switchTab from app.js to initialize map when the stations tab is opened
12
+ const originalSwitchTab = window.switchTab;
13
+ window.switchTab = function(tabId) {
14
+ if (originalSwitchTab) {
15
+ originalSwitchTab(tabId);
16
+ }
17
+ if (tabId === 'stations') {
18
+ if (!unifiedMap) {
19
+ initUnifiedMap();
20
+ } else {
21
+ unifiedMap.invalidateSize();
22
+ }
23
+ }
24
+ };
25
+
26
+ async function initUnifiedMap() {
27
+ const loader = document.getElementById('unifiedMapLoader');
28
+ if (loader) loader.style.display = 'none';
29
+
30
+ // Default to Amman center
31
+ unifiedMap = L.map('map').setView([31.95, 35.92], 12);
32
+
33
+ // Use local offline tiles
34
+ L.tileLayer('/tiles/{z}/{x}/{y}.png', {
35
+ minZoom: 10,
36
+ maxZoom: 16,
37
+ attribution: 'Amman Nexus Local Map',
38
+ errorTileUrl: '/tiles/offline_tile.svg'
39
+ }).addTo(unifiedMap);
40
+
41
+ // Fetch areas and stations
42
+ try {
43
+ const res = await fetch('/api/areas');
44
+ if (res.ok) {
45
+ const data = await res.json();
46
+ // Data contains areas. The original logic matched areas to stations.
47
+ // For the dashboard, we will just plot some key stations for now,
48
+ // or extract stations if the data structure has them.
49
+ plotDataOnMap(data);
50
+ }
51
+ } catch (e) {
52
+ console.error("Failed to load map data", e);
53
+ }
54
+ }
55
+
56
+ function plotDataOnMap(areas) {
57
+ // Assuming areas is a list of objects with lat, lon, and name
58
+ // This is a simplified representation of the original logic
59
+ const bounds = L.latLngBounds();
60
+ let count = 0;
61
+
62
+ // Original data had police stations mapped, we'll plot a few to prove integration
63
+ areas.slice(0, 100).forEach(area => {
64
+ if (area.lat && area.lon) {
65
+ L.circleMarker([area.lat, area.lon], {
66
+ radius: 4,
67
+ fillColor: "#E53E3E",
68
+ color: "#1A365D",
69
+ weight: 1,
70
+ opacity: 1,
71
+ fillOpacity: 0.8
72
+ }).addTo(unifiedMap).bindPopup(`<b>${area.name || 'منطقة'}</b>`);
73
+ bounds.extend([area.lat, area.lon]);
74
+ count++;
75
+ }
76
+ });
77
+
78
+ if (count > 0) {
79
+ unifiedMap.fitBounds(bounds, { padding: [50, 50] });
80
+ }
81
+ }
complaints/login.html ADDED
@@ -0,0 +1,340 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="ar" dir="rtl">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>بوابة الدخول | محافظة العاصمة — MAT — حقيبة الأدوات المساعدة</title>
7
+ <!-- Google Fonts - IBM Plex Sans Arabic & Tajawal -->
8
+ <link rel="preconnect" href="https://fonts.googleapis.com">
9
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
+ <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Tajawal:wght@400;500;700;800&display=swap" rel="stylesheet">
11
+
12
+ <!-- Civic Horizon CSS Design System -->
13
+ <link rel="stylesheet" href="/complaints/css/design-system.css">
14
+ <style>
15
+ body {
16
+ font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
17
+ background: linear-gradient(135deg, #0D2E58 0%, #001939 100%);
18
+ min-height: 100vh;
19
+ display: flex;
20
+ align-items: center;
21
+ justify-content: center;
22
+ }
23
+ .login-container {
24
+ width: 100%;
25
+ padding: 1.5rem;
26
+ display: flex;
27
+ justify-content: center;
28
+ }
29
+ .login-card {
30
+ background: rgba(255, 255, 255, 0.98);
31
+ border-radius: var(--radius-2xl);
32
+ box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
33
+ border: 1px solid rgba(255, 255, 255, 0.2);
34
+ padding: 2.5rem 2rem;
35
+ max-width: 440px;
36
+ width: 100%;
37
+ text-align: center;
38
+ backdrop-filter: blur(16px);
39
+ }
40
+ .login-logo-large {
41
+ display: flex;
42
+ align-items: center;
43
+ justify-content: center;
44
+ width: 100%;
45
+ margin: 0 auto 1.25rem auto;
46
+ }
47
+ .login-logo-large img {
48
+ width: 140px;
49
+ max-width: 80%;
50
+ height: auto;
51
+ object-fit: contain;
52
+ display: block;
53
+ margin: 0 auto;
54
+ filter: drop-shadow(0 6px 14px rgba(13, 46, 88, 0.18));
55
+ transition: transform 0.3s ease;
56
+ }
57
+ .login-logo-large img:hover {
58
+ transform: scale(1.03);
59
+ }
60
+ .login-card h2 {
61
+ font-size: 1.6rem;
62
+ font-weight: 800;
63
+ color: var(--accent-primary);
64
+ margin-bottom: 0.25rem;
65
+ }
66
+ .login-subtitle {
67
+ color: var(--text-secondary);
68
+ font-size: 0.9rem;
69
+ font-weight: 500;
70
+ margin-bottom: 1.75rem;
71
+ }
72
+ .security-badge {
73
+ display: inline-flex;
74
+ align-items: center;
75
+ gap: 6px;
76
+ background: #D1FAE5;
77
+ color: #065F46;
78
+ padding: 4px 12px;
79
+ border-radius: 9999px;
80
+ font-size: 0.75rem;
81
+ font-weight: 700;
82
+ margin-bottom: 1.25rem;
83
+ }
84
+ </style>
85
+ </head>
86
+ <body>
87
+
88
+ <div class="login-container">
89
+ <style>
90
+ .avatar-grid {
91
+ display: grid;
92
+ grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
93
+ gap: 12px;
94
+ margin-bottom: 2rem;
95
+ direction: rtl;
96
+ }
97
+ .avatar-btn {
98
+ background: white;
99
+ border: 2px solid var(--border-color);
100
+ border-radius: var(--radius-lg);
101
+ padding: 12px 5px;
102
+ cursor: pointer;
103
+ transition: all 0.2s ease;
104
+ display: flex;
105
+ flex-direction: column;
106
+ align-items: center;
107
+ gap: 8px;
108
+ }
109
+ .avatar-btn:hover, .avatar-btn.selected {
110
+ border-color: var(--accent-primary);
111
+ background: #F0F7FF;
112
+ transform: translateY(-2px);
113
+ box-shadow: 0 4px 12px rgba(13, 46, 88, 0.1);
114
+ }
115
+ .avatar-circle {
116
+ width: 50px;
117
+ height: 50px;
118
+ border-radius: 50%;
119
+ background: #E2E8F0;
120
+ display: flex;
121
+ align-items: center;
122
+ justify-content: center;
123
+ font-size: 20px;
124
+ color: var(--accent-primary);
125
+ font-weight: 800;
126
+ }
127
+ .avatar-btn.selected .avatar-circle {
128
+ background: var(--accent-primary);
129
+ color: white;
130
+ }
131
+ .avatar-name {
132
+ font-size: 0.9rem;
133
+ font-weight: 700;
134
+ color: var(--text-primary);
135
+ }
136
+ .avatar-role {
137
+ font-size: 0.7rem;
138
+ color: var(--text-secondary);
139
+ }
140
+ .secret-input-wrapper {
141
+ margin-bottom: 1.5rem;
142
+ display: flex;
143
+ flex-direction: column;
144
+ align-items: center;
145
+ gap: 8px;
146
+ }
147
+ .secret-input {
148
+ border: 1px solid var(--border-color);
149
+ border-radius: var(--radius-md);
150
+ background: #f8fafc;
151
+ width: 100%;
152
+ max-width: 200px;
153
+ height: 40px;
154
+ padding: 0 12px;
155
+ outline: none;
156
+ text-align: center;
157
+ font-family: monospace;
158
+ letter-spacing: 2px;
159
+ transition: all 0.2s ease;
160
+ }
161
+ .secret-input:focus {
162
+ border-color: var(--accent-primary);
163
+ box-shadow: 0 0 0 3px rgba(13, 46, 88, 0.1);
164
+ }
165
+ .secret-label {
166
+ font-size: 0.8rem;
167
+ color: var(--text-muted);
168
+ font-weight: 600;
169
+ }
170
+ </style>
171
+
172
+ <div class="login-card">
173
+ <div class="login-logo-large">
174
+ <img src="/amman_logo.png" alt="شعار المحافظة" onerror="this.src='https://upload.wikimedia.org/wikipedia/commons/thumb/c/c1/Coat_of_arms_of_Jordan.svg/500px-Coat_of_arms_of_Jordan.svg.png'">
175
+ </div>
176
+
177
+ <h2>حقيبة الأدوات المساعدة (MAT)</h2>
178
+ <p class="login-subtitle">يرجى اختيار المستخدم للدخول إلى النظام</p>
179
+
180
+ <form id="loginForm" onsubmit="handleLogin(event)">
181
+
182
+ <div class="avatar-grid" id="avatarGrid">
183
+ <!-- Orwa -->
184
+ <button type="button" class="avatar-btn" onclick="selectUser('orwa', this)">
185
+ <div class="avatar-circle">ع</div>
186
+ <span class="avatar-name">عروة</span>
187
+ <span class="avatar-role">رئيس قسم</span>
188
+ </button>
189
+ <!-- Ehab -->
190
+ <button type="button" class="avatar-btn" onclick="selectUser('ehab', this)">
191
+ <div class="avatar-circle">إ</div>
192
+ <span class="avatar-name">ايهاب</span>
193
+ <span class="avatar-role">ضابط شكاوي</span>
194
+ </button>
195
+ <!-- Sultan -->
196
+ <button type="button" class="avatar-btn" onclick="selectUser('sultan', this)">
197
+ <div class="avatar-circle">س</div>
198
+ <span class="avatar-name">سلطان</span>
199
+ <span class="avatar-role">ضابط شكاوي</span>
200
+ </button>
201
+ <!-- Abualzait -->
202
+ <button type="button" class="avatar-btn" onclick="selectUser('abualzait', this)">
203
+ <div class="avatar-circle">أ</div>
204
+ <span class="avatar-name">ابوالزيت</span>
205
+ <span class="avatar-role">ضابط شكاوي</span>
206
+ </button>
207
+ <!-- Raad -->
208
+ <button type="button" class="avatar-btn" onclick="selectUser('raad', this)">
209
+ <div class="avatar-circle">ر</div>
210
+ <span class="avatar-name">رعد</span>
211
+ <span class="avatar-role">ضابط اتصال</span>
212
+ </button>
213
+ </div>
214
+
215
+ <div class="secret-input-wrapper" style="margin-top: 1rem;">
216
+ <label class="secret-label" for="secretCode">كود النظام (اختياري)</label>
217
+ <input type="password" id="secretCode" class="secret-input" autocomplete="off" placeholder="•••">
218
+ </div>
219
+
220
+ <input type="hidden" id="selectedUsername" value="" required>
221
+
222
+ <div id="loginError" class="form-error mb-2"></div>
223
+ </form>
224
+
225
+ <div style="margin-top: 2rem; font-size: 0.8rem; color: var(--text-muted); text-align: center; border-top: 1px solid var(--border-color); padding-top: 1rem;">
226
+ <p style="font-weight: 700; color: var(--accent-primary);">المملكة الأردنية الهاشمية — وزارة الداخلية</p>
227
+ <p style="margin-top: 0.25rem;">MAT (Modular Assistant Toolkit) — حقيبة الأدوات المساعدة — الإصدار 1.28.0</p>
228
+ </div>
229
+ </div>
230
+ </div>
231
+
232
+ <script>
233
+ const roleLabels = {
234
+ 'admin': 'رئيس قسم',
235
+ 'officer': 'ضابط شكاوي',
236
+ 'caller': 'ضابط اتصال'
237
+ };
238
+
239
+ async function loadActiveUsers() {
240
+ const grid = document.getElementById('avatarGrid');
241
+ if (!grid) return;
242
+
243
+ try {
244
+ const res = await fetch('/api/v1/mat/active-users');
245
+ if (!res.ok) return;
246
+ const data = await res.json();
247
+ const users = data.users || [];
248
+
249
+ if (users.length === 0) {
250
+ grid.innerHTML = '<div style="color:var(--text-secondary); text-align:center; padding:1rem; grid-column: 1 / -1;">لا يوجد مستخدمين فعّالين</div>';
251
+ return;
252
+ }
253
+
254
+ grid.innerHTML = users.map(user => {
255
+ const initialChar = user.name ? user.name.charAt(0) : user.username.charAt(0);
256
+ const roleTitle = roleLabels[user.role] || 'ضابط';
257
+ return `
258
+ <button type="button" class="avatar-btn" onclick="selectUser('${user.username}', this)">
259
+ <div class="avatar-circle">${initialChar}</div>
260
+ <span class="avatar-name">${user.name}</span>
261
+ <span class="avatar-role">${roleTitle}</span>
262
+ </button>
263
+ `;
264
+ }).join('');
265
+ } catch (e) {
266
+ console.error('Error loading active users:', e);
267
+ }
268
+ }
269
+
270
+ document.addEventListener('DOMContentLoaded', loadActiveUsers);
271
+
272
+ function selectUser(username, btnEl) {
273
+ document.querySelectorAll('.avatar-btn').forEach(b => b.classList.remove('selected'));
274
+ btnEl.classList.add('selected');
275
+ document.getElementById('selectedUsername').value = username;
276
+
277
+ // Auto login when an avatar is clicked
278
+ handleLogin(new Event('submit'));
279
+ }
280
+
281
+ async function handleLogin(e) {
282
+ if (e) e.preventDefault();
283
+ const errorDiv = document.getElementById('loginError');
284
+ const username = document.getElementById('selectedUsername').value;
285
+ const secret_code = document.getElementById('secretCode').value;
286
+ const activeAvatar = document.querySelector('.avatar-btn.selected');
287
+
288
+ if (!username) {
289
+ errorDiv.textContent = 'يرجى اختيار المستخدم';
290
+ errorDiv.classList.add('show');
291
+ return;
292
+ }
293
+
294
+ errorDiv.classList.remove('show');
295
+
296
+ // Show loading state on avatar
297
+ if (activeAvatar) {
298
+ activeAvatar.style.opacity = '0.6';
299
+ activeAvatar.style.pointerEvents = 'none';
300
+ }
301
+
302
+ try {
303
+ const res = await fetch('/api/v1/mat/login', {
304
+ method: 'POST',
305
+ headers: { 'Content-Type': 'application/json' },
306
+ body: JSON.stringify({ username, secret_code })
307
+ });
308
+
309
+ const data = await res.json();
310
+
311
+ if (res.ok && data.success) {
312
+ if (data.admin_mode) {
313
+ localStorage.setItem('adminModeActive', 'true');
314
+ } else {
315
+ localStorage.removeItem('adminModeActive');
316
+ }
317
+ window.location.href = '/';
318
+ } else {
319
+ errorDiv.textContent = data.error || 'فشل تسجيل الدخول';
320
+ errorDiv.classList.add('show');
321
+ document.getElementById('secretCode').value = '';
322
+ if (activeAvatar) {
323
+ activeAvatar.style.opacity = '1';
324
+ activeAvatar.style.pointerEvents = 'auto';
325
+ activeAvatar.classList.remove('selected');
326
+ }
327
+ }
328
+ } catch (err) {
329
+ errorDiv.textContent = 'تعذر الاتصال بالخادم المحلي';
330
+ errorDiv.classList.add('show');
331
+ if (activeAvatar) {
332
+ activeAvatar.style.opacity = '1';
333
+ activeAvatar.style.pointerEvents = 'auto';
334
+ activeAvatar.classList.remove('selected');
335
+ }
336
+ }
337
+ }
338
+ </script>
339
+ </body>
340
+ </html>
council-report-20260820.html ADDED
@@ -0,0 +1,673 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="ar" dir="rtl">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>تقرير مجلس الاستشاري | نظام إدارة مواعيد الشكاوي</title>
7
+ <link rel="preconnect" href="https://fonts.googleapis.com">
8
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
9
+ <link href="https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap" rel="stylesheet">
10
+ <style>
11
+ :root {
12
+ --primary: #1A365D;
13
+ --primary-light: #2A4365;
14
+ --accent: #E53E3E;
15
+ --green: #38A169;
16
+ --orange: #DD6B20;
17
+ --purple: #805AD5;
18
+ --cyan: #0987A0;
19
+ --pink: #D53F8C;
20
+ --bg: #F7FAFC;
21
+ --card: #FFFFFF;
22
+ --text: #2D3748;
23
+ --text-light: #718096;
24
+ --border: #E2E8F0;
25
+ --shadow: 0 4px 20px rgba(0,0,0,0.06);
26
+ }
27
+
28
+ * { box-sizing: border-box; margin: 0; padding: 0; }
29
+
30
+ body {
31
+ font-family: 'Tajawal', sans-serif;
32
+ background: var(--bg);
33
+ color: var(--text);
34
+ line-height: 1.7;
35
+ direction: rtl;
36
+ }
37
+
38
+ .report-header {
39
+ background: linear-gradient(135deg, #1A365D 0%, #2A4365 50%, #2C5282 100%);
40
+ color: white;
41
+ padding: 3rem 2rem;
42
+ text-align: center;
43
+ }
44
+
45
+ .report-header h1 {
46
+ font-size: 2rem;
47
+ font-weight: 800;
48
+ margin-bottom: 0.5rem;
49
+ }
50
+
51
+ .report-header .subtitle {
52
+ font-size: 1.1rem;
53
+ opacity: 0.85;
54
+ max-width: 700px;
55
+ margin: 0 auto;
56
+ }
57
+
58
+ .report-header .timestamp {
59
+ font-size: 0.85rem;
60
+ opacity: 0.6;
61
+ margin-top: 1rem;
62
+ }
63
+
64
+ .container {
65
+ max-width: 960px;
66
+ margin: 0 auto;
67
+ padding: 2rem 1.5rem;
68
+ }
69
+
70
+ /* Question Section */
71
+ .question-section {
72
+ background: white;
73
+ border-radius: 12px;
74
+ padding: 2rem;
75
+ box-shadow: var(--shadow);
76
+ border-right: 6px solid var(--primary);
77
+ margin-bottom: 2rem;
78
+ }
79
+
80
+ .question-section h2 {
81
+ color: var(--primary);
82
+ font-size: 1.2rem;
83
+ margin-bottom: 1rem;
84
+ display: flex;
85
+ align-items: center;
86
+ gap: 0.5rem;
87
+ }
88
+
89
+ .question-section p {
90
+ color: var(--text);
91
+ font-size: 0.95rem;
92
+ line-height: 1.8;
93
+ }
94
+
95
+ /* Verdict Section */
96
+ .verdict-section {
97
+ background: white;
98
+ border-radius: 12px;
99
+ padding: 2rem;
100
+ box-shadow: var(--shadow);
101
+ margin-bottom: 2rem;
102
+ border: 2px solid var(--green);
103
+ }
104
+
105
+ .verdict-section h2 {
106
+ color: var(--green);
107
+ font-size: 1.4rem;
108
+ margin-bottom: 1.5rem;
109
+ display: flex;
110
+ align-items: center;
111
+ gap: 0.5rem;
112
+ }
113
+
114
+ .verdict-block {
115
+ margin-bottom: 1.5rem;
116
+ padding: 1.25rem;
117
+ border-radius: 8px;
118
+ }
119
+
120
+ .verdict-block h3 {
121
+ font-size: 1.05rem;
122
+ margin-bottom: 0.75rem;
123
+ display: flex;
124
+ align-items: center;
125
+ gap: 0.5rem;
126
+ }
127
+
128
+ .verdict-block p, .verdict-block li {
129
+ font-size: 0.92rem;
130
+ color: var(--text);
131
+ line-height: 1.8;
132
+ }
133
+
134
+ .verdict-block ul {
135
+ padding-right: 1.25rem;
136
+ margin-top: 0.5rem;
137
+ }
138
+
139
+ .verdict-block li {
140
+ margin-bottom: 0.4rem;
141
+ }
142
+
143
+ .agree-block { background: #F0FFF4; }
144
+ .agree-block h3 { color: #22543D; }
145
+
146
+ .clash-block { background: #FFF5F5; }
147
+ .clash-block h3 { color: #C53030; }
148
+
149
+ .blind-block { background: #FFFFF0; }
150
+ .blind-block h3 { color: #B7791F; }
151
+
152
+ .rec-block { background: #EBF8FF; }
153
+ .rec-block h3 { color: #2B6CB0; }
154
+
155
+ .first-block {
156
+ background: linear-gradient(135deg, #F0FFF4 0%, #EBF8FF 100%);
157
+ border: 2px solid var(--green);
158
+ }
159
+ .first-block h3 { color: var(--green); }
160
+
161
+ /* Agreement Visual */
162
+ .agreement-visual {
163
+ background: white;
164
+ border-radius: 12px;
165
+ padding: 2rem;
166
+ box-shadow: var(--shadow);
167
+ margin-bottom: 2rem;
168
+ }
169
+
170
+ .agreement-visual h2 {
171
+ color: var(--primary);
172
+ font-size: 1.2rem;
173
+ margin-bottom: 1.5rem;
174
+ }
175
+
176
+ .advisor-grid {
177
+ display: grid;
178
+ grid-template-columns: 1fr;
179
+ gap: 1rem;
180
+ }
181
+
182
+ @media (min-width: 600px) {
183
+ .advisor-grid { grid-template-columns: 1fr 1fr; }
184
+ }
185
+
186
+ .advisor-card {
187
+ padding: 1rem 1.25rem;
188
+ border-radius: 8px;
189
+ border-right: 4px solid;
190
+ background: #F8FAFC;
191
+ }
192
+
193
+ .advisor-card .name {
194
+ font-weight: 700;
195
+ font-size: 0.95rem;
196
+ margin-bottom: 0.25rem;
197
+ }
198
+
199
+ .advisor-card .stance {
200
+ font-size: 0.85rem;
201
+ color: var(--text-light);
202
+ }
203
+
204
+ .advisor-card .position-tag {
205
+ display: inline-block;
206
+ padding: 2px 10px;
207
+ border-radius: 20px;
208
+ font-size: 0.75rem;
209
+ font-weight: 700;
210
+ margin-top: 0.5rem;
211
+ }
212
+
213
+ .pos-separate { border-color: var(--accent); }
214
+ .pos-separate .position-tag { background: #FFF5F5; color: #C53030; }
215
+
216
+ .pos-backend { border-color: var(--green); }
217
+ .pos-backend .position-tag { background: #F0FFF4; color: #22543D; }
218
+
219
+ .pos-rethink { border-color: var(--purple); }
220
+ .pos-rethink .position-tag { background: #FAF5FF; color: #553C9A; }
221
+
222
+ .pos-offshelf { border-color: var(--orange); }
223
+ .pos-offshelf .position-tag { background: #FFFAF0; color: #C05621; }
224
+
225
+ .pos-supabase { border-color: var(--cyan); }
226
+ .pos-supabase .position-tag { background: #E6FFFA; color: #285E61; }
227
+
228
+ /* Collapsible */
229
+ .collapsible-section {
230
+ background: white;
231
+ border-radius: 12px;
232
+ box-shadow: var(--shadow);
233
+ margin-bottom: 1.5rem;
234
+ overflow: hidden;
235
+ }
236
+
237
+ .collapsible-header {
238
+ padding: 1.25rem 1.5rem;
239
+ cursor: pointer;
240
+ display: flex;
241
+ justify-content: space-between;
242
+ align-items: center;
243
+ border-bottom: 1px solid transparent;
244
+ transition: all 0.2s;
245
+ user-select: none;
246
+ }
247
+
248
+ .collapsible-header:hover {
249
+ background: #F7FAFC;
250
+ }
251
+
252
+ .collapsible-header h3 {
253
+ font-size: 1.05rem;
254
+ color: var(--primary);
255
+ display: flex;
256
+ align-items: center;
257
+ gap: 0.5rem;
258
+ }
259
+
260
+ .collapsible-header .toggle {
261
+ font-size: 1.2rem;
262
+ color: var(--text-light);
263
+ transition: transform 0.3s;
264
+ }
265
+
266
+ .collapsible-body {
267
+ max-height: 0;
268
+ overflow: hidden;
269
+ transition: max-height 0.4s ease;
270
+ }
271
+
272
+ .collapsible-section.open .collapsible-body {
273
+ max-height: 3000px;
274
+ }
275
+
276
+ .collapsible-section.open .toggle {
277
+ transform: rotate(180deg);
278
+ }
279
+
280
+ .collapsible-section.open .collapsible-header {
281
+ border-bottom: 1px solid var(--border);
282
+ }
283
+
284
+ .advisor-response {
285
+ padding: 1.5rem;
286
+ }
287
+
288
+ .advisor-response .advisor-label {
289
+ display: inline-block;
290
+ padding: 4px 12px;
291
+ border-radius: 6px;
292
+ font-size: 0.8rem;
293
+ font-weight: 700;
294
+ margin-bottom: 0.75rem;
295
+ }
296
+
297
+ .advisor-response p {
298
+ font-size: 0.92rem;
299
+ line-height: 1.8;
300
+ margin-bottom: 0.75rem;
301
+ }
302
+
303
+ .advisor-response ol, .advisor-response ul {
304
+ padding-right: 1.25rem;
305
+ margin-bottom: 0.75rem;
306
+ }
307
+
308
+ .advisor-response li {
309
+ font-size: 0.92rem;
310
+ line-height: 1.8;
311
+ margin-bottom: 0.3rem;
312
+ }
313
+
314
+ .advisor-response strong {
315
+ color: var(--primary);
316
+ }
317
+
318
+ .label-contrarian { background: #FFF5F5; color: #C53030; }
319
+ .label-firstprinciples { background: #FAF5FF; color: #553C9A; }
320
+ .label-expansionist { background: #F0FFF4; color: #22543D; }
321
+ .label-outsider { background: #FFFAF0; color: #C05621; }
322
+ .label-executor { background: #E6FFFA; color: #285E61; }
323
+
324
+ .divider {
325
+ border: none;
326
+ border-top: 1px solid var(--border);
327
+ margin: 1rem 0;
328
+ }
329
+
330
+ .footer {
331
+ text-align: center;
332
+ padding: 2rem;
333
+ color: var(--text-light);
334
+ font-size: 0.85rem;
335
+ border-top: 1px solid var(--border);
336
+ margin-top: 2rem;
337
+ }
338
+
339
+ .footer strong {
340
+ color: var(--primary);
341
+ }
342
+
343
+ .peer-review-item {
344
+ padding: 1rem 1.5rem;
345
+ border-bottom: 1px solid #F0F0F0;
346
+ }
347
+
348
+ .peer-review-item:last-child {
349
+ border-bottom: none;
350
+ }
351
+
352
+ .peer-review-item .reviewer-name {
353
+ font-weight: 700;
354
+ color: var(--primary);
355
+ font-size: 0.9rem;
356
+ margin-bottom: 0.5rem;
357
+ }
358
+
359
+ .peer-review-item p {
360
+ font-size: 0.88rem;
361
+ line-height: 1.7;
362
+ margin-bottom: 0.4rem;
363
+ }
364
+ </style>
365
+ </head>
366
+ <body>
367
+
368
+ <header class="report-header">
369
+ <h1>⚖️ تقرير المجلس الاستشاري</h1>
370
+ <p class="subtitle">توسيع أداة البحث عن المراكز الأمنية إلى منصة إدارة مواعيد الشكاوي — هل يجب البناء داخل التطبيق الحالي أم إنشاء نظام منفصل؟</p>
371
+ <p class="timestamp">📅 ٢٠ آب ٢٠٢٦ — منهجية مجلس الذكاء الاصطناعي (بإلهام من أندريه كارباثي)</p>
372
+ </header>
373
+
374
+ <div class="container">
375
+
376
+ <!-- Question -->
377
+ <div class="question-section">
378
+ <h2>❓ السؤال المطروح على المجلس</h2>
379
+ <p>
380
+ لدي تطبيق ويب يعمل كملف HTML واحد (~٤٠ ألف سطر) للبحث عن أقرب مركز شرطة في عمّان، يعمل بدون إنترنت مع خرائط Leaflet محلية.
381
+ أريد توسيعه إلى منصة إدارة مكتبية، بدءاً بـ<strong>نظام إدارة مواعيد قسم الشكاوي</strong>:
382
+ </p>
383
+ <ul style="margin-top: 0.75rem; padding-right: 1.25rem; font-size: 0.92rem;">
384
+ <li>ضابط في مركز الاتصال يتلقى أرقام هواتف لأشخاص يجب الاتصال بهم</li>
385
+ <li>يتصل ويحدد موعداً للنظر في الشكوى</li>
386
+ <li>أحياناً يجب حضور كل من <strong>الشاكي والمشتكى عليه</strong> في نفس الوقت</li>
387
+ <li>الضابط يرى قائمة جهات اتصال معلقة ويحفظ تفاصيل المواعيد</li>
388
+ <li>المشرف/المدير يرى جميع التفاصيل، يعدّل، ويضيف جهات اتصال جديدة للضباط</li>
389
+ <li>التطبيق الحالي client-side بالكامل — لا خادم ولا قاعدة بيانات</li>
390
+ <li>البيانات حساسة (أرقام هواتف، تفاصيل شكاوي) في سياق حكومي أردني</li>
391
+ </ul>
392
+ <p style="margin-top: 1rem;">
393
+ <strong>القرار:</strong> ما هو أفضل نهج لبناء نظام إدارة مواعيد الشكاوي؟ هل يبقى كتطبيق عميل أم ينتقل إلى تطبيق كامل؟ ما هي اعتبارات البنية والتخزين والأمان الأهم؟
394
+ </p>
395
+ </div>
396
+
397
+ <!-- Chairman's Verdict -->
398
+ <div class="verdict-section">
399
+ <h2>🏛️ حكم المجلس — تقرير الرئيس</h2>
400
+
401
+ <div class="verdict-block agree-block">
402
+ <h3>✅ حيث اتفق المجلس</h3>
403
+ <ul>
404
+ <li><strong>البنية الحالية لا تدعم هذه الميزة.</strong> ملف HTML واحد بدون خادم لا يمكنه مشاركة البيانات بين عدة مستخدمين (ضباط + مدير). جميع المستشارين الخمسة اتفقوا على هذا.</li>
405
+ <li><strong>يجب بناء نظام الشكاوي كتطبيق/وحدة منفصلة</strong>، وليس دمجه في ملف HTML الحالي ذو ٤٠ ألف سطر.</li>
406
+ <li><strong>نموذج البيانات يأتي أولاً.</strong> الكيانات واضحة: شكاوي ← أطراف (شاكي/مشتكى عليه) ← مواعيد، مع تعيين مهام بحسب الأدوار.</li>
407
+ <li><strong>الحل يجب أن يكون عربي RTL بالكامل</strong>، يعمل على أجهزة حكومية قد تكون قديمة، ويتوافق مع لغة التصميم الحالية.</li>
408
+ </ul>
409
+ </div>
410
+
411
+ <div class="verdict-block clash-block">
412
+ <h3>⚡ حيث اختلف المجلس</h3>
413
+ <ul>
414
+ <li><strong>بناء مخصص أم أداة جاهزة؟</strong> المراقب الخارجي اقترح أن الأدوات الجاهزة (Calendly, Trello) قد تكفي. المنفذ والتوسعي يريدان برنامجاً مخصصاً. <em>الحل:</em> الأدوات الجاهزة نادراً ما تلبي متطلبات العربية والسيادة البيانية الحكومية، لكن البناء يجب أن يكون خفيفاً (Supabase/Firebase، وليس خادم Node.js مخصص من الصفر).</li>
415
+ <li><strong>النطاق:</strong> التوسعي يرى منصة كاملة (SMS، تحليلات، إدارة قضايا). المنفذ يريد MVP في ٣ أسابيع. المعترض يقول أمّنوا البيانات أولاً. <em>الحل:</em> ابدأ بخطة المنفذ المرحلية، لكن صمم نموذج البيانات مع مراعاة الوحدات المستقبلية.</li>
416
+ </ul>
417
+ </div>
418
+
419
+ <div class="verdict-block blind-block">
420
+ <h3>🔍 النقاط العمياء التي كشفها المجلس</h3>
421
+ <ul>
422
+ <li><strong>لا خطة انتقال:</strong> لم يناقش أحد كيفية الانتقال من سير العمل الحالي (ورقي/هاتفي) إلى النظام الرقمي دون تعطيل العمل الجاري.</li>
423
+ <li><strong>تعارض المواعيد:</strong> لم يناقش أي مستشار ماذا يحدث عندما لا يتفق الطرفان على وقت، أو عندما يُجدول شكواان في نفس الفترة.</li>
424
+ <li><strong>التدريب والتبني:</strong> أداة لا يستخدمها الضباط أسوأ من عدم وجود أداة. الواجهة يجب أن تكون بسيطة جداً — بمستوى بساطة واتساب.</li>
425
+ <li><strong>المتطلبات القانونية:</strong> الأنظمة الحكومية في الأردن لها متطلبات محددة لتخزين البيانات وسجلات الوصول والاحتفاظ بالسجلات.</li>
426
+ </ul>
427
+ </div>
428
+
429
+ <div class="verdict-block rec-block">
430
+ <h3>📋 التوصية</h3>
431
+ <p>
432
+ ابنِ نظام مواعيد الشكاوي كـ<strong>تطبيق ويب منفصل</strong> باستخدام <strong>Supabase</strong> (أو Firebase) كخلفية. أبقِ أداة البحث عن المراكز كما هي — فهي تعمل بشكل ممتاز لغرضها. اربط التطبيقين من خلال شريط تنقل مشترك، مما يعطي شعوراً بمنصة موحدة دون تعقيد دمج الأكواد.
433
+ </p>
434
+ <p style="margin-top: 0.75rem;">
435
+ ابدأ بخطة المنفذ ذات الـ ٣ أسابيع لكن أدمج نهج مفكر المبادئ الأولى في نموذج البيانات: حدد آلة الحالة (<strong>جديد ← مُعيّن ← تم الاتصال ← مُجدول ← مكتمل</strong>) والعلاقات بين الكيانات قبل كتابة أي واجهة. صمم مخطط قاعدة البيانات مع مراعاة الوحدات المستقبلية (أضف حقل <code>complaint_type</code>، جدول <code>documents</code>، جدول <code>notifications_log</code> حتى لو فارغة مبدئياً).
436
+ </p>
437
+ </div>
438
+
439
+ <div class="verdict-block first-block">
440
+ <h3>🎯 أول شيء يجب فعله</h3>
441
+ <p>
442
+ <strong>صمم نموذج البيانات على ورقة.</strong> ارسم الكيانات الأربع (شكاوي، أطراف، مواعيد، ضباط)، علاقاتها، وسير عمل الحالة. اعرضها على ضابط واحد ومشرف واحد. تأكد أنها تطابق طريقة عملهم الفعلية قبل كتابة سطر كود واحد.
443
+ </p>
444
+ </div>
445
+ </div>
446
+
447
+ <!-- Agreement/Disagreement Visual -->
448
+ <div class="agreement-visual">
449
+ <h2>📊 مواقف المستشارين</h2>
450
+ <div class="advisor-grid">
451
+ <div class="advisor-card pos-separate">
452
+ <div class="name">🔴 المعترض (الناقد)</div>
453
+ <div class="stance">البنية الحالية طريق مسدود. ملف ٤٠ ألف سطر + بيانات حساسة بدون خادم = كارثة أمنية. أعد البناء بالكامل.</div>
454
+ <div class="position-tag">تطبيق منفصل بالكامل</div>
455
+ </div>
456
+ <div class="advisor-card pos-rethink">
457
+ <div class="name">🟣 مفكر المبادئ الأولى</div>
458
+ <div class="stance">هذه مسألة قائمة مهام + تقويم. ركّز على نموذج البيانات وآلة الحالة أولاً. التقنية ثانوية.</div>
459
+ <div class="position-tag">نموذج البيانات أولاً</div>
460
+ </div>
461
+ <div class="advisor-card pos-backend">
462
+ <div class="name">🟢 التوسعي</div>
463
+ <div class="stance">هذه بداية منصة إدارة قضايا كاملة. SMS تلقائي، تحليلات، إدارة وثائق. ابنِ بأساس متين.</div>
464
+ <div class="position-tag">منصة قابلة للتوسع</div>
465
+ </div>
466
+ <div class="advisor-card pos-offshelf">
467
+ <div class="name">🟠 المراقب الخارجي</div>
468
+ <div class="stance">لماذا بناء مخصص؟ تحقق من الأدوات الجاهزة أولاً. وافصل هذا عن أداة البحث — جمهوران مختلفان.</div>
469
+ <div class="position-tag">تحقق من البدائل أولاً</div>
470
+ </div>
471
+ <div class="advisor-card pos-supabase">
472
+ <div class="name">🔵 المنفذ</div>
473
+ <div class="stance">Supabase مجاني + ٣ جداول + صفحة HTML منفصلة. أسبوع ١: أساس. أسبوع ٢: ميزات. ��سبوع ٣: صقل. أطلق وكرر.</div>
474
+ <div class="position-tag">MVP في ٣ أسابيع</div>
475
+ </div>
476
+ </div>
477
+ </div>
478
+
479
+ <!-- Advisor Responses (Collapsible) -->
480
+ <div class="collapsible-section">
481
+ <div class="collapsible-header" onclick="toggleSection(this)">
482
+ <h3>🔴 رأي المعترض (الناقد)</h3>
483
+ <span class="toggle">▼</span>
484
+ </div>
485
+ <div class="collapsible-body">
486
+ <div class="advisor-response">
487
+ <span class="advisor-label label-contrarian">المعترض — يبحث عن العيوب والمخاطر</span>
488
+ <p>أنت على وشك ارتكاب خطأ جوهري: محاولة توسيع ملف HTML واحد من ٤٠ ألف سطر إلى نظام إدارة مواعيد متعدد المستخدمين. توقف. البنية الحالية لا تدعم هذا. إليك لماذا:</p>
489
+ <ol>
490
+ <li><strong>لا خادم = لا مستخدمين متعددين.</strong> الضباط والمدير لا يمكنهم مشاركة البيانات في تطبيق يعمل على جانب العميل فقط. كل مستخدم يرى حالته المحلية. لا مزامنة، لا مصدر واحد للحقيقة.</li>
491
+ <li><strong>كشف البيانات الحساسة.</strong> أرقام هواتف، أسماء شاكين، تفاصيل شكاوي — هذه بيانات شخصية حكومية. تخزينها في localStorage أو قاعدة بيانات على العميل يعني أن أي زميل لديه وصول للمتصفح يمكنه استخراجها. لا تحكم بالوصول، لا سجل تدقيق، لا تشفير.</li>
492
+ <li><strong>الملف الحالي غير قابل للصيانة.</strong> ٤٠ ألف سطر HTML مع بيانات مضمنة هو كابوس. إضافة مجال ميزات مختلف تماماً (جدولة مقابل بحث) سيجعل التصحيح والتحديث مستحيلاً.</li>
493
+ <li><strong>تحتاج مصادقة.</strong> الضباط مقابل المدير يحتاجون صلاحيات مختلفة. المصادقة على جانب العميل قابلة للتجاوز بسهولة.</li>
494
+ </ol>
495
+ <p><strong>العيب القاتل:</strong> تحاول بناء أداة سير عمل تعاونية متعددة المستخدمين ومبنية على الصلاحيات فوق صفحة بحث ثابتة لمستخدم واحد. هذان تطبيقان مختلفان جذرياً. ابنِ نظام الشكاوي كتطبيق منفصل بخلفية حقيقية.</p>
496
+ </div>
497
+ </div>
498
+ </div>
499
+
500
+ <div class="collapsible-section">
501
+ <div class="collapsible-header" onclick="toggleSection(this)">
502
+ <h3>🟣 رأي مفكر المبادئ الأولى</h3>
503
+ <span class="toggle">▼</span>
504
+ </div>
505
+ <div class="collapsible-body">
506
+ <div class="advisor-response">
507
+ <span class="advisor-label label-firstprinciples">المبادئ الأولى — يعيد صياغة المشكلة من الجذور</span>
508
+ <p>لنجرد المسألة. المشكلة الأساسية ليست "كيف أضيف ميزات لتطبيقي". بل: <strong>كيف ننسق سير عمل متعدد الخطوات بين ضباط ومشرفين مع المساءلة؟</strong></p>
509
+ <p>سير العمل هو:</p>
510
+ <ol>
511
+ <li>المشرف يحدد أشخاصاً للتواصل معهم (شاكي، مشتكى عليه، أو كليهما)</li>
512
+ <li>الضابط يتلقى مهمة الاتصال</li>
513
+ <li>الضابط يتصل ويحدد موعداً</li>
514
+ <li>قد يحتاج كلا الطرفين لنفس الفترة الزمنية</li>
515
+ <li>المشرف يراجع ويمكنه التعديل</li>
516
+ </ol>
517
+ <p>هذه مسألة <strong>قائمة مهام + تقويم</strong>. الكيانات هي: شكاوي (مع أطراف)، مهام (تعيينات اتصال)، ومواعيد (أوقات مجدولة).</p>
518
+ <p>السؤال الحقيقي ليس "أي إطار عمل" — بل "<strong>ما أبسط طريقة موثوقة لمشاركة الحالة بين ٢-٥ مستخدمين؟</strong>" لفريق صغير في مكتب واحد، حتى جدول Google Sheets مهيكل بشكل صحيح مع AppScript قد يعمل. لكن إذا أردت شيئاً مبنياً لغرض محدد واحترافي:</p>
519
+ <ul>
520
+ <li><strong>نموذج البيانات أولاً:</strong> شكوى ← لها أطراف (شاكي/مشتكى عليه) ← لها مواعيد ← مُعينة لضابط</li>
521
+ <li><strong>آلة حالة:</strong> كل شكوى تتحرك عبر حالات: جديد ← مُعيّن ← تم الاتصال ← مُجدول ← مكتمل</li>
522
+ <li><strong>قيد:</strong> عندما يُحتاج كلا الطرفين، يجب مشاركة فترة الموعد</li>
523
+ </ul>
524
+ <p>لا تدع اختيار التقنية يشتتك عن الحصول على نموذج البيانات الصحيح. نموذج بيانات صحيح مع واجهة أساسية سيتفوق على واجهة جميلة مع نموذج بيانات خاطئ في كل مرة.</p>
525
+ </div>
526
+ </div>
527
+ </div>
528
+
529
+ <div class="collapsible-section">
530
+ <div class="collapsible-header" onclick="toggleSection(this)">
531
+ <h3>🟢 رأي التوسعي</h3>
532
+ <span class="toggle">▼</span>
533
+ </div>
534
+ <div class="collapsible-body">
535
+ <div class="advisor-response">
536
+ <span class="advisor-label label-expansionist">التوسعي — يبحث عن الفرص الخفية</span>
537
+ <p>أنت جالس على شيء أكبر بكثير مما تتصور. هذا ليس مجرد "مُجدول مواعيد" — هذه بداية <strong>منصة إدارة قضايا الشكاوي</strong> لأقسام الشرطة.</p>
538
+ <p>فكر فيما يتبع طبيعياً بمجرد عمل المواعيد:</p>
539
+ <ul>
540
+ <li><strong>تتبع القضايا:</strong> ربط المواعيد بملفات الشكاوي. تتبع حالة الحل.</li>
541
+ <li><strong>إشعارات SMS/واتساب:</strong> إرسال تأكيدات وتذكيرات المواعيد تلقائياً لكلا الطرفين. تقليل عدم الحضور بنسبة ٤٠-٦٠%.</li>
542
+ <li><strong>لوحة تحليلات:</strong> كم شكوى شهرياً؟ متوسط وقت الحل؟ أي ضابط يعالج أكثر القضايا؟ أي مناطق تولد أكثر الشكاوي؟</li>
543
+ <li><strong>إدارة وثائق:</strong> إرفاق مستندات الشكوى، صور الهويات، صور الأدلة.</li>
544
+ <li><strong>توسع متعدد الأقسام:</strong> نفس النظام يعمل لمخالفات المرور، التصاريح، الشرطة المجتمعية.</li>
545
+ <li><strong>تطبيق موبايل للضباط:</strong> ضباط الميدان يحدثون حالة القضية من هواتفهم.</li>
546
+ </ul>
547
+ <p>ميزة الجدولة هي <strong>حصان طروادة</strong> — تحل ألماً فورياً، لكنها تنشئ البنية التحتية لنظام إدارة قضايا كامل.</p>
548
+ <p>فكر في بناء هذا كتطبيق ويب حقيقي من اليوم الأول. استخدم إطار عمل يتوسع. البحث عن المراكز يصبح وحدة. الشكاوي وحدة أخرى. الوحدات المستقبلية تندمج طبيعياً. شعار عمّان، خط Tajawal، نظام ألوان الأزرق الشرطي — هذه تصبح نظام تصميمك عبر جميع الوحدات.</p>
549
+ </div>
550
+ </div>
551
+ </div>
552
+
553
+ <div class="collapsible-section">
554
+ <div class="collapsible-header" onclick="toggleSection(this)">
555
+ <h3>🟠 رأي المراقب الخارجي</h3>
556
+ <span class="toggle">▼</span>
557
+ </div>
558
+ <div class="collapsible-body">
559
+ <div class="advisor-response">
560
+ <span class="advisor-label label-outsider">المراقب الخارجي — يرى بعيون جديدة</span>
561
+ <p>أنظر لهذا بعيون جديدة تماماً، ولدي أسئلة:</p>
562
+ <ol>
563
+ <li><strong>لماذا بناء برنامج مخصص؟</strong> هناك أدوات جدولة مواعيد موجودة (Calendly, Cal.com)، أنظمة CRM (حتى المجانية)، وأدوات إدارة مهام (Trello, Notion). هل تحقق أحد من إمكانية عمل أداة جاهزة؟ سير العمل المذكور عام: تعيين جهات اتصال ← إجراء مكالمات ← حجز مواعيد.</li>
564
+ <li><strong>من يستخدم هذا فعلاً؟</strong> ذكرت "ضباط" و"مدير" — كم شخص؟ إذا كانوا ٣ أشخاص في غرفة واحدة، ملف Excel مشترك مع ماكرو قد يكون الجواب فعلاً. إذا كانوا ٥٠ ضابطاً عبر عدة مراكز، هذه مشكلة مختلفة تماماً.</li>
565
+ <li><strong>التطبيق الحالي أداة بحث. الميزة الجديدة أداة سير عمل.</strong> تخدم جماهير مختلفة لأغراض مختلفة. دمجها في تطبيق واحد سيربك المستخدمين. أداة البحث عامة (أو مستخدمة على نطاق واسع). نظام الشكاوي داخلي ف��ط بوصول مقيد.</li>
566
+ <li><strong>اللغة والملاءمة الثقافية مهمة.</strong> الواجهة تحتاج أن تكون RTL عربية بالكامل، تعمل جيداً على الأجهزة الحكومية (التي قد تكون قديمة)، وربما تعمل بدون إنترنت (الشبكات الحكومية قد تكون غير مستقرة).</li>
567
+ </ol>
568
+ <p>أفصل هاتين الأداتين تماماً. أبقِ أداة البحث كصفحة HTML مستقلة وسريعة. ابنِ نظام الشكاوي كأداة داخلية مميزة.</p>
569
+ </div>
570
+ </div>
571
+ </div>
572
+
573
+ <div class="collapsible-section">
574
+ <div class="collapsible-header" onclick="toggleSection(this)">
575
+ <h3>🔵 رأي المنفذ</h3>
576
+ <span class="toggle">▼</span>
577
+ </div>
578
+ <div class="collapsible-body">
579
+ <div class="advisor-response">
580
+ <span class="advisor-label label-executor">المنفذ — أقصر طريق للتنفيذ</span>
581
+ <p>إليك أسرع مسار لنظام مواعيد شكاوي يعمل:</p>
582
+ <p><strong>الأسبوع ١ — الأساس:</strong></p>
583
+ <ul>
584
+ <li>استخدم <strong>Supabase</strong> (الطبقة المجانية): قاعدة بيانات PostgreSQL فورية، مصادقة مدمجة، أمان على مستوى الصفوف، اشتراكات فورية. لا خادم لإدارته.</li>
585
+ <li>أنشئ ٣ جداول: <code>complaints</code>، <code>parties</code> (شاكي/مشتكى عليه)، <code>appointments</code></li>
586
+ <li>ابنِ صفحة HTML منفصلة: <code>complaints.html</code> — اربطها من التطبيق الرئيسي لكن أبقها مستقلة</li>
587
+ <li>نفذ مصادقة أساسية: تسجيل دخول مدير، تسجيل دخول ضابط (Supabase Auth)</li>
588
+ </ul>
589
+ <p><strong>الأسبوع ٢ — الميزات الأساسية:</strong></p>
590
+ <ul>
591
+ <li>واجهة المدير: إضافة شكاوي، إضافة أطراف بأرقام هواتف، تعيين لضباط</li>
592
+ <li>واجهة الضابط: رؤية قائمة المكالمات المعلقة، النقر لوضع علامة "تم الاتصال"، إدخال تاريخ/وقت الموعد</li>
593
+ <li>جدولة الطرفين: عندما يحتاج كلاهما الحضور، عرض منتقي فترة موعد واحدة</li>
594
+ <li>عرض تقويم بسيط باستخدام مكتبة JS خفيفة (FullCalendar)</li>
595
+ </ul>
596
+ <p><strong>الأسبوع ٣ — الصقل:</strong></p>
597
+ <ul>
598
+ <li>لوحة معلومات تعرض مواعيد اليوم، المكالمات القادمة، المهام المتأخرة</li>
599
+ <li>شارات حالة (جديد / تم الاتصال / مُجدول / مكتمل)</li>
600
+ <li>ملخص موعد قابل للطباعة</li>
601
+ <li>عربي RTL بالكامل، مطابق لأسلوب التصميم الحالي</li>
602
+ </ul>
603
+ <p><strong>ما لا يجب فعله:</strong></p>
604
+ <ul>
605
+ <li>لا تدمج هذا في ملف HTML ذو ٤٠ ألف سطر</li>
606
+ <li>لا تبنِ خلفية مخصصة من الصفر</li>
607
+ <li>لا تحاول بناء كل شيء دفعة واحدة</li>
608
+ <li>لا تقلق بشأن تطبيق موبايل — الويب المتجاوب يكفي</li>
609
+ </ul>
610
+ <p>أطلق الأسبوع ١ واجعل ضابطاً واحداً يستخدمه قبل بناء الأسبوع ٢.</p>
611
+ </div>
612
+ </div>
613
+ </div>
614
+
615
+ <!-- Peer Reviews (Collapsible) -->
616
+ <div class="collapsible-section">
617
+ <div class="collapsible-header" onclick="toggleSection(this)">
618
+ <h3>📝 نتائج المراجعة المتبادلة</h3>
619
+ <span class="toggle">▼</span>
620
+ </div>
621
+ <div class="collapsible-body">
622
+ <div class="peer-review-item">
623
+ <div class="reviewer-name">مراجعة المعترض:</div>
624
+ <p><strong>الأقوى:</strong> مفكر المبادئ الأولى — حدد بشكل صحيح أن هذه مسألة نموذج بيانات أولاً.</p>
625
+ <p><strong>أكبر نقطة عمياء:</strong> التوسعي — يتجاهل تماماً قيود الأمان والجدوى، ويقفز إلى SMS والتحليلات قبل أن تعمل الأساسيات.</p>
626
+ <p><strong>ما فات الجميع:</strong> لم يعالج أحد بشكل كافٍ لوائح خصوصية البيانات في الأردن أو متطلبات مشتريات تكنولوجيا المعلومات الحكومية.</p>
627
+ </div>
628
+ <div class="peer-review-item">
629
+ <div class="reviewer-name">مراجعة مفكر المبادئ الأولى:</div>
630
+ <p><strong>الأقوى:</strong> المنفذ — يوفر مراحل أسبوعية قابلة للتنفيذ، ويقترح Supabase الذي يتوافق مع مبدأ أبسط خلفية موثوقة.</p>
631
+ <p><strong>أكبر نقطة عمياء:</strong> المعترض — يحدد المشاكل بشكل صحيح لكنه لا يقدم مساراً بنّاءً للأمام. نقد بحت بدون حلول.</p>
632
+ <p><strong>ما فات الجميع:</strong> لم يناقش أحد خطة الانتقال — كيف ينتقل سير العمل الحالي (ورقي/هاتفي على الأرجح) إلى النظام الرقمي دون تعطيل.</p>
633
+ </div>
634
+ <div class="peer-review-item">
635
+ <div class="reviewer-name">مراجعة التوسعي:</div>
636
+ <p><strong>الأقوى:</strong> المنفذ — النهج المرحلي صحيح تماماً لإثبات القيمة بسرعة.</p>
637
+ <p><strong>أكبر نقطة عمياء:</strong> المراقب الخارجي — اقتراح أدوات جاهزة يتجاهل أن الجهات الحكومية في الأردن غالباً لا تستطيع استخدام أدوات SaaS السحابية بسبب سيادة البيانات، ودعم العربية RTL في معظم الأدوات ضعيف.</p>
638
+ <p><strong>ما فات الجميع:</strong> لم يذكر أحد التدريب — يجب تدريب الضباط، والواجهة يجب أن تكون بسيطة جداً وإلا سيفشل التبني.</p>
639
+ </div>
640
+ <div class="peer-review-item">
641
+ <div class="reviewer-name">مراجعة المراقب الخارجي:</div>
642
+ <p><strong>الأقوى:</strong> مفكر المبادئ الأولى — مفهوم آلة الحالة والتركيز على نموذج البيانات هو الرؤية الأكثر قابلية للنقل بغض النظر عن اختيار التقنية.</p>
643
+ <p><strong>أكبر نقطة عمياء:</strong> التوسعي — يبالغ في النطاق بشكل هائل. بناء "منصة" عندما لا تستطيع حتى جدولة موعد واحد بعد هو كيف تموت المشاريع.</p>
644
+ <p><strong>ما فات الجميع:</strong> لم يسأل أحد ماذا يحدث عند تعارض المواعيد — ما هي عملية حل التعارض؟ ماذا عن العطل، جداول الضباط، توفر الغرف؟</p>
645
+ </div>
646
+ <div class="peer-review-item">
647
+ <div class="reviewer-name">مراجعة المنفذ:</div>
648
+ <p><strong>الأقوى:</strong> المعترض — حدد بشكل صحيح الطريق المسدود للبنية، وهي الرؤية الأهم قبل أي بناء.</p>
649
+ <p><strong>أكبر نقطة عمياء:</strong> المراقب الخارجي — اقتراح Google Sheets ساذج لقسم شرطة يتعامل مع شكاوي. أمان البيانات وسجلات التدقيق مهمة.</p>
650
+ <p><strong>ما فات الجميع:</strong> لم يناقش أحد المتطلبات القانونية/التنظيمية — الأنظمة الحكومية في الأردن لها على الأرجح متطلبات محددة لتخزين البيانات، تسجيل الوصول، والاحتفاظ بالسجلات.</p>
651
+ </div>
652
+ </div>
653
+ </div>
654
+
655
+ <footer class="footer">
656
+ <p>
657
+ <strong>مجلس الذكاء الاصطناعي الاستشاري</strong><br>
658
+ الموضوع: توسيع أداة البحث عن المراكز الأمنية إلى منصة إدارة مواعيد الشكاوي<br>
659
+ التاريخ: ٢٠ آب ٢٠٢٦ — الساعة ٠٨:٥٥<br>
660
+ المنهجية: <a href="https://x.com/karpathy" target="_blank" style="color: var(--primary);">أندريه كارباثي</a> — ٥ مستشارين مستقلين + مراجعة متبادلة مجهولة + تركيب رئيس المجلس
661
+ </p>
662
+ </footer>
663
+ </div>
664
+
665
+ <script>
666
+ function toggleSection(header) {
667
+ const section = header.parentElement;
668
+ section.classList.toggle('open');
669
+ }
670
+ </script>
671
+
672
+ </body>
673
+ </html>
council-report-mzt-rebuilde.html ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>LLM Council Report: mzt-rebuilde on Amman Police Stations</title>
7
+ <style>
8
+ body {
9
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
10
+ line-height: 1.6;
11
+ color: #333;
12
+ max-width: 800px;
13
+ margin: 0 auto;
14
+ padding: 2rem;
15
+ background-color: #fafafa;
16
+ }
17
+ .container {
18
+ background: #fff;
19
+ padding: 2rem;
20
+ border-radius: 8px;
21
+ box-shadow: 0 2px 10px rgba(0,0,0,0.05);
22
+ border: 1px solid #eaeaea;
23
+ }
24
+ h1 { margin-top: 0; color: #111; border-bottom: 2px solid #eaeaea; padding-bottom: 0.5rem; }
25
+ h2 { color: #222; margin-top: 1.5rem; }
26
+ .question {
27
+ background: #f0f7ff;
28
+ padding: 1.5rem;
29
+ border-radius: 6px;
30
+ border-left: 4px solid #0066cc;
31
+ margin-bottom: 2rem;
32
+ }
33
+ .verdict-section {
34
+ margin-bottom: 1.5rem;
35
+ }
36
+ .verdict-section h3 {
37
+ margin-bottom: 0.5rem;
38
+ color: #444;
39
+ }
40
+ .recommendation {
41
+ background: #fdf6e3;
42
+ padding: 1.5rem;
43
+ border-radius: 6px;
44
+ border-left: 4px solid #b58900;
45
+ margin: 2rem 0;
46
+ font-weight: 500;
47
+ }
48
+ .next-step {
49
+ background: #e8f5e9;
50
+ padding: 1.5rem;
51
+ border-radius: 6px;
52
+ border-left: 4px solid #2e7d32;
53
+ margin-bottom: 2rem;
54
+ font-weight: 500;
55
+ }
56
+ details {
57
+ background: #f9f9f9;
58
+ padding: 0.5rem 1rem;
59
+ border-radius: 4px;
60
+ margin-bottom: 1rem;
61
+ border: 1px solid #eaeaea;
62
+ }
63
+ summary {
64
+ font-weight: bold;
65
+ cursor: pointer;
66
+ padding: 0.5rem 0;
67
+ outline: none;
68
+ }
69
+ .footer {
70
+ margin-top: 3rem;
71
+ font-size: 0.85rem;
72
+ color: #888;
73
+ text-align: center;
74
+ }
75
+ </style>
76
+ </head>
77
+ <body>
78
+ <div class="container">
79
+ <h1>LLM Council Verdict</h1>
80
+
81
+ <div class="question">
82
+ <strong>The Question:</strong><br>
83
+ "I am considering running the <code>mzt-rebuilde</code> skill (a rigorous product/business re-engineering and blueprinting process) on my 'Amman Police Stations' project. The project is currently a local Python server (using <code>http.server</code> and SQLite with no external dependencies) with a custom HTML/JS frontend. It is designed for offline local network use. Should I execute the full <code>mzt-rebuilde</code> process on this, or is that the wrong approach for this specific system?"
84
+ </div>
85
+
86
+ <h2>Chairman's Synthesis</h2>
87
+
88
+ <div class="verdict-section">
89
+ <h3>Where the Council Agrees</h3>
90
+ <p>The council unanimously agrees that running a full, unconstrained <code>mzt-rebuilde</code> process to completely re-architect the technical stack is dangerous for this specific project. The project's core value lies in its zero-dependency, highly portable, and offline nature (a single <code>server.py</code> script). A standard re-engineering process would likely recommend modern frameworks (like React, Next.js, or microservices) that fundamentally break these operational constraints.</p>
91
+ </div>
92
+
93
+ <div class="verdict-section">
94
+ <h3>Where the Council Clashes</h3>
95
+ <p>The Expansionist argues that the project <i>must</i> be re-engineered from a business perspective, as a police complaint system has high stakes and likely missing business rules (e.g., chain of custody, SLA tracking). Conversely, the Contrarian and Executor argue that introducing a massive consulting/blueprinting exercise will derail immediate development, block feature additions, and force an unnecessary total rewrite of a tool that currently functions well.</p>
96
+ </div>
97
+
98
+ <div class="verdict-section">
99
+ <h3>Blind Spots the Council Caught</h3>
100
+ <p>The reviewers noted a critical blind spot: the advisors assumed <code>mzt-rebuilde</code> is an all-or-nothing technical rewrite. They missed that the skill explicitly has an <strong>"Analysis Only" (Option C)</strong> gate. You can use the skill purely to generate a rigorous business domain model, UI gap analysis, and UX concepts, without ever committing to changing the raw Python/SQLite architecture.</p>
101
+ </div>
102
+
103
+ <div class="recommendation">
104
+ <h3>The Recommendation</h3>
105
+ <p><strong>Run the skill, but strictly for business analysis and UX redesign, NOT technical re-architecture.</strong> Because the current system is a monolithic Python file handling raw HTTP requests, any attempt to technically "re-engineer" it will force a rewrite from scratch. However, the business domain (police complaints, appointments, legal parties) desperately needs the rigorous domain modeling, state mapping, and UI consistency that <code>mzt-rebuilde</code> provides.</p>
106
+ </div>
107
+
108
+ <div class="next-step">
109
+ <h3>The One Thing to Do First</h3>
110
+ <p>Trigger the <code>mzt-rebuilde</code> skill but provide an explicit constraint in your prompt: <em>"Run the mzt-rebuilde analysis, but treat the zero-dependency Python http.server and offline SQLite architecture as an unchangeable constraint. Do not recommend new technical stacks; focus entirely on business rules, capability gaps, and UX/UI design system improvements."</em></p>
111
+ </div>
112
+
113
+ <h2>Full Advisor Responses</h2>
114
+
115
+ <details>
116
+ <summary>The Contrarian</summary>
117
+ <p>Running <code>mzt-rebuilde</code> on a local, offline Python <code>http.server</code> script with SQLite is a massive over-engineering mistake. This project is a single monolithic <code>server.py</code> file with some HTML/JS files in a <code>complaints</code> folder. It's designed to be lightweight, zero-dependency, and offline. <code>mzt-rebuilde</code> demands extensive business domain modeling, deep UX/UI redesigns, and a massive architectural blueprint (which often leans towards modern stacks). If you run it, you'll get a 40-page bilingual report telling you to adopt complex architectures for a tool that currently just runs via <code>python server.py</code>. You will destroy the core value of this tool: its simplicity and portability.</p>
118
+ </details>
119
+
120
+ <details>
121
+ <summary>The First Principles Thinker</summary>
122
+ <p>What are we actually trying to solve here? The <code>mzt-rebuilde</code> skill is for when a product's business goals are misaligned with its current implementation, or when scaling requires a fundamental rethink. This is a police station complaints system. The core constraints are security, offline capability, data integrity, and extreme ease of deployment (hence no external libraries). Does the current system fail to meet those constraints? If it works, a full re-engineering is unnecessary risk. If the police need new features (like better search or new workflows), you should build those specific features, not tear down the entire application architecture just to rebuild it.</p>
123
+ </details>
124
+
125
+ <details>
126
+ <summary>The Expansionist</summary>
127
+ <p>You absolutely should run it, but not to change the tech stack—run it to rethink the domain. A police complaint system has incredibly high stakes. The current system tracks complaints, appointments, and parties, but what about the chain of custody? What about automated SLA tracking for complaints? What about integrating offline GIS mapping for crime hotspots? <code>mzt-rebuilde</code> forces you to map out the entire business procedure and find gaps. By running it, you might realize this shouldn't just be a complaint logger, but a comprehensive precinct management system. The rigorous blueprinting phase will uncover missing business rules that could prevent severe legal or operational errors.</p>
128
+ </details>
129
+
130
+ <details>
131
+ <summary>The Outsider</summary>
132
+ <p>I see a 1900-line Python file handling raw HTTP requests, database migrations, and business logic all in one place. That's a maintenance nightmare waiting to happen. However, <code>mzt-rebuilde</code> sounds like a massive corporate consulting exercise. Do you really need a 'bilingual report' and 'visual concepts' just to refactor a Python script? It sounds like you are applying a sledgehammer to a nail. If you want to improve the code, just refactor it into smaller files or use a lightweight framework like Flask or FastAPI. You don't need a massive product re-engineering process to fix code organization.</p>
133
+ </details>
134
+
135
+ <details>
136
+ <summary>The Executor</summary>
137
+ <p>Don't do it right now. <code>mzt-rebuilde</code> explicitly stops and produces a massive plan before letting you code. If you have specific bugs to fix or features to add today, <code>mzt-rebuilde</code> will block you for hours while it generates markdown files and visual concepts. Furthermore, because this is a single <code>server.py</code> with custom routing, applying a massive re-architecture means you'll have to rewrite the entire application from scratch. Are you prepared to spend the next 3 weeks rebuilding this from zero? If not, do not run <code>mzt-rebuilde</code>. Just use regular prompts to add the features you need.</p>
138
+ </details>
139
+
140
+ <div class="footer">
141
+ Generated by LLM Council • Amman Police Stations Workspace
142
+ </div>
143
+ </div>
144
+ </body>
145
+ </html>
council-transcript-20260820.md ADDED
@@ -0,0 +1,212 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Council Transcript — Complaints Appointment Management System
2
+
3
+ **Date:** 2026-08-20 08:55
4
+ **Topic:** Expanding Police Station Finder into a complaints appointment management platform
5
+ **Methodology:** Karpathy's LLM Council — 5 independent advisors + anonymous peer review + chairman synthesis
6
+
7
+ ---
8
+
9
+ ## Original Question
10
+
11
+ > As daily work, we pass phone numbers for the person in the calling center to call and give them a time and date to visit us at a scheduled time. Sometimes we need both persons (الشاكي والمشتكى عليه) at the same time. I want the officer to save the time for these persons, and I can see these details, edit, and add contacts which will appear for the officer to alert them to call and save the appointment.
12
+ >
13
+ > تخدم هذه الأداة قسم الشكاوي لتنظيم مواعيد النظر في شكوى سواء باستدعاء المشتكى عليه وحده أو مجتمعاً بنفس الوقت مع الشاكي
14
+
15
+ ---
16
+
17
+ ## Framed Question
18
+
19
+ I have a working single-page HTML application (Police Station Finder) for Amman, Jordan that helps users find the nearest police station. It's a single HTML file (~40K lines) with embedded data, Leaflet.js maps, and offline tile support. I want to expand this into a broader office management platform, starting with a complaints department appointment scheduling system.
20
+
21
+ **The specific feature needed:**
22
+ - Officers in a call center receive phone numbers of people to call
23
+ - They call and schedule appointments for complaint hearings
24
+ - Sometimes both the complainant (الشاكي) and the defendant (المشتكى عليه) need to come at the same time
25
+ - Officers need to see pending contacts to call and save appointment details
26
+ - A supervisor/admin needs to see all appointment details, edit them, and add new contacts for officers to process
27
+ - This serves the complaints department (قسم الشكاوي) to organize hearing schedules
28
+
29
+ **Key context:**
30
+ - Current app is entirely client-side (no backend, no database)
31
+ - The app runs offline-capable with local map tiles
32
+ - It's used in a government/police context in Jordan
33
+ - The user is both the admin and the person directing this workflow
34
+ - The data includes sensitive information (phone numbers, complaint details)
35
+ - Current file: `Police_Station_Finder.html` — 40,000+ lines of HTML with embedded area/station data
36
+
37
+ **The decision:** What is the best approach to build this complaints appointment management system? Should it remain a client-side app, move to a full-stack application, or take another approach entirely? What architecture, data storage, and security considerations matter most?
38
+
39
+ ---
40
+
41
+ ## Advisor Responses
42
+
43
+ ### 1. The Contrarian
44
+
45
+ You're about to make a critical mistake: trying to extend a 40,000-line single HTML file into a multi-user appointment management system. Stop. The current architecture cannot support this. Here's why:
46
+
47
+ 1. **No backend = no multi-user.** Officers and admins cannot share data in a client-side app. Period. Every user sees their own local state. There's no synchronization, no shared source of truth.
48
+
49
+ 2. **Sensitive data exposure.** Phone numbers, complainant names, complaint details — this is government PII. Storing this in localStorage or a client-side database means any colleague with browser access can extract it. There's no access control, no audit trail, no encryption at rest.
50
+
51
+ 3. **The current file is already unmaintainable.** 40K lines of HTML with embedded data is a nightmare. Adding a completely different feature domain (scheduling vs. search) into this file will make it impossible to debug, update, or hand off.
52
+
53
+ 4. **You need authentication.** Officers vs. admins need different permissions. Client-side auth is trivially bypassable. You need a real server-side auth system.
54
+
55
+ **The fatal flaw:** you're trying to build a collaborative, multi-user, permission-based workflow tool on top of a static, single-user search page. These are fundamentally different applications. Build the complaints system as a separate application with a proper backend.
56
+
57
+ ---
58
+
59
+ ### 2. The First Principles Thinker
60
+
61
+ Let's strip this down. The core problem isn't "how to add features to my app." It's: **how do we coordinate a multi-step workflow between officers and supervisors with accountability?**
62
+
63
+ The workflow is:
64
+ 1. Supervisor identifies people to contact (complainant, defendant, or both)
65
+ 2. Officer receives the contact assignment
66
+ 3. Officer calls and schedules an appointment
67
+ 4. Both parties may need the same time slot
68
+ 5. Supervisor reviews and can modify
69
+
70
+ This is a **task queue + calendar** problem. The entities are: Complaints (with parties), Tasks (call assignments), and Appointments (scheduled times).
71
+
72
+ The real question isn't "what framework" — it's "what's the simplest reliable way to share state between 2-5 users?" For a small team in one office, even a properly structured Google Sheet with AppScript could work. But if you want something purpose-built and professional:
73
+
74
+ - **Data model first:** Complaint → has Parties (شاكي/مشتكى عليه) → has Appointments → assigned to Officer
75
+ - **State machine:** Each complaint moves through statuses: New → Assigned → Called → Scheduled → Completed
76
+ - **Constraint:** When both parties are needed, the appointment slot must be shared
77
+
78
+ Don't let technology choice distract from getting the data model right. A correct data model with a basic UI will outperform a beautiful UI with a wrong data model every time.
79
+
80
+ ---
81
+
82
+ ### 3. The Expansionist
83
+
84
+ You're sitting on something much bigger than you realize. This isn't just an "appointment scheduler" — it's the beginning of a **complaints case management platform** for police departments.
85
+
86
+ Think about what naturally follows once appointments work:
87
+ - **Case tracking:** Link appointments to complaint files. Track resolution status.
88
+ - **SMS/WhatsApp notifications:** Auto-send appointment confirmations and reminders to both parties. Reduce no-shows by 40-60%.
89
+ - **Analytics dashboard:** How many complaints per month? Average resolution time? Which officers handle the most cases? Which areas generate the most complaints?
90
+ - **Document management:** Attach complaint documents, IDs, evidence photos.
91
+ - **Multi-department expansion:** The same system works for traffic violations, permits, community policing.
92
+ - **Mobile app for officers:** Field officers can update case status from their phones.
93
+
94
+ The scheduling feature is your **Trojan horse** — it solves an immediate pain, but it creates the infrastructure for a full case management system.
95
+
96
+ Consider building this as a proper web application from day one. Use a framework that scales. The Police Station Finder becomes one module. Complaints becomes another. Future modules slot in naturally. The amman_logo.png, the Tajawal font, the police blue color scheme — these become your design system across all modules.
97
+
98
+ ---
99
+
100
+ ### 4. The Outsider
101
+
102
+ I'm looking at this with completely fresh eyes, and I have questions:
103
+
104
+ 1. **Why build custom software?** There are existing appointment scheduling tools (Calendly, Cal.com), CRM systems (even free ones), and task management tools (Trello, Notion). Has anyone checked if an off-the-shelf tool could work? The workflow described is generic: assign contacts → make calls → book appointments.
105
+
106
+ 2. **Who actually uses this?** You mention "officers" and "admin" — how many people? If it's 3 people in one room, a shared Excel file with a macro might genuinely be the answer. If it's 50 officers across multiple stations, that's a completely different problem.
107
+
108
+ 3. **The existing app is a search tool. The new feature is a workflow tool.** These serve different audiences for different purposes. Combining them into one app will confuse users. The search tool is public-facing (or at least broadly used). The complaints system is internal-only with restricted access.
109
+
110
+ 4. **Language and cultural fit matter.** The interface needs to be fully RTL Arabic, work well on government-issued devices (which may be older), and potentially work offline (government networks can be unreliable). These constraints should drive the architecture.
111
+
112
+ I'd separate these two tools completely. Let the search tool remain a standalone, fast HTML page. Build the complaints system as a distinct internal tool.
113
+
114
+ ---
115
+
116
+ ### 5. The Executor
117
+
118
+ Here's the fastest path to a working complaints appointment system:
119
+
120
+ **Week 1 — Foundation:**
121
+ - Use **Supabase** (free tier): instant PostgreSQL database, built-in auth, row-level security, real-time subscriptions. No server to manage.
122
+ - Create 3 tables: `complaints`, `parties` (شاكي/مشتكى عليه), `appointments`
123
+ - Build a separate HTML page: `complaints.html` — link it from the main app but keep it independent
124
+ - Implement basic auth: admin login, officer login (Supabase Auth)
125
+
126
+ **Week 2 — Core Features:**
127
+ - Admin view: Add complaints, add parties with phone numbers, assign to officers
128
+ - Officer view: See pending calls queue, click to mark as "called," enter appointment date/time
129
+ - Both-parties scheduling: When both need to come, show a single appointment slot picker
130
+ - Simple calendar view using a lightweight JS library (FullCalendar)
131
+
132
+ **Week 3 — Polish:**
133
+ - Dashboard showing today's appointments, upcoming calls, overdue tasks
134
+ - Status badges (جديد / تم الاتصال / مجدول / مكتمل)
135
+ - Print-friendly appointment summary
136
+ - Arabic RTL throughout, matching the existing app's design language
137
+
138
+ **What NOT to do:**
139
+ - Don't merge this into the 40K-line HTML file
140
+ - Don't build a custom backend from scratch
141
+ - Don't try to build everything at once
142
+ - Don't worry about mobile app — responsive web works fine
143
+
144
+ Ship week 1 and get one officer using it before building week 2.
145
+
146
+ ---
147
+
148
+ ## Peer Review Round
149
+
150
+ ### Anonymization Mapping
151
+ - Response A = The Executor
152
+ - Response B = The Contrarian
153
+ - Response C = The Outsider
154
+ - Response D = The First Principles Thinker
155
+ - Response E = The Expansionist
156
+
157
+ ### Reviewer 1 (The Contrarian)
158
+ 1. **Strongest:** Response D (First Principles Thinker) — correctly identifies this as a data model problem first.
159
+ 2. **Biggest blind spot:** Response E (Expansionist) — completely ignores security and feasibility constraints, jumping to SMS and analytics before the basics work.
160
+ 3. **All missed:** None adequately address data privacy regulations in Jordan or government IT procurement requirements.
161
+
162
+ ### Reviewer 2 (The First Principles Thinker)
163
+ 1. **Strongest:** Response A (Executor) — provides actionable weekly milestones, suggests Supabase which aligns with the simplest-reliable-backend principle.
164
+ 2. **Biggest blind spot:** Response B (Contrarian) — correctly identifies problems but offers no constructive path forward. Pure criticism without solutions.
165
+ 3. **All missed:** Nobody discussed the transition plan — how existing workflows (presumably paper/phone) migrate to the digital system without disruption.
166
+
167
+ ### Reviewer 3 (The Expansionist)
168
+ 1. **Strongest:** Response A (Executor) — the phased approach is exactly right for proving value quickly.
169
+ 2. **Biggest blind spot:** Response C (Outsider) — suggesting off-the-shelf tools ignores that government agencies in Jordan often can't use cloud SaaS tools due to data sovereignty, and the Arabic RTL support in most tools is poor.
170
+ 3. **All missed:** Nobody mentioned training — officers need to be trained, and the UI needs to be dead-simple or adoption will fail.
171
+
172
+ ### Reviewer 4 (The Outsider)
173
+ 1. **Strongest:** Response D (First Principles Thinker) — the state machine concept and data model focus is the most transferable insight regardless of tech choice.
174
+ 2. **Biggest blind spot:** Response E (Expansionist) — massively overscopes. Building a "platform" when you can't even schedule one appointment yet is how projects die.
175
+ 3. **All missed:** Nobody asked what happens when appointments conflict — what's the conflict resolution process? What about holidays, officer schedules, room availability?
176
+
177
+ ### Reviewer 5 (The Executor)
178
+ 1. **Strongest:** Response B (Contrarian) — correctly identifies the architectural dead end, which is the single most important insight before any building starts.
179
+ 2. **Biggest blind spot:** Response C (Outsider) — the suggestion to use Google Sheets is naive for a police department handling complaints. Data security and audit trails matter.
180
+ 3. **All missed:** Nobody discussed the legal/compliance requirements — government systems in Jordan likely have specific requirements for data storage, access logging, and record retention.
181
+
182
+ ---
183
+
184
+ ## Chairman's Synthesis
185
+
186
+ ### Where the Council Agrees
187
+ - The current single HTML file architecture **CANNOT** support this feature. Multi-user, multi-role workflows require a backend with authentication and shared state. All 5 advisors converge on this.
188
+ - The complaints system should be built as a **SEPARATE application/module**, not merged into the existing Police Station Finder HTML file.
189
+ - A proper **data model** is essential before writing UI code. The entities are clear: Complaints → Parties → Appointments, with role-based task assignment.
190
+ - The solution must be **RTL Arabic-first**, work on potentially older devices, and match the existing design language.
191
+
192
+ ### Where the Council Clashes
193
+ - **Build vs. Buy:** The Outsider suggests off-the-shelf tools might work. The Executor and Expansionist want custom software. Resolution: off-the-shelf tools rarely meet government Arabic-first requirements with proper data sovereignty, but the build should be as lightweight as possible (Supabase/Firebase, not a custom Node.js backend from scratch).
194
+ - **Scope:** The Expansionist sees a full platform (SMS, analytics, case management). The Executor wants a 3-week MVP. The Contrarian says get the security right first. Resolution: start with the Executor's phased approach, but design the data model with the Expansionist's future modules in mind.
195
+
196
+ ### Blind Spots the Council Caught
197
+ - **No transition plan:** Nobody initially addressed how the current paper/phone workflow migrates to the digital system without disrupting ongoing work.
198
+ - **Appointment conflicts:** No advisor discussed what happens when both parties can't agree on a time, or when two complaints are scheduled for the same slot.
199
+ - **Training and adoption:** A tool officers don't use is worse than no tool. The UI must be dead-simple — think WhatsApp-level intuitive.
200
+ - **Legal/compliance requirements:** Government systems in Jordan may have specific data storage and retention requirements that could constrain the technology choice.
201
+
202
+ ### The Recommendation
203
+ Build the complaints appointment system as a **separate web application** using **Supabase** (or Firebase) as the backend. Keep the Police Station Finder as-is — it works well for its purpose. Link the two apps through a shared navigation header, creating the feel of a unified platform without the complexity of merging codebases.
204
+
205
+ Start with the Executor's 3-week plan but incorporate the First Principles Thinker's data model approach: define the state machine (New → Assigned → Called → Scheduled → Completed) and the entity relationships before writing any UI code. Design the database schema with the Expansionist's future modules in mind (add a `complaint_type` field, a `documents` table, a `notifications_log` table even if empty initially).
206
+
207
+ ### The One Thing to Do First
208
+ **Design the data model on paper.** Draw the 4 entities (Complaints, Parties, Appointments, Officers), their relationships, and the status workflow. Show it to one officer and one admin. Confirm it matches how they actually work before writing a single line of code.
209
+
210
+ ---
211
+
212
+ *Methodology by [Andrej Karpathy](https://x.com/karpathy). Adapted for Claude by [@olelehmann](https://x.com/olelehmann).*
council-transcript-mzt-rebuilde.md ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # LLM Council Transcript: mzt-rebuilde on Amman Police Stations
2
+
3
+ ## The Question
4
+ "I am considering running the `mzt-rebuilde` skill (a rigorous product/business re-engineering and blueprinting process) on my 'Amman Police Stations' project. The project is currently a local Python server (using `http.server` and SQLite with no external dependencies) with a custom HTML/JS frontend. It is designed for offline local network use. Should I execute the full `mzt-rebuilde` process on this, or is that the wrong approach for this specific system?"
5
+
6
+ ---
7
+
8
+ ## Advisor Responses
9
+
10
+ ### The Contrarian
11
+ Running `mzt-rebuilde` on a local, offline Python `http.server` script with SQLite is a massive over-engineering mistake. This project is a single monolithic `server.py` file with some HTML/JS files in a `complaints` folder. It's designed to be lightweight, zero-dependency, and offline. `mzt-rebuilde` demands extensive business domain modeling, deep UX/UI redesigns, and a massive architectural blueprint (which often leans towards modern stacks). If you run it, you'll get a 40-page bilingual report telling you to adopt complex architectures for a tool that currently just runs via `python server.py`. You will destroy the core value of this tool: its simplicity and portability.
12
+
13
+ ### The First Principles Thinker
14
+ What are we actually trying to solve here? The `mzt-rebuilde` skill is for when a product's business goals are misaligned with its current implementation, or when scaling requires a fundamental rethink. This is a police station complaints system. The core constraints are security, offline capability, data integrity, and extreme ease of deployment (hence no external libraries). Does the current system fail to meet those constraints? If it works, a full re-engineering is unnecessary risk. If the police need new features (like better search or new workflows), you should build those specific features, not tear down the entire application architecture just to rebuild it.
15
+
16
+ ### The Expansionist
17
+ You absolutely should run it, but not to change the tech stack—run it to rethink the domain. A police complaint system has incredibly high stakes. The current system tracks complaints, appointments, and parties, but what about the chain of custody? What about automated SLA tracking for complaints? What about integrating offline GIS mapping for crime hotspots? `mzt-rebuilde` forces you to map out the entire business procedure and find gaps. By running it, you might realize this shouldn't just be a complaint logger, but a comprehensive precinct management system. The rigorous blueprinting phase will uncover missing business rules that could prevent severe legal or operational errors.
18
+
19
+ ### The Outsider
20
+ I see a 1900-line Python file handling raw HTTP requests, database migrations, and business logic all in one place. That's a maintenance nightmare waiting to happen. However, `mzt-rebuilde` sounds like a massive corporate consulting exercise. Do you really need a 'bilingual report' and 'visual concepts' just to refactor a Python script? It sounds like you are applying a sledgehammer to a nail. If you want to improve the code, just refactor it into smaller files or use a lightweight framework like Flask or FastAPI. You don't need a massive product re-engineering process to fix code organization.
21
+
22
+ ### The Executor
23
+ Don't do it right now. `mzt-rebuilde` explicitly stops and produces a massive plan before letting you code. If you have specific bugs to fix or features to add today, `mzt-rebuilde` will block you for hours while it generates markdown files and visual concepts. Furthermore, because this is a single `server.py` with custom routing, applying a massive re-architecture means you'll have to rewrite the entire application from scratch. Are you prepared to spend the next 3 weeks rebuilding this from zero? If not, do not run `mzt-rebuilde`. Just use regular prompts to add the features you need.
24
+
25
+ ---
26
+
27
+ ## Peer Reviews
28
+
29
+ **Reviewer A:**
30
+ - **Strongest Response:** The Executor. It correctly points out the operational reality: `mzt-rebuilde` will block immediate progress and require a total rewrite. For a project currently implemented as a raw `http.server` script, a massive architectural redesign means starting from scratch.
31
+ - **Biggest Blind Spot:** The Outsider. The Outsider focuses on the code being a "maintenance nightmare" but misses the crucial context that this is *deliberately* a zero-dependency script meant to run anywhere with just Python installed.
32
+ - **What ALL missed:** They all missed the fact that `mzt-rebuilde` has a specific mode (Phase 10: "Analysis only") which allows you to get the business domain modeling and UX gap analysis *without* committing to the technical rewrite.
33
+
34
+ *(Other reviews converged on similar points, highlighting the tension between the need for rigorous business domain modeling (Expansionist) and the danger of over-engineering the technical stack (Contrarian/Executor).)*
35
+
36
+ ---
37
+
38
+ ## Chairman's Synthesis
39
+
40
+ ### Where the Council Agrees
41
+ The council unanimously agrees that running a full, unconstrained `mzt-rebuilde` process to completely re-architect the technical stack is dangerous for this specific project. The project's core value lies in its zero-dependency, highly portable, and offline nature (a single `server.py` script). A standard re-engineering process would likely recommend modern frameworks (like React, Next.js, or microservices) that fundamentally break these operational constraints.
42
+
43
+ ### Where the Council Clashes
44
+ The Expansionist argues that the project *must* be re-engineered from a business perspective, as a police complaint system has high stakes and likely missing business rules (e.g., chain of custody, SLA tracking). Conversely, the Contrarian and Executor argue that introducing a massive consulting/blueprinting exercise will derail immediate development, block feature additions, and force an unnecessary total rewrite of a tool that currently functions well.
45
+
46
+ ### Blind Spots the Council Caught
47
+ The reviewers noted a critical blind spot: the advisors assumed `mzt-rebuilde` is an all-or-nothing technical rewrite. They missed that the skill explicitly has an **"Analysis Only" (Option C)** gate. You can use the skill purely to generate a rigorous business domain model, UI gap analysis, and UX concepts, without ever committing to changing the raw Python/SQLite architecture.
48
+
49
+ ### The Recommendation
50
+ **Run the skill, but strictly for business analysis and UX redesign, NOT technical re-architecture.** Because the current system is a monolithic Python file handling raw HTTP requests, any attempt to technically "re-engineer" it will force a rewrite from scratch. However, the business domain (police complaints, appointments, legal parties) desperately needs the rigorous domain modeling, state mapping, and UI consistency that `mzt-rebuilde` provides.
51
+
52
+ ### The One Thing to Do First
53
+ Trigger the `mzt-rebuilde` skill but provide an explicit constraint in your prompt: *"Run the mzt-rebuilde analysis, but treat the zero-dependency Python http.server and offline SQLite architecture as an unchangeable constraint. Do not recommend new technical stacks; focus entirely on business rules, capability gaps, and UX/UI design system improvements."*
data/amman_areas.json ADDED
The diff for this file is too large to render. See raw diff
 
data_backup.json ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "officers": [
3
+ {
4
+ "id": 1,
5
+ "name": "عروة",
6
+ "username": "orwa",
7
+ "password_hash": "pbkdf2:3fcf0ef9e713b999306e287a5b232fc722174bfdb581764d9e89f2f933cac0ab",
8
+ "salt": "dbcb9d0c87da464695b5e29f7f0acf6a",
9
+ "role": "admin",
10
+ "accessible_tools": "dashboard,mat_complaints,finder,chat",
11
+ "is_active": 1,
12
+ "created_at": "2026-09-10 10:31:16",
13
+ "updated_at": "2026-09-10 10:31:16"
14
+ },
15
+ {
16
+ "id": 2,
17
+ "name": "ايهاب",
18
+ "username": "ehab",
19
+ "password_hash": "pbkdf2:bb6b4dabe98ee63b3b181141ea3be12ecc29756bdf536dcd7f5bf5d90888d35b",
20
+ "salt": "0f01413566bc4d2d90850df644a9a282",
21
+ "role": "officer",
22
+ "accessible_tools": "dashboard,mat_complaints,finder,chat",
23
+ "is_active": 1,
24
+ "created_at": "2026-09-10 10:31:16",
25
+ "updated_at": "2026-09-10 10:31:16"
26
+ },
27
+ {
28
+ "id": 3,
29
+ "name": "سلطان",
30
+ "username": "sultan",
31
+ "password_hash": "pbkdf2:0bfc5565c453e9862bcf111669f3c5a971550cb70678e1f586f31257918efeea",
32
+ "salt": "60a000aff10e4d32b9bff890cad8be96",
33
+ "role": "officer",
34
+ "accessible_tools": "dashboard,mat_complaints,finder,chat",
35
+ "is_active": 1,
36
+ "created_at": "2026-09-10 10:31:16",
37
+ "updated_at": "2026-09-10 10:31:16"
38
+ },
39
+ {
40
+ "id": 4,
41
+ "name": "ابوالزيت",
42
+ "username": "abualzait",
43
+ "password_hash": "pbkdf2:914eeb6a65c0c2fabdae1415d69bc1447c07bf507ebd5831c83d4f854dcd5bc4",
44
+ "salt": "b52016d7f43e45588c59d5ee2bae9161",
45
+ "role": "officer",
46
+ "accessible_tools": "dashboard,mat_complaints,finder,chat",
47
+ "is_active": 1,
48
+ "created_at": "2026-09-10 10:31:16",
49
+ "updated_at": "2026-09-10 10:31:16"
50
+ },
51
+ {
52
+ "id": 5,
53
+ "name": "رعد",
54
+ "username": "raad",
55
+ "password_hash": "pbkdf2:98992fb07baa0a137295354007ba16965b295a5788e68cdf16578c59c5f41641",
56
+ "salt": "2102d7d202314c8a95788c58ba8a5edd",
57
+ "role": "caller",
58
+ "accessible_tools": "dashboard,mat_complaints,finder,chat",
59
+ "is_active": 1,
60
+ "created_at": "2026-09-10 10:31:17",
61
+ "updated_at": "2026-09-10 10:31:17"
62
+ }
63
+ ],
64
+ "simple_appointments": [],
65
+ "reserved_files": [],
66
+ "file_custody_log": [],
67
+ "search_logs": [],
68
+ "updated_at": "2026-09-10T20:39:13.516769"
69
+ }
docker-compose.yml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ version: '3.8'
2
+
3
+ services:
4
+ mat-toolkit:
5
+ build: .
6
+ container_name: mat_toolkit
7
+ ports:
8
+ - "8080:8080"
9
+ environment:
10
+ - PORT=8080
11
+ - MAT_ENV=production
12
+ - MAT_SECRET_KEY=mat_secret_key_2026
13
+ volumes:
14
+ - mat_data:/data
15
+ restart: unless-stopped
16
+
17
+ volumes:
18
+ mat_data:
19
+ driver: local
download_amman_tiles.py ADDED
@@ -0,0 +1,227 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import sys
3
+ import math
4
+ import json
5
+ import time
6
+ import random
7
+ import urllib.request
8
+ import urllib.error
9
+ import base64
10
+ from concurrent.futures import ThreadPoolExecutor, as_completed
11
+ from pathlib import Path
12
+
13
+ # Setup directories
14
+ WORKSPACE_DIR = os.path.dirname(os.path.abspath(__file__))
15
+ TILES_DIR = os.path.join(WORKSPACE_DIR, "tiles")
16
+ SCRATCH_DIR = os.path.join(WORKSPACE_DIR, "scratch")
17
+
18
+ os.makedirs(TILES_DIR, exist_ok=True)
19
+
20
+ # Helper for coordinates to tile numbers
21
+ def deg2num(lat_deg, lon_deg, zoom):
22
+ lat_rad = math.radians(lat_deg)
23
+ n = 2.0 ** zoom
24
+ xtile = int((lon_deg + 180.0) / 360.0 * n)
25
+ ytile = int((1.0 - math.asinh(math.tan(lat_rad)) / math.pi) / 2.0 * n)
26
+ return (xtile, ytile)
27
+
28
+ # Gather points from dataset files
29
+ def get_amman_coordinates():
30
+ points = []
31
+ for fn in ["amman_areas_database.json", "fetched_stations.json", "fetched_landmarks.json", "fetched_neighborhoods.json"]:
32
+ fp = os.path.join(SCRATCH_DIR, fn)
33
+ if os.path.exists(fp):
34
+ try:
35
+ with open(fp, "r", encoding="utf-8", errors="ignore") as f:
36
+ data = json.load(f)
37
+ items = data if isinstance(data, list) else data.get("elements", [])
38
+ for item in items:
39
+ lat = item.get("lat") or (item.get("center", {}).get("lat"))
40
+ lon = item.get("lon") or (item.get("center", {}).get("lon"))
41
+ if lat and lon and (31.5 <= float(lat) <= 32.3) and (35.5 <= float(lon) <= 36.4):
42
+ points.append((float(lat), float(lon)))
43
+ except Exception as e:
44
+ print(f"Notice: Could not load coordinates from {fn}: {e}")
45
+ # Always ensure central Amman coordinates are included
46
+ points.append((31.9515694, 35.9239625)) # Abdali / Central Amman
47
+ return points
48
+
49
+ def build_tile_set():
50
+ print("Calculating optimized tile coverage for Amman...")
51
+ points = get_amman_coordinates()
52
+ print(f"Loaded {len(points)} reference location points across Amman.")
53
+
54
+ tiles = set()
55
+
56
+ for z in range(10, 17):
57
+ zoom_tiles = set()
58
+ if z <= 13:
59
+ # Full Greater Amman bounding box for lower zooms
60
+ x_min, y_min = deg2num(32.20, 35.65, z)
61
+ x_max, y_max = deg2num(31.65, 36.30, z)
62
+ for x in range(x_min, x_max + 1):
63
+ for y in range(y_min, y_max + 1):
64
+ zoom_tiles.add((z, x, y))
65
+ elif z == 14:
66
+ # Full central Amman box + buffered points
67
+ x_min, y_min = deg2num(32.08, 35.75, z)
68
+ x_max, y_max = deg2num(31.85, 36.05, z)
69
+ for x in range(x_min, x_max + 1):
70
+ for y in range(y_min, y_max + 1):
71
+ zoom_tiles.add((z, x, y))
72
+ for lat, lon in points:
73
+ cx, cy = deg2num(lat, lon, z)
74
+ for dx in (-1, 0, 1):
75
+ for dy in (-1, 0, 1):
76
+ zoom_tiles.add((z, cx + dx, cy + dy))
77
+ elif z in (15, 16):
78
+ # 3x3 tile grid (1 tile buffer) around every station and neighborhood point
79
+ for lat, lon in points:
80
+ cx, cy = deg2num(lat, lon, z)
81
+ for dx in (-1, 0, 1):
82
+ for dy in (-1, 0, 1):
83
+ zoom_tiles.add((z, cx + dx, cy + dy))
84
+
85
+ tiles.update(zoom_tiles)
86
+ print(f" Zoom {z}: {len(zoom_tiles)} unique tiles planned.")
87
+
88
+ print(f"Total offline tiles to secure: {len(tiles)} (~{len(tiles) * 20 / 1024:.1f} MB estimated)")
89
+ return sorted(list(tiles))
90
+
91
+ def create_offline_placeholders():
92
+ print("Generating offline fallback placeholder tiles...")
93
+ # 1. Create offline_tile.svg with Arabic messaging
94
+ svg_content = '''<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256">
95
+ <rect width="256" height="256" fill="#F1F5F9" stroke="#E2E8F0" stroke-width="2"/>
96
+ <circle cx="128" cy="100" r="28" fill="#CBD5E1"/>
97
+ <path d="M116 100 L140 100 M128 88 L128 112" stroke="#64748B" stroke-width="3" stroke-linecap="round"/>
98
+ <text x="128" y="150" font-family="sans-serif" font-weight="bold" font-size="13" fill="#475569" text-anchor="middle">الخريطة غير محملة</text>
99
+ <text x="128" y="172" font-family="sans-serif" font-size="11" fill="#64748B" text-anchor="middle">(خارج نطاق الأوفلاين)</text>
100
+ </svg>'''
101
+ svg_path = os.path.join(TILES_DIR, "offline_tile.svg")
102
+ with open(svg_path, "w", encoding="utf-8") as f:
103
+ f.write(svg_content)
104
+
105
+ # 2. Create a minimal 256x256 transparent/grey PNG fallback via base64
106
+ png_b64 = "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHGGJ/PchI7wAAAABJRU5ErkJggg=="
107
+ png_path = os.path.join(TILES_DIR, "offline_tile.png")
108
+ with open(png_path, "wb") as f:
109
+ f.write(base64.b64decode(png_b64))
110
+ print("Offline placeholder images created successfully.")
111
+
112
+ def clean_blocked_osm_tiles():
113
+ print("Scanning for and cleaning previously blocked OSM error tiles (6987 bytes)...")
114
+ removed = 0
115
+ for root, dirs, files in os.walk(TILES_DIR):
116
+ for file in files:
117
+ if file.endswith(".png") and file != "offline_tile.png":
118
+ fp = os.path.join(root, file)
119
+ try:
120
+ if os.path.getsize(fp) == 6987: # Known OSM 403 error image size
121
+ os.remove(fp)
122
+ removed += 1
123
+ except Exception:
124
+ pass
125
+ if removed > 0:
126
+ print(f"Removed {removed} invalid 'Access blocked' error tiles from local storage.")
127
+
128
+ def download_single_tile(tile):
129
+ z, x, y = tile
130
+ # Secure path construction with integer validation
131
+ zoom_dir = os.path.join(TILES_DIR, str(int(z)), str(int(x)))
132
+ file_path = os.path.join(zoom_dir, f"{int(y)}.png")
133
+
134
+ # Check if already exists and valid (6987 bytes is known OSM blocked error graphic)
135
+ if os.path.exists(file_path):
136
+ size = os.path.getsize(file_path)
137
+ if size == 6987:
138
+ try:
139
+ os.remove(file_path)
140
+ except Exception:
141
+ pass
142
+ elif size > 200:
143
+ return (tile, True, "skipped")
144
+
145
+ os.makedirs(zoom_dir, exist_ok=True)
146
+
147
+ # CartoDB Voyager tile servers (high performance, no 403 blocks)
148
+ subdomains = ['a', 'b', 'c', 'd']
149
+ subdomain = subdomains[(x + y) % len(subdomains)]
150
+ url = f"https://{subdomain}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}.png"
151
+
152
+ req = urllib.request.Request(url, headers={
153
+ 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36',
154
+ 'Accept': 'image/png,image/*;q=0.8,*/*;q=0.5'
155
+ })
156
+
157
+ for attempt in range(3):
158
+ try:
159
+ time.sleep(random.uniform(0.05, 0.2))
160
+ with urllib.request.urlopen(req, timeout=10) as response:
161
+ if response.status == 200:
162
+ content = response.read()
163
+ with open(file_path, "wb") as f:
164
+ f.write(content)
165
+ return (tile, True, "downloaded")
166
+ except urllib.error.HTTPError as e:
167
+ if e.code == 429:
168
+ time.sleep(2.0 * (attempt + 1))
169
+ elif e.code == 404:
170
+ return (tile, False, "404")
171
+ else:
172
+ time.sleep(1.0)
173
+ except Exception as e:
174
+ time.sleep(1.0)
175
+
176
+ return (tile, False, "failed")
177
+
178
+ def main():
179
+ print("=== Amman Police Stations Offline Map Tile Downloader ===")
180
+ clean_blocked_osm_tiles()
181
+ create_offline_placeholders()
182
+
183
+ tiles_to_download = build_tile_set()
184
+ total = len(tiles_to_download)
185
+
186
+ print(f"\nStarting multi-threaded download (4 workers)...")
187
+ start_time = time.time()
188
+ downloaded = 0
189
+ skipped = 0
190
+ failed = 0
191
+ completed = 0
192
+ last_print = time.time()
193
+
194
+ # We use 4 threads to remain polite to OSM servers while achieving ~15-25 tiles/sec
195
+ with ThreadPoolExecutor(max_workers=4) as executor:
196
+ futures = {executor.submit(download_single_tile, tile): tile for tile in tiles_to_download}
197
+ for future in as_completed(futures):
198
+ tile, success, status = future.result()
199
+ completed += 1
200
+ if status == "downloaded":
201
+ downloaded += 1
202
+ elif status == "skipped":
203
+ skipped += 1
204
+ else:
205
+ failed += 1
206
+
207
+ # Print progress every 200 tiles or every 5 seconds
208
+ current_time = time.time()
209
+ if completed % 200 == 0 or completed == total or (current_time - last_print) >= 5.0:
210
+ elapsed = current_time - start_time
211
+ rate = completed / elapsed if elapsed > 0 else 0
212
+ rem_seconds = (total - completed) / rate if rate > 0 else 0
213
+ rem_mins = int(rem_seconds // 60)
214
+ rem_secs = int(rem_seconds % 60)
215
+
216
+ print(f"[{completed:5d}/{total:5d}] ({completed/total*100:5.1f}%) | "
217
+ f"New: {downloaded} | Skipped: {skipped} | Failed: {failed} | "
218
+ f"Speed: {rate:4.1f} tiles/s | ETA: {rem_mins}m {rem_secs}s")
219
+ last_print = current_time
220
+
221
+ elapsed = time.time() - start_time
222
+ print(f"\n=== Download Complete in {int(elapsed // 60)}m {int(elapsed % 60)}s ===")
223
+ print(f"Total Tiles: {total} | Downloaded: {downloaded} | Skipped (Existing): {skipped} | Failed: {failed}")
224
+ print(f"Offline maps are stored in: {TILES_DIR}")
225
+
226
+ if __name__ == "__main__":
227
+ main()
extract_data.py ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import re
3
+
4
+ base_dir = r"C:\Users\Abual\AntiGravity Workspace\Amman Police Stations"
5
+ html_path = os.path.join(base_dir, "Police_Station_Finder.html")
6
+ data_dir = os.path.join(base_dir, "data")
7
+ json_path = os.path.join(data_dir, "amman_areas.json")
8
+
9
+ os.makedirs(data_dir, exist_ok=True)
10
+
11
+ with open(html_path, "r", encoding="utf-8") as f:
12
+ content = f.read()
13
+
14
+ print("Original HTML length:", len(content))
15
+
16
+ # Look for the start of the array
17
+ match = re.search(r'const ammanAreas = (\[.*?\]);', content, flags=re.DOTALL)
18
+ if match:
19
+ json_data = match.group(1)
20
+
21
+ with open(json_path, "w", encoding="utf-8") as f:
22
+ f.write(json_data)
23
+
24
+ print(f"Extracted JSON array of length {len(json_data)} to {json_path}")
25
+
26
+ replacement = """let ammanAreas = [];
27
+ // Data is now fetched dynamically from the server to reduce file size
28
+ fetch('/api/v1/mat/areas')
29
+ .then(res => res.json())
30
+ .then(data => {
31
+ ammanAreas = data;
32
+ console.log("Loaded " + ammanAreas.length + " areas dynamically.");
33
+ })
34
+ .catch(err => {
35
+ console.error("Failed to load map data", err);
36
+ const errorMsg = document.getElementById('errorMsg');
37
+ if (errorMsg) {
38
+ errorMsg.textContent = "فشل تحميل بيانات المناطق. تأكد من الاتصال بالخادم.";
39
+ errorMsg.classList.add('active');
40
+ }
41
+ });"""
42
+
43
+ new_content = content[:match.start()] + replacement + content[match.end():]
44
+
45
+ with open(html_path, "w", encoding="utf-8") as f:
46
+ f.write(new_content)
47
+
48
+ print("New HTML length:", len(new_content))
49
+ print("Successfully decoupled data.")
50
+ else:
51
+ print("Could not find ammanAreas array using regex.")
fly.toml ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ app = 'mat-toolkit'
2
+ primary_region = 'fra'
3
+
4
+ [build]
5
+
6
+ [mounts]
7
+ source = 'mat_data'
8
+ destination = '/data'
9
+
10
+ [http_service]
11
+ internal_port = 8080
12
+ force_https = true
13
+ auto_stop_machines = 'stop'
14
+ auto_start_machines = true
15
+ min_machines_running = 0
16
+
17
+ [[vm]]
18
+ size = 'shared-cpu-1x'
19
+ memory = '256mb'
index.html CHANGED
@@ -1,19 +1,59 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </html>
 
1
+ <!DOCTYPE html>
2
+ <html lang="ar" dir="rtl">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <meta http-equiv="refresh" content="0; url=https://mat-ee756.containers.snapdeploy.app">
7
+ <title>بوابة MAT — التوجيه التلقائي</title>
8
+ <link rel="preconnect" href="https://fonts.googleapis.com">
9
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
+ <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@500;700&display=swap" rel="stylesheet">
11
+ <script>
12
+ window.location.replace("https://mat-ee756.containers.snapdeploy.app");
13
+ </script>
14
+ <style>
15
+ body {
16
+ font-family: 'IBM Plex Sans Arabic', sans-serif;
17
+ background: linear-gradient(135deg, #0D2E58 0%, #001939 100%);
18
+ color: #FFFFFF;
19
+ display: flex;
20
+ align-items: center;
21
+ justify-content: center;
22
+ min-height: 100vh;
23
+ margin: 0;
24
+ text-align: center;
25
+ }
26
+ .card {
27
+ background: rgba(255, 255, 255, 0.08);
28
+ border: 1px solid rgba(255, 255, 255, 0.15);
29
+ backdrop-filter: blur(16px);
30
+ padding: 2.5rem 2rem;
31
+ border-radius: 20px;
32
+ max-width: 420px;
33
+ box-shadow: 0 20px 40px rgba(0,0,0,0.3);
34
+ }
35
+ .spinner {
36
+ width: 40px;
37
+ height: 40px;
38
+ border: 4px solid rgba(255,255,255,0.2);
39
+ border-top-color: #60A5FA;
40
+ border-radius: 50%;
41
+ animation: spin 0.8s linear infinite;
42
+ margin: 1.5rem auto 0 auto;
43
+ }
44
+ @keyframes spin { to { transform: rotate(360deg); } }
45
+ a { color: #60A5FA; text-decoration: none; font-weight: 700; }
46
+ a:hover { text-decoration: underline; }
47
+ </style>
48
+ </head>
49
+ <body>
50
+ <div class="card">
51
+ <h2 style="margin: 0 0 0.5rem 0; font-size: 1.5rem;">حقيبة الأدوات المساعدة (MAT)</h2>
52
+ <p style="margin: 0; opacity: 0.8; font-size: 0.95rem;">جاري التوجيه الآمن إلى النظام المباشر...</p>
53
+ <div class="spinner"></div>
54
+ <p style="margin-top: 1.5rem; font-size: 0.8rem; opacity: 0.7;">
55
+ إذا لم يتم التوجيه خلال لحظات، <a href="https://mat-ee756.containers.snapdeploy.app">اضغط هنا للوصول المباشر</a>
56
+ </p>
57
+ </div>
58
+ </body>
59
  </html>
koyeb.yaml ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: mat-toolkit
2
+ type: service
3
+ git:
4
+ repository: github.com/abualzait/MAT
5
+ branch: main
6
+ build:
7
+ type: docker
8
+ dockerfile: Dockerfile
9
+ ports:
10
+ - port: 8080
11
+ path: /
12
+ routes:
13
+ - path: /
14
+ port: 8080
15
+ env:
16
+ - key: MAT_ENV
17
+ value: production
18
+ - key: PORT
19
+ value: "8080"
20
+ - key: MAT_HOST
21
+ value: "0.0.0.0"
22
+ - key: MAT_SECRET_KEY
23
+ value: mat_secret_key_2026_prod
24
+ regions:
25
+ - fra
leaflet.css ADDED
@@ -0,0 +1,661 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* required styles */
2
+
3
+ .leaflet-pane,
4
+ .leaflet-tile,
5
+ .leaflet-marker-icon,
6
+ .leaflet-marker-shadow,
7
+ .leaflet-tile-container,
8
+ .leaflet-pane > svg,
9
+ .leaflet-pane > canvas,
10
+ .leaflet-zoom-box,
11
+ .leaflet-image-layer,
12
+ .leaflet-layer {
13
+ position: absolute;
14
+ left: 0;
15
+ top: 0;
16
+ }
17
+ .leaflet-container {
18
+ overflow: hidden;
19
+ }
20
+ .leaflet-tile,
21
+ .leaflet-marker-icon,
22
+ .leaflet-marker-shadow {
23
+ -webkit-user-select: none;
24
+ -moz-user-select: none;
25
+ user-select: none;
26
+ -webkit-user-drag: none;
27
+ }
28
+ /* Prevents IE11 from highlighting tiles in blue */
29
+ .leaflet-tile::selection {
30
+ background: transparent;
31
+ }
32
+ /* Safari renders non-retina tile on retina better with this, but Chrome is worse */
33
+ .leaflet-safari .leaflet-tile {
34
+ image-rendering: -webkit-optimize-contrast;
35
+ }
36
+ /* hack that prevents hw layers "stretching" when loading new tiles */
37
+ .leaflet-safari .leaflet-tile-container {
38
+ width: 1600px;
39
+ height: 1600px;
40
+ -webkit-transform-origin: 0 0;
41
+ }
42
+ .leaflet-marker-icon,
43
+ .leaflet-marker-shadow {
44
+ display: block;
45
+ }
46
+ /* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
47
+ /* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
48
+ .leaflet-container .leaflet-overlay-pane svg {
49
+ max-width: none !important;
50
+ max-height: none !important;
51
+ }
52
+ .leaflet-container .leaflet-marker-pane img,
53
+ .leaflet-container .leaflet-shadow-pane img,
54
+ .leaflet-container .leaflet-tile-pane img,
55
+ .leaflet-container img.leaflet-image-layer,
56
+ .leaflet-container .leaflet-tile {
57
+ max-width: none !important;
58
+ max-height: none !important;
59
+ width: auto;
60
+ padding: 0;
61
+ }
62
+
63
+ .leaflet-container img.leaflet-tile {
64
+ /* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
65
+ mix-blend-mode: plus-lighter;
66
+ }
67
+
68
+ .leaflet-container.leaflet-touch-zoom {
69
+ -ms-touch-action: pan-x pan-y;
70
+ touch-action: pan-x pan-y;
71
+ }
72
+ .leaflet-container.leaflet-touch-drag {
73
+ -ms-touch-action: pinch-zoom;
74
+ /* Fallback for FF which doesn't support pinch-zoom */
75
+ touch-action: none;
76
+ touch-action: pinch-zoom;
77
+ }
78
+ .leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
79
+ -ms-touch-action: none;
80
+ touch-action: none;
81
+ }
82
+ .leaflet-container {
83
+ -webkit-tap-highlight-color: transparent;
84
+ }
85
+ .leaflet-container a {
86
+ -webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
87
+ }
88
+ .leaflet-tile {
89
+ filter: inherit;
90
+ visibility: hidden;
91
+ }
92
+ .leaflet-tile-loaded {
93
+ visibility: inherit;
94
+ }
95
+ .leaflet-zoom-box {
96
+ width: 0;
97
+ height: 0;
98
+ -moz-box-sizing: border-box;
99
+ box-sizing: border-box;
100
+ z-index: 800;
101
+ }
102
+ /* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
103
+ .leaflet-overlay-pane svg {
104
+ -moz-user-select: none;
105
+ }
106
+
107
+ .leaflet-pane { z-index: 400; }
108
+
109
+ .leaflet-tile-pane { z-index: 200; }
110
+ .leaflet-overlay-pane { z-index: 400; }
111
+ .leaflet-shadow-pane { z-index: 500; }
112
+ .leaflet-marker-pane { z-index: 600; }
113
+ .leaflet-tooltip-pane { z-index: 650; }
114
+ .leaflet-popup-pane { z-index: 700; }
115
+
116
+ .leaflet-map-pane canvas { z-index: 100; }
117
+ .leaflet-map-pane svg { z-index: 200; }
118
+
119
+ .leaflet-vml-shape {
120
+ width: 1px;
121
+ height: 1px;
122
+ }
123
+ .lvml {
124
+ behavior: url(#default#VML);
125
+ display: inline-block;
126
+ position: absolute;
127
+ }
128
+
129
+
130
+ /* control positioning */
131
+
132
+ .leaflet-control {
133
+ position: relative;
134
+ z-index: 800;
135
+ pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
136
+ pointer-events: auto;
137
+ }
138
+ .leaflet-top,
139
+ .leaflet-bottom {
140
+ position: absolute;
141
+ z-index: 1000;
142
+ pointer-events: none;
143
+ }
144
+ .leaflet-top {
145
+ top: 0;
146
+ }
147
+ .leaflet-right {
148
+ right: 0;
149
+ }
150
+ .leaflet-bottom {
151
+ bottom: 0;
152
+ }
153
+ .leaflet-left {
154
+ left: 0;
155
+ }
156
+ .leaflet-control {
157
+ float: left;
158
+ clear: both;
159
+ }
160
+ .leaflet-right .leaflet-control {
161
+ float: right;
162
+ }
163
+ .leaflet-top .leaflet-control {
164
+ margin-top: 10px;
165
+ }
166
+ .leaflet-bottom .leaflet-control {
167
+ margin-bottom: 10px;
168
+ }
169
+ .leaflet-left .leaflet-control {
170
+ margin-left: 10px;
171
+ }
172
+ .leaflet-right .leaflet-control {
173
+ margin-right: 10px;
174
+ }
175
+
176
+
177
+ /* zoom and fade animations */
178
+
179
+ .leaflet-fade-anim .leaflet-popup {
180
+ opacity: 0;
181
+ -webkit-transition: opacity 0.2s linear;
182
+ -moz-transition: opacity 0.2s linear;
183
+ transition: opacity 0.2s linear;
184
+ }
185
+ .leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
186
+ opacity: 1;
187
+ }
188
+ .leaflet-zoom-animated {
189
+ -webkit-transform-origin: 0 0;
190
+ -ms-transform-origin: 0 0;
191
+ transform-origin: 0 0;
192
+ }
193
+ svg.leaflet-zoom-animated {
194
+ will-change: transform;
195
+ }
196
+
197
+ .leaflet-zoom-anim .leaflet-zoom-animated {
198
+ -webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
199
+ -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
200
+ transition: transform 0.25s cubic-bezier(0,0,0.25,1);
201
+ }
202
+ .leaflet-zoom-anim .leaflet-tile,
203
+ .leaflet-pan-anim .leaflet-tile {
204
+ -webkit-transition: none;
205
+ -moz-transition: none;
206
+ transition: none;
207
+ }
208
+
209
+ .leaflet-zoom-anim .leaflet-zoom-hide {
210
+ visibility: hidden;
211
+ }
212
+
213
+
214
+ /* cursors */
215
+
216
+ .leaflet-interactive {
217
+ cursor: pointer;
218
+ }
219
+ .leaflet-grab {
220
+ cursor: -webkit-grab;
221
+ cursor: -moz-grab;
222
+ cursor: grab;
223
+ }
224
+ .leaflet-crosshair,
225
+ .leaflet-crosshair .leaflet-interactive {
226
+ cursor: crosshair;
227
+ }
228
+ .leaflet-popup-pane,
229
+ .leaflet-control {
230
+ cursor: auto;
231
+ }
232
+ .leaflet-dragging .leaflet-grab,
233
+ .leaflet-dragging .leaflet-grab .leaflet-interactive,
234
+ .leaflet-dragging .leaflet-marker-draggable {
235
+ cursor: move;
236
+ cursor: -webkit-grabbing;
237
+ cursor: -moz-grabbing;
238
+ cursor: grabbing;
239
+ }
240
+
241
+ /* marker & overlays interactivity */
242
+ .leaflet-marker-icon,
243
+ .leaflet-marker-shadow,
244
+ .leaflet-image-layer,
245
+ .leaflet-pane > svg path,
246
+ .leaflet-tile-container {
247
+ pointer-events: none;
248
+ }
249
+
250
+ .leaflet-marker-icon.leaflet-interactive,
251
+ .leaflet-image-layer.leaflet-interactive,
252
+ .leaflet-pane > svg path.leaflet-interactive,
253
+ svg.leaflet-image-layer.leaflet-interactive path {
254
+ pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
255
+ pointer-events: auto;
256
+ }
257
+
258
+ /* visual tweaks */
259
+
260
+ .leaflet-container {
261
+ background: #ddd;
262
+ outline-offset: 1px;
263
+ }
264
+ .leaflet-container a {
265
+ color: #0078A8;
266
+ }
267
+ .leaflet-zoom-box {
268
+ border: 2px dotted #38f;
269
+ background: rgba(255,255,255,0.5);
270
+ }
271
+
272
+
273
+ /* general typography */
274
+ .leaflet-container {
275
+ font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
276
+ font-size: 12px;
277
+ font-size: 0.75rem;
278
+ line-height: 1.5;
279
+ }
280
+
281
+
282
+ /* general toolbar styles */
283
+
284
+ .leaflet-bar {
285
+ box-shadow: 0 1px 5px rgba(0,0,0,0.65);
286
+ border-radius: 4px;
287
+ }
288
+ .leaflet-bar a {
289
+ background-color: #fff;
290
+ border-bottom: 1px solid #ccc;
291
+ width: 26px;
292
+ height: 26px;
293
+ line-height: 26px;
294
+ display: block;
295
+ text-align: center;
296
+ text-decoration: none;
297
+ color: black;
298
+ }
299
+ .leaflet-bar a,
300
+ .leaflet-control-layers-toggle {
301
+ background-position: 50% 50%;
302
+ background-repeat: no-repeat;
303
+ display: block;
304
+ }
305
+ .leaflet-bar a:hover,
306
+ .leaflet-bar a:focus {
307
+ background-color: #f4f4f4;
308
+ }
309
+ .leaflet-bar a:first-child {
310
+ border-top-left-radius: 4px;
311
+ border-top-right-radius: 4px;
312
+ }
313
+ .leaflet-bar a:last-child {
314
+ border-bottom-left-radius: 4px;
315
+ border-bottom-right-radius: 4px;
316
+ border-bottom: none;
317
+ }
318
+ .leaflet-bar a.leaflet-disabled {
319
+ cursor: default;
320
+ background-color: #f4f4f4;
321
+ color: #bbb;
322
+ }
323
+
324
+ .leaflet-touch .leaflet-bar a {
325
+ width: 30px;
326
+ height: 30px;
327
+ line-height: 30px;
328
+ }
329
+ .leaflet-touch .leaflet-bar a:first-child {
330
+ border-top-left-radius: 2px;
331
+ border-top-right-radius: 2px;
332
+ }
333
+ .leaflet-touch .leaflet-bar a:last-child {
334
+ border-bottom-left-radius: 2px;
335
+ border-bottom-right-radius: 2px;
336
+ }
337
+
338
+ /* zoom control */
339
+
340
+ .leaflet-control-zoom-in,
341
+ .leaflet-control-zoom-out {
342
+ font: bold 18px 'Lucida Console', Monaco, monospace;
343
+ text-indent: 1px;
344
+ }
345
+
346
+ .leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {
347
+ font-size: 22px;
348
+ }
349
+
350
+
351
+ /* layers control */
352
+
353
+ .leaflet-control-layers {
354
+ box-shadow: 0 1px 5px rgba(0,0,0,0.4);
355
+ background: #fff;
356
+ border-radius: 5px;
357
+ }
358
+ .leaflet-control-layers-toggle {
359
+ background-image: url(images/layers.png);
360
+ width: 36px;
361
+ height: 36px;
362
+ }
363
+ .leaflet-retina .leaflet-control-layers-toggle {
364
+ background-image: url(images/layers-2x.png);
365
+ background-size: 26px 26px;
366
+ }
367
+ .leaflet-touch .leaflet-control-layers-toggle {
368
+ width: 44px;
369
+ height: 44px;
370
+ }
371
+ .leaflet-control-layers .leaflet-control-layers-list,
372
+ .leaflet-control-layers-expanded .leaflet-control-layers-toggle {
373
+ display: none;
374
+ }
375
+ .leaflet-control-layers-expanded .leaflet-control-layers-list {
376
+ display: block;
377
+ position: relative;
378
+ }
379
+ .leaflet-control-layers-expanded {
380
+ padding: 6px 10px 6px 6px;
381
+ color: #333;
382
+ background: #fff;
383
+ }
384
+ .leaflet-control-layers-scrollbar {
385
+ overflow-y: scroll;
386
+ overflow-x: hidden;
387
+ padding-right: 5px;
388
+ }
389
+ .leaflet-control-layers-selector {
390
+ margin-top: 2px;
391
+ position: relative;
392
+ top: 1px;
393
+ }
394
+ .leaflet-control-layers label {
395
+ display: block;
396
+ font-size: 13px;
397
+ font-size: 1.08333em;
398
+ }
399
+ .leaflet-control-layers-separator {
400
+ height: 0;
401
+ border-top: 1px solid #ddd;
402
+ margin: 5px -10px 5px -6px;
403
+ }
404
+
405
+ /* Default icon URLs */
406
+ .leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
407
+ background-image: url(images/marker-icon.png);
408
+ }
409
+
410
+
411
+ /* attribution and scale controls */
412
+
413
+ .leaflet-container .leaflet-control-attribution {
414
+ background: #fff;
415
+ background: rgba(255, 255, 255, 0.8);
416
+ margin: 0;
417
+ }
418
+ .leaflet-control-attribution,
419
+ .leaflet-control-scale-line {
420
+ padding: 0 5px;
421
+ color: #333;
422
+ line-height: 1.4;
423
+ }
424
+ .leaflet-control-attribution a {
425
+ text-decoration: none;
426
+ }
427
+ .leaflet-control-attribution a:hover,
428
+ .leaflet-control-attribution a:focus {
429
+ text-decoration: underline;
430
+ }
431
+ .leaflet-attribution-flag {
432
+ display: inline !important;
433
+ vertical-align: baseline !important;
434
+ width: 1em;
435
+ height: 0.6669em;
436
+ }
437
+ .leaflet-left .leaflet-control-scale {
438
+ margin-left: 5px;
439
+ }
440
+ .leaflet-bottom .leaflet-control-scale {
441
+ margin-bottom: 5px;
442
+ }
443
+ .leaflet-control-scale-line {
444
+ border: 2px solid #777;
445
+ border-top: none;
446
+ line-height: 1.1;
447
+ padding: 2px 5px 1px;
448
+ white-space: nowrap;
449
+ -moz-box-sizing: border-box;
450
+ box-sizing: border-box;
451
+ background: rgba(255, 255, 255, 0.8);
452
+ text-shadow: 1px 1px #fff;
453
+ }
454
+ .leaflet-control-scale-line:not(:first-child) {
455
+ border-top: 2px solid #777;
456
+ border-bottom: none;
457
+ margin-top: -2px;
458
+ }
459
+ .leaflet-control-scale-line:not(:first-child):not(:last-child) {
460
+ border-bottom: 2px solid #777;
461
+ }
462
+
463
+ .leaflet-touch .leaflet-control-attribution,
464
+ .leaflet-touch .leaflet-control-layers,
465
+ .leaflet-touch .leaflet-bar {
466
+ box-shadow: none;
467
+ }
468
+ .leaflet-touch .leaflet-control-layers,
469
+ .leaflet-touch .leaflet-bar {
470
+ border: 2px solid rgba(0,0,0,0.2);
471
+ background-clip: padding-box;
472
+ }
473
+
474
+
475
+ /* popup */
476
+
477
+ .leaflet-popup {
478
+ position: absolute;
479
+ text-align: center;
480
+ margin-bottom: 20px;
481
+ }
482
+ .leaflet-popup-content-wrapper {
483
+ padding: 1px;
484
+ text-align: left;
485
+ border-radius: 12px;
486
+ }
487
+ .leaflet-popup-content {
488
+ margin: 13px 24px 13px 20px;
489
+ line-height: 1.3;
490
+ font-size: 13px;
491
+ font-size: 1.08333em;
492
+ min-height: 1px;
493
+ }
494
+ .leaflet-popup-content p {
495
+ margin: 17px 0;
496
+ margin: 1.3em 0;
497
+ }
498
+ .leaflet-popup-tip-container {
499
+ width: 40px;
500
+ height: 20px;
501
+ position: absolute;
502
+ left: 50%;
503
+ margin-top: -1px;
504
+ margin-left: -20px;
505
+ overflow: hidden;
506
+ pointer-events: none;
507
+ }
508
+ .leaflet-popup-tip {
509
+ width: 17px;
510
+ height: 17px;
511
+ padding: 1px;
512
+
513
+ margin: -10px auto 0;
514
+ pointer-events: auto;
515
+
516
+ -webkit-transform: rotate(45deg);
517
+ -moz-transform: rotate(45deg);
518
+ -ms-transform: rotate(45deg);
519
+ transform: rotate(45deg);
520
+ }
521
+ .leaflet-popup-content-wrapper,
522
+ .leaflet-popup-tip {
523
+ background: white;
524
+ color: #333;
525
+ box-shadow: 0 3px 14px rgba(0,0,0,0.4);
526
+ }
527
+ .leaflet-container a.leaflet-popup-close-button {
528
+ position: absolute;
529
+ top: 0;
530
+ right: 0;
531
+ border: none;
532
+ text-align: center;
533
+ width: 24px;
534
+ height: 24px;
535
+ font: 16px/24px Tahoma, Verdana, sans-serif;
536
+ color: #757575;
537
+ text-decoration: none;
538
+ background: transparent;
539
+ }
540
+ .leaflet-container a.leaflet-popup-close-button:hover,
541
+ .leaflet-container a.leaflet-popup-close-button:focus {
542
+ color: #585858;
543
+ }
544
+ .leaflet-popup-scrolled {
545
+ overflow: auto;
546
+ }
547
+
548
+ .leaflet-oldie .leaflet-popup-content-wrapper {
549
+ -ms-zoom: 1;
550
+ }
551
+ .leaflet-oldie .leaflet-popup-tip {
552
+ width: 24px;
553
+ margin: 0 auto;
554
+
555
+ -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
556
+ filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
557
+ }
558
+
559
+ .leaflet-oldie .leaflet-control-zoom,
560
+ .leaflet-oldie .leaflet-control-layers,
561
+ .leaflet-oldie .leaflet-popup-content-wrapper,
562
+ .leaflet-oldie .leaflet-popup-tip {
563
+ border: 1px solid #999;
564
+ }
565
+
566
+
567
+ /* div icon */
568
+
569
+ .leaflet-div-icon {
570
+ background: #fff;
571
+ border: 1px solid #666;
572
+ }
573
+
574
+
575
+ /* Tooltip */
576
+ /* Base styles for the element that has a tooltip */
577
+ .leaflet-tooltip {
578
+ position: absolute;
579
+ padding: 6px;
580
+ background-color: #fff;
581
+ border: 1px solid #fff;
582
+ border-radius: 3px;
583
+ color: #222;
584
+ white-space: nowrap;
585
+ -webkit-user-select: none;
586
+ -moz-user-select: none;
587
+ -ms-user-select: none;
588
+ user-select: none;
589
+ pointer-events: none;
590
+ box-shadow: 0 1px 3px rgba(0,0,0,0.4);
591
+ }
592
+ .leaflet-tooltip.leaflet-interactive {
593
+ cursor: pointer;
594
+ pointer-events: auto;
595
+ }
596
+ .leaflet-tooltip-top:before,
597
+ .leaflet-tooltip-bottom:before,
598
+ .leaflet-tooltip-left:before,
599
+ .leaflet-tooltip-right:before {
600
+ position: absolute;
601
+ pointer-events: none;
602
+ border: 6px solid transparent;
603
+ background: transparent;
604
+ content: "";
605
+ }
606
+
607
+ /* Directions */
608
+
609
+ .leaflet-tooltip-bottom {
610
+ margin-top: 6px;
611
+ }
612
+ .leaflet-tooltip-top {
613
+ margin-top: -6px;
614
+ }
615
+ .leaflet-tooltip-bottom:before,
616
+ .leaflet-tooltip-top:before {
617
+ left: 50%;
618
+ margin-left: -6px;
619
+ }
620
+ .leaflet-tooltip-top:before {
621
+ bottom: 0;
622
+ margin-bottom: -12px;
623
+ border-top-color: #fff;
624
+ }
625
+ .leaflet-tooltip-bottom:before {
626
+ top: 0;
627
+ margin-top: -12px;
628
+ margin-left: -6px;
629
+ border-bottom-color: #fff;
630
+ }
631
+ .leaflet-tooltip-left {
632
+ margin-left: -6px;
633
+ }
634
+ .leaflet-tooltip-right {
635
+ margin-left: 6px;
636
+ }
637
+ .leaflet-tooltip-left:before,
638
+ .leaflet-tooltip-right:before {
639
+ top: 50%;
640
+ margin-top: -6px;
641
+ }
642
+ .leaflet-tooltip-left:before {
643
+ right: 0;
644
+ margin-right: -12px;
645
+ border-left-color: #fff;
646
+ }
647
+ .leaflet-tooltip-right:before {
648
+ left: 0;
649
+ margin-left: -12px;
650
+ border-right-color: #fff;
651
+ }
652
+
653
+ /* Printing */
654
+
655
+ @media print {
656
+ /* Prevent printers from removing background-images of controls. */
657
+ .leaflet-control {
658
+ -webkit-print-color-adjust: exact;
659
+ print-color-adjust: exact;
660
+ }
661
+ }
leaflet.js ADDED
The diff for this file is too large to render. See raw diff
 
render.yaml ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ services:
2
+ - type: web
3
+ name: mat-toolkit
4
+ env: docker
5
+ dockerfilePath: ./Dockerfile
6
+ plan: free
7
+ region: frankfurt
8
+ envVars:
9
+ - key: MAT_ENV
10
+ value: production
11
+ - key: PORT
12
+ value: 8080
13
+ - key: MAT_HOST
14
+ value: 0.0.0.0
15
+ - key: MAT_SECRET_KEY
16
+ value: mat_secret_key_2026_prod
server.py ADDED
The diff for this file is too large to render. See raw diff
 
test.html ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <body>
4
+ <script>
5
+ async function test() {
6
+ try {
7
+ console.log("Fetching POST");
8
+ const query = `[out:json];node(around:50000,31.9515694,35.9239625)["amenity"="police"];out center;`;
9
+ const r = await fetch('https://overpass-api.de/api/interpreter', {
10
+ method: 'POST',
11
+ headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
12
+ body: `data=${encodeURIComponent(query)}`
13
+ });
14
+ console.log("POST res", r.status, await r.json());
15
+ } catch(e) {
16
+ console.error("POST error", e);
17
+ }
18
+ try {
19
+ console.log("Fetching GET");
20
+ const query2 = `[out:json];node(around:50000,31.9515694,35.9239625)["amenity"="police"];out center;`;
21
+ const r2 = await fetch('https://overpass-api.de/api/interpreter?data=' + encodeURIComponent(query2));
22
+ console.log("GET res", r2.status, await r2.json());
23
+ } catch(e) {
24
+ console.error("GET error", e);
25
+ }
26
+ }
27
+ test();
28
+ </script>
29
+ </body>
30
+ </html>
test_overpass.js ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ const compactQuery = `[out:json][timeout:25];area["name:en"="Amman Governorate"]->.searchArea;(node["amenity"="police"](area.searchArea);way["amenity"="police"](area.searchArea);relation["amenity"="police"](area.searchArea););out center;`;
2
+ console.log(compactQuery);
3
+
tiles/10/613/415.png ADDED
tiles/10/613/416.png ADDED
tiles/10/613/417.png ADDED
tiles/10/614/415.png ADDED
tiles/10/614/416.png ADDED
tiles/10/614/417.png ADDED
tiles/10/615/415.png ADDED
tiles/10/615/416.png ADDED
tiles/10/615/417.png ADDED
tiles/11/1226/830.png ADDED
tiles/11/1226/831.png ADDED
tiles/11/1226/832.png ADDED
tiles/11/1226/833.png ADDED
tiles/11/1226/834.png ADDED
tiles/11/1227/830.png ADDED
tiles/11/1227/831.png ADDED