CSNET commited on
Commit
37c8390
·
verified ·
1 Parent(s): 0d52036

Design a single-page mobile-first HTML5 web app in Thai language for a health-tech platform under the brand "WP WELLNET – Longevity Platform", combining smart band, MyScale, and AI wellness tracking to extend lifespan.

Browse files

The design should be in Thai (ทุกส่วน), optimized for smartphone screens, and include the following key sections:

---

📱 1. Header:
- Fixed top navigation bar with WP WELLNET logo, notification icon, and user profile icon.

🏠 2. หน้าหลัก (Dashboard):
- แสดงอายุชีวภาพปัจจุบัน (Biological Age) เปรียบเทียบกับอายุจริง
- กราฟกลม "อายุชีวภาพลดลง" (% เป้าหมาย)
- แถบสรุปสุขภาพ: HRV, ความเครียด, การนอนหลับ, กล้ามเนื้อ, ไขมัน

🧬 3. ระบบวิเคราะห์ชีวภาพ (AI Analysis):
- ปุ่ม "วิเคราะห์ใหม่" เพื่อคำนวณอายุชีวภาพจากข้อมูลล่าสุด
- แสดงข้อมูลล่าสุดจาก Smart Band และ MyScale
- ข้อแนะนำจาก AI แบบไทม์ไลน์รายวัน เช่น “นอนเร็วขึ้น 15 นาทีคืนนี้”

📦 4. แผนย้อนวัย 90 วัน (Longevity Plan):
- ตารางวันที่ 1–90
- แต่ละวันมี “ภารกิจวันนี้” เช่น กิน ADEK, เดิน 6,000 ก้าว, หลีกเลี่ยงกาแฟ
- สถานะแสดงผลว่าสำเร็จหรือไม่

📊 5. ระบบติดตามร่างกาย (Tracking):
- กราฟแสดงการเปลี่ยนแปลง: Fat %, Muscle Mass, HRV, Sleep Quality
- สถิติย้อนหลัง 7 วัน / 30 วัน
- บันทึกเหตุการณ์พิเศษ เช่น วันที่ป่วย, วันที่งดอาหาร

🛒 6. ร้านค้าแนะนำ (Product Smart Recommend):
- ระบบแนะนำผลิตภัณฑ์เฉพาะบุคคล เช่น “คุณควรเพิ่ม Resveratrol + Sleep Support”
- ปุ่ม “สั่งซื้อทันที” หรือ “เพิ่มในตะกร้า”
- ส่วนลดพิเศษสำหรับสมาชิก Longevity Club

🔁 7. ระบบซื้อซ้ำอัตโนมัติ:
- แสดงสินค้าที่ซื้อประจำ
- ปุ่ม “ซื้อซ้ำใน 1 คลิก”
- ตั้งเตือนรอบใหม่ได้ เช่น ทุก 30 วัน

🎯 8. ระบบ Mission & Reward:
- “คุณทำภารกิจครบ 5 วันต่อเนื่อง” → ได้แต้ม
- แสดง Badge: BioAge Warrior, Sleep Master ฯลฯ
- Leaderboard: อายุชีวภาพลดลงสูงสุดประจำเดือน

🧑‍⚕️ 9. เชื่อมต่อ BioCoach:
- ปุ่ม “ปรึกษาโค้ชสุขภาพ” → เปิดแชท, วิดีโอคอล, หรือแบบฟอร์มส่งคำถาม
- โชว์โค้ชประจำตัว พร้อมใบรับรองระดับ

🧾 10. โปรไฟล์:
- ข้อมูลผู้ใช้, อายุจริง, เพศ, น้ำหนัก, เป้าหมาย
- ประวัติการสั่งซื้อ, การเข้าโปรแกรม, คะแนนสะสม

---

🎨 Style Guide:
- ใช้สีหลัก: เขียวพาสเทล (#A5D6A7), ขาว, เทาอ่อน
- ฟอนต์: Prompt (ใช้กับภาษาไทย)
- UI สมัยใหม่: ปุ่มโค้งมน, พื้นหลังเบลอเล็กน้อย, การ์ดเงาเบา
- Optimized for mobile: แตะง่าย, เมนูติดล่าง

🎯 เป้าหมาย:
Create an intuitive mobile-first wellness app in Thai for the Longevity market, combining biometric tracking, product recommendation, gamified aging reversal plan, and agent support to drive user engagement and subscription.

All labels and content must be in **Thai**.

Files changed (4) hide show
  1. README.md +8 -5
  2. index.html +368 -19
  3. script.js +411 -0
  4. style.css +254 -18
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Wp Wellnet Longevity Platform
3
- emoji: 🦀
4
- colorFrom: blue
5
- colorTo: indigo
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: WP WELLNET Longevity Platform 🌿
3
+ colorFrom: green
4
+ colorTo: purple
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://huggingface.co/deepsite).
index.html CHANGED
@@ -1,19 +1,368 @@
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="th">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
6
+ <title>WP WELLNET – Longevity Platform</title>
7
+ <link rel="icon" type="image/x-icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🌿</text></svg>">
8
+ <link rel="stylesheet" href="style.css">
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=Prompt:wght@300;400;500;600;700&display=swap" rel="stylesheet">
12
+ <script src="https://cdn.tailwindcss.com"></script>
13
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
14
+ <script src="https://unpkg.com/feather-icons"></script>
15
+ <script>
16
+ tailwind.config = {
17
+ theme: {
18
+ extend: {
19
+ colors: {
20
+ primary: '#A5D6A7',
21
+ 'primary-dark': '#81C784',
22
+ 'primary-light': '#C8E6C9',
23
+ },
24
+ fontFamily: {
25
+ 'thai': ['Prompt', 'sans-serif'],
26
+ }
27
+ }
28
+ }
29
+ }
30
+ </script>
31
+ </head>
32
+ <body class="font-thai bg-gray-50 text-gray-800 min-h-screen pb-16">
33
+ <!-- Fixed Header -->
34
+ <header class="fixed top-0 left-0 right-0 bg-white shadow-sm z-40 px-4 py-3">
35
+ <div class="flex items-center justify-between">
36
+ <div class="flex items-center space-x-2">
37
+ <div class="w-10 h-10 bg-primary rounded-lg flex items-center justify-center">
38
+ <span class="text-white font-bold">WP</span>
39
+ </div>
40
+ <span class="text-sm font-semibold">WELLNET</span>
41
+ </div>
42
+ <div class="flex items-center space-x-4">
43
+ <button class="relative p-2 hover:bg-gray-100 rounded-lg transition-colors">
44
+ <i data-feather="bell" class="w-5 h-5"></i>
45
+ <span class="absolute top-1 right-1 w-2 h-2 bg-red-500 rounded-full"></span>
46
+ </button>
47
+ <button class="relative p-2 hover:bg-gray-100 rounded-lg transition-colors">
48
+ <i data-feather="user" class="w-5 h-5"></i>
49
+ </button>
50
+ </div>
51
+ </div>
52
+ </header>
53
+
54
+ <!-- Main Content -->
55
+ <main class="pt-16 px-4 space-y-6">
56
+ <!-- Dashboard Section -->
57
+ <section id="dashboard" class="py-6">
58
+ <h2 class="text-2xl font-bold mb-4">หน้าหลัก</h2>
59
+
60
+ <!-- Biological Age Card -->
61
+ <div class="bg-gradient-to-br from-primary to-primary-light rounded-2xl p-6 text-white shadow-lg mb-6">
62
+ <div class="text-center">
63
+ <p class="text-sm opacity-90 mb-2">อายุชีวภาพปัจจุบัน</p>
64
+ <div class="flex items-center justify-center space-x-4">
65
+ <div>
66
+ <p class="text-4xl font-bold">34</p>
67
+ <p class="text-xs opacity-75">ปี</p>
68
+ </div>
69
+ <div class="text-2xl">↓</div>
70
+ <div>
71
+ <p class="text-2xl font-semibold">38</p>
72
+ <p class="text-xs opacity-75">อายุจริง</p>
73
+ </div>
74
+ </div>
75
+ <div class="mt-4 bg-white/20 rounded-full h-3 overflow-hidden">
76
+ <div class="bg-white h-full rounded-full" style="width: 65%"></div>
77
+ </div>
78
+ <p class="text-xs mt-2 opacity-90">ลดลง 65% ของเป้าหมาย</p>
79
+ </div>
80
+ </div>
81
+
82
+ <!-- Health Summary Bars -->
83
+ <div class="grid grid-cols-2 gap-3 mb-6">
84
+ <div class="bg-white rounded-xl p-4 shadow-sm">
85
+ <div class="flex items-center justify-between mb-2">
86
+ <span class="text-xs text-gray-600">HRV</span>
87
+ <span class="text-xs font-semibold text-primary">ดี</span>
88
+ </div>
89
+ <div class="bg-gray-200 rounded-full h-2">
90
+ <div class="bg-primary h-full rounded-full" style="width: 75%"></div>
91
+ </div>
92
+ </div>
93
+ <div class="bg-white rounded-xl p-4 shadow-sm">
94
+ <div class="flex items-center justify-between mb-2">
95
+ <span class="text-xs text-gray-600">ความเครียด</span>
96
+ <span class="text-xs font-semibold text-yellow-500">ปานกลาง</span>
97
+ </div>
98
+ <div class="bg-gray-200 rounded-full h-2">
99
+ <div class="bg-yellow-400 h-full rounded-full" style="width: 45%"></div>
100
+ </div>
101
+ </div>
102
+ <div class="bg-white rounded-xl p-4 shadow-sm">
103
+ <div class="flex items-center justify-between mb-2">
104
+ <span class="text-xs text-gray-600">การนอนหลับ</span>
105
+ <span class="text-xs font-semibold text-primary">ยอดเยี่ยม</span>
106
+ </div>
107
+ <div class="bg-gray-200 rounded-full h-2">
108
+ <div class="bg-primary h-full rounded-full" style="width: 85%"></div>
109
+ </div>
110
+ </div>
111
+ <div class="bg-white rounded-xl p-4 shadow-sm">
112
+ <div class="flex items-center justify-between mb-2">
113
+ <span class="text-xs text-gray-600">กล้ามเนื้อ</span>
114
+ <span class="text-xs font-semibold text-primary">ดี</span>
115
+ </div>
116
+ <div class="bg-gray-200 rounded-full h-2">
117
+ <div class="bg-primary h-full rounded-full" style="width: 70%"></div>
118
+ </div>
119
+ </div>
120
+ </div>
121
+ </section>
122
+
123
+ <!-- AI Analysis Section -->
124
+ <section id="ai-analysis" class="py-6 bg-white rounded-2xl p-4 shadow-sm">
125
+ <h3 class="text-lg font-bold mb-4">ระบบวิเคราะห์ชีวภาพ</h3>
126
+ <button class="w-full bg-primary text-white rounded-xl py-3 font-semibold hover:bg-primary-dark transition-colors mb-4">
127
+ <i data-feather="refresh-cw" class="inline w-4 h-4 mr-2"></i>
128
+ วิเคราะห์ใหม่
129
+ </button>
130
+
131
+ <div class="space-y-3">
132
+ <div class="bg-primary-light/30 rounded-lg p-3">
133
+ <p class="text-sm font-medium mb-1">Smart Band ล่าสุด</p>
134
+ <p class="text-xs text-gray-600">HRV: 42ms | การนอน: 7.5 ชม. | ก้าว: 8,234</p>
135
+ </div>
136
+ <div class="bg-primary-light/30 rounded-lg p-3">
137
+ <p class="text-sm font-medium mb-1">MyScale ล่าสุด</p>
138
+ <p class="text-xs text-gray-600">น้ำหนัก: 68.2kg | ไขมัน: 18.5% | กล้ามเนื้อ: 45.2%</p>
139
+ </div>
140
+
141
+ <div class="bg-yellow-50 rounded-lg p-3">
142
+ <p class="text-xs font-semibold text-yellow-800 mb-2">แนะนำจาก AI วันนี้</p>
143
+ <p class="text-xs text-gray-700">• นอนเร็วขึ้น 15 นาทีคืนนี้</p>
144
+ <p class="text-xs text-gray-700">• เดินเพิ่มอีก 2,000 ก้าว</p>
145
+ <p class="text-xs text-gray-700">• ดื่มน้ำมากขึ้น 500ml</p>
146
+ </div>
147
+ </div>
148
+ </section>
149
+
150
+ <!-- 90-Day Longevity Plan -->
151
+ <section id="longevity-plan" class="py-6">
152
+ <h3 class="text-lg font-bold mb-4">แผนย้อนวัย 90 วัน</h3>
153
+ <div class="bg-white rounded-2xl shadow-sm overflow-hidden">
154
+ <div class="bg-gradient-to-r from-primary to-primary-light p-4">
155
+ <div class="flex justify-between items-center text-white">
156
+ <span class="text-sm">วันที่ 15 ของ 90</span>
157
+ <span class="text-sm font-semibold">16.7%</span>
158
+ </div>
159
+ </div>
160
+ <div class="p-4 space-y-3">
161
+ <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
162
+ <div>
163
+ <p class="text-sm font-medium">วันนี้ (วันที่ 15)</p>
164
+ <p class="text-xs text-gray-600">กิน ADEK, เดิน 6,000 ก้าว</p>
165
+ </div>
166
+ <button class="bg-green-100 text-green-600 px-3 py-1 rounded-full text-xs font-semibold">
167
+ สำเร็จ
168
+ </button>
169
+ </div>
170
+ <div class="flex items-center justify-between p-3 bg-gray-50 rounded-lg">
171
+ <div>
172
+ <p class="text-sm font-medium">พรุ่งนี้ (วันที่ 16)</p>
173
+ <p class="text-xs text-gray-600">หลีกเลี่ยงกาแฟ, โยคะ 15 นาที</p>
174
+ </div>
175
+ <button class="bg-gray-200 text-gray-600 px-3 py-1 rounded-full text-xs font-semibold">
176
+ รอดำเนินการ
177
+ </button>
178
+ </div>
179
+ </div>
180
+ </div>
181
+ </section>
182
+
183
+ <!-- Tracking Section -->
184
+ <section id="tracking" class="py-6">
185
+ <h3 class="text-lg font-bold mb-4">ระบบติดตามร่างกาย</h3>
186
+ <div class="bg-white rounded-2xl p-4 shadow-sm">
187
+ <div class="flex space-x-2 mb-4">
188
+ <button class="px-3 py-1 bg-primary text-white rounded-full text-xs font-semibold">7 วัน</button>
189
+ <button class="px-3 py-1 bg-gray-200 text-gray-600 rounded-full text-xs font-semibold">30 วัน</button>
190
+ </div>
191
+
192
+ <div class="space-y-4">
193
+ <div>
194
+ <div class="flex justify-between items-center mb-1">
195
+ <span class="text-xs font-medium">Fat %</span>
196
+ <span class="text-xs text-gray-600">18.5% → 17.8%</span>
197
+ </div>
198
+ <canvas id="fatChart" class="w-full h-20"></canvas>
199
+ </div>
200
+
201
+ <div>
202
+ <div class="flex justify-between items-center mb-1">
203
+ <span class="text-xs font-medium">คุณภาพการนอน</span>
204
+ <span class="text-xs text-gray-600">78%</span>
205
+ </div>
206
+ <div class="flex space-x-1">
207
+ <div class="flex-1 bg-green-400 h-2 rounded"></div>
208
+ <div class="flex-1 bg-green-400 h-2 rounded"></div>
209
+ <div class="flex-1 bg-yellow-400 h-2 rounded"></div>
210
+ <div class="flex-1 bg-green-400 h-2 rounded"></div>
211
+ <div class="flex-1 bg-green-400 h-2 rounded"></div>
212
+ <div class="flex-1 bg-red-400 h-2 rounded"></div>
213
+ <div class="flex-1 bg-green-400 h-2 rounded"></div>
214
+ </div>
215
+ </div>
216
+
217
+ <button class="w-full py-2 border border-primary text-primary rounded-lg text-sm font-medium hover:bg-primary-light transition-colors">
218
+ <i data-feather="plus" class="inline w-4 h-4 mr-1"></i>
219
+ บันทึกเหตุการณ์พิเศษ
220
+ </button>
221
+ </div>
222
+ </div>
223
+ </section>
224
+
225
+ <!-- Product Recommendations -->
226
+ <section id="products" class="py-6">
227
+ <h3 class="text-lg font-bold mb-4">ร้านค้าแนะนำ</h3>
228
+ <div class="space-y-3">
229
+ <div class="bg-white rounded-xl p-4 shadow-sm">
230
+ <div class="flex items-start space-x-3">
231
+ <img src="https://static.photos/health/80x80/1" alt="Product" class="w-20 h-20 rounded-lg object-cover">
232
+ <div class="flex-1">
233
+ <p class="text-sm font-semibold">Resveratrol Plus</p>
234
+ <p class="text-xs text-gray-600 mb-2">คุณควรเพิ่มเพื่อต้านอนุมูลอิสระ</p>
235
+ <div class="flex items-center justify-between">
236
+ <span class="text-sm font-bold text-primary">฿890</span>
237
+ <button class="bg-primary text-white px-3 py-1 rounded-lg text-xs font-semibold">
238
+ สั่งซื้อทันที
239
+ </button>
240
+ </div>
241
+ </div>
242
+ </div>
243
+ </div>
244
+
245
+ <div class="bg-yellow-50 rounded-xl p-3">
246
+ <p class="text-xs font-semibold text-yellow-800 mb-1">🎉 ส่วนลดสมาชิก Longevity Club</p>
247
+ <p class="text-xs text-gray-700">รับส่วนลด 15% สำหรับสมาชิก</p>
248
+ </div>
249
+ </div>
250
+ </section>
251
+
252
+ <!-- Auto-Reorder System -->
253
+ <section id="reorder" class="py-6">
254
+ <h3 class="text-lg font-bold mb-4">ระบบซื้อซ้ำอัตโนมัติ</h3>
255
+ <div class="bg-white rounded-xl p-4 shadow-sm space-y-3">
256
+ <div class="flex items-center justify-between">
257
+ <div>
258
+ <p class="text-sm font-medium">ADEK Complete</p>
259
+ <p class="text-xs text-gray-600">ครั้งต่อไป: 5 วัน</p>
260
+ </div>
261
+ <button class="bg-primary text-white px-4 py-2 rounded-lg text-xs font-semibold">
262
+ ซื้อซ้ำ 1 คลิก
263
+ </button>
264
+ </div>
265
+ <div class="flex items-center justify-between">
266
+ <div>
267
+ <p class="text-sm font-medium">Sleep Support</p>
268
+ <p class="text-xs text-gray-600">ครั้งต่อไป: 12 วัน</p>
269
+ </div>
270
+ <button class="bg-gray-200 text-gray-700 px-4 py-2 rounded-lg text-xs font-semibold">
271
+ ตั้งค่า
272
+ </button>
273
+ </div>
274
+ </div>
275
+ </section>
276
+
277
+ <!-- Mission & Reward -->
278
+ <section id="rewards" class="py-6">
279
+ <h3 class="text-lg font-bold mb-4">Mission & Reward</h3>
280
+ <div class="bg-gradient-to-br from-purple-500 to-pink-500 rounded-2xl p-4 text-white shadow-lg">
281
+ <div class="text-center mb-4">
282
+ <p class="text-2xl font-bold">750</p>
283
+ <p class="text-xs opacity-90">แต้มสะสม</p>
284
+ </div>
285
+
286
+ <div class="bg-white/20 rounded-lg p-3 mb-3">
287
+ <p class="text-xs font-semibold mb-1">ภารกิจปัจจุบัน</p>
288
+ <p class="text-xs">ทำภารกิจครบ 5 วันต่อเนื่อง → รับ 100 แต้ม</p>
289
+ <div class="mt-2 bg-white/30 rounded-full h-2">
290
+ <div class="bg-white h-full rounded-full" style="width: 60%"></div>
291
+ </div>
292
+ </div>
293
+
294
+ <div class="flex space-x-2">
295
+ <div class="flex-1 bg-white/20 rounded-lg p-2 text-center">
296
+ <span class="text-lg">🏆</span>
297
+ <p class="text-xs mt-1">BioAge Warrior</p>
298
+ </div>
299
+ <div class="flex-1 bg-white/20 rounded-lg p-2 text-center">
300
+ <span class="text-lg">😴</span>
301
+ <p class="text-xs mt-1">Sleep Master</p>
302
+ </div>
303
+ <div class="flex-1 bg-white/20 rounded-lg p-2 text-center">
304
+ <span class="text-lg">💪</span>
305
+ <p class="text-xs mt-1">Step Champion</p>
306
+ </div>
307
+ </div>
308
+ </div>
309
+ </section>
310
+
311
+ <!-- BioCoach Connection -->
312
+ <section id="biocoach" class="py-6">
313
+ <h3 class="text-lg font-bold mb-4">เชื่อมต่อ BioCoach</h3>
314
+ <div class="bg-white rounded-xl p-4 shadow-sm">
315
+ <div class="flex items-center space-x-3 mb-4">
316
+ <img src="https://static.photos/people/60x60/2" alt="Coach" class="w-14 h-14 rounded-full object-cover">
317
+ <div>
318
+ <p class="text-sm font-semibold">คุณสมชาย ใจดี</p>
319
+ <p class="text-xs text-gray-600">BioCoach มืออาชีพ | ประสบการณ์ 5 ปี</p>
320
+ </div>
321
+ </div>
322
+
323
+ <div class="grid grid-cols-3 gap-2">
324
+ <button class="py-2 bg-primary text-white rounded-lg text-xs font-semibold">
325
+ <i data-feather="message-circle" class="inline w-3 h-3"></i> แชท
326
+ </button>
327
+ <button class="py-2 bg-gray-200 text-gray-700 rounded-lg text-xs font-semibold">
328
+ <i data-feather="video" class="inline w-3 h-3"></i> วิดีโอคอล
329
+ </button>
330
+ <button class="py-2 bg-gray-200 text-gray-700 rounded-lg text-xs font-semibold">
331
+ <i data-feather="file-text" class="inline w-3 h-3"></i> ถาม
332
+ </button>
333
+ </div>
334
+ </div>
335
+ </section>
336
+ </main>
337
+
338
+ <!-- Bottom Navigation -->
339
+ <nav class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 z-40">
340
+ <div class="grid grid-cols-5 py-2">
341
+ <button class="flex flex-col items-center py-2 text-primary">
342
+ <i data-feather="home" class="w-5 h-5"></i>
343
+ <span class="text-xs mt-1">หน้าหลัก</span>
344
+ </button>
345
+ <button class="flex flex-col items-center py-2 text-gray-500">
346
+ <i data-feather="activity" class="w-5 h-5"></i>
347
+ <span class="text-xs mt-1">ว���เคราะห์</span>
348
+ </button>
349
+ <button class="flex flex-col items-center py-2 text-gray-500">
350
+ <i data-feather="calendar" class="w-5 h-5"></i>
351
+ <span class="text-xs mt-1">แผน</span>
352
+ </button>
353
+ <button class="flex flex-col items-center py-2 text-gray-500">
354
+ <i data-feather="shopping-cart" class="w-5 h-5"></i>
355
+ <span class="text-xs mt-1">สินค้า</span>
356
+ </button>
357
+ <button class="flex flex-col items-center py-2 text-gray-500">
358
+ <i data-feather="award" class="w-5 h-5"></i>
359
+ <span class="text-xs mt-1">รางวัล</span>
360
+ </button>
361
+ </div>
362
+ </nav>
363
+
364
+ <script src="script.js"></script>
365
+ <script>feather.replace();</script>
366
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
367
+ </body>
368
+ </html>
script.js ADDED
@@ -0,0 +1,411 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // WP WELLNET Longevity Platform JavaScript
2
+
3
+ // Initialize the app
4
+ document.addEventListener('DOMContentLoaded', function() {
5
+ initializeCharts();
6
+ initializeNavigation();
7
+ initializeInteractions();
8
+ initializeNotifications();
9
+ loadUserData();
10
+ });
11
+
12
+ // Chart initialization
13
+ function initializeCharts() {
14
+ // Simple chart visualization for Fat percentage
15
+ const fatCanvas = document.getElementById('fatChart');
16
+ if (fatCanvas) {
17
+ const ctx = fatCanvas.getContext('2d');
18
+ drawSimpleLineChart(ctx, [19.2, 19.0, 18.9, 18.8, 18.7, 18.6, 18.5]);
19
+ }
20
+ }
21
+
22
+ function drawSimpleLineChart(ctx, data) {
23
+ const width = ctx.canvas.width;
24
+ const height = ctx.canvas.height;
25
+ const padding = 10;
26
+
27
+ // Clear canvas
28
+ ctx.clearRect(0, 0, width, height);
29
+
30
+ // Set styles
31
+ ctx.strokeStyle = '#A5D6A7';
32
+ ctx.lineWidth = 2;
33
+ ctx.fillStyle = '#A5D6A7';
34
+
35
+ // Calculate points
36
+ const maxValue = Math.max(...data);
37
+ const minValue = Math.min(...data);
38
+ const range = maxValue - minValue;
39
+ const xStep = (width - padding * 2) / (data.length - 1);
40
+ const yScale = (height - padding * 2) / range;
41
+
42
+ // Draw line
43
+ ctx.beginPath();
44
+ data.forEach((value, index) => {
45
+ const x = padding + index * xStep;
46
+ const y = height - padding - (value - minValue) * yScale;
47
+
48
+ if (index === 0) {
49
+ ctx.moveTo(x, y);
50
+ } else {
51
+ ctx.lineTo(x, y);
52
+ }
53
+ });
54
+ ctx.stroke();
55
+
56
+ // Draw points
57
+ data.forEach((value, index) => {
58
+ const x = padding + index * xStep;
59
+ const y = height - padding - (value - minValue) * yScale;
60
+
61
+ ctx.beginPath();
62
+ ctx.arc(x, y, 3, 0, Math.PI * 2);
63
+ ctx.fill();
64
+ });
65
+ }
66
+
67
+ // Navigation handling
68
+ function initializeNavigation() {
69
+ const navButtons = document.querySelectorAll('nav button');
70
+ navButtons.forEach(button => {
71
+ button.addEventListener('click', function() {
72
+ // Remove active state from all buttons
73
+ navButtons.forEach(btn => {
74
+ btn.classList.remove('text-primary');
75
+ btn.classList.add('text-gray-500');
76
+ });
77
+
78
+ // Add active state to clicked button
79
+ this.classList.remove('text-gray-500');
80
+ this.classList.add('text-primary');
81
+
82
+ // Handle navigation (scroll to section)
83
+ const buttonText = this.querySelector('span').textContent;
84
+ navigateToSection(buttonText);
85
+ });
86
+ });
87
+ }
88
+
89
+ function navigateToSection(section) {
90
+ const sectionMap = {
91
+ 'หน้าหลัก': 'dashboard',
92
+ 'วิเคราะห์': 'ai-analysis',
93
+ 'แผน': 'longevity-plan',
94
+ 'สินค้า': 'products',
95
+ 'รางวัล': 'rewards'
96
+ };
97
+
98
+ const targetSection = document.getElementById(sectionMap[section]);
99
+ if (targetSection) {
100
+ targetSection.scrollIntoView({ behavior: 'smooth', block: 'start' });
101
+ }
102
+ }
103
+
104
+ // Interactive elements
105
+ function initializeInteractions() {
106
+ // Analyze button
107
+ const analyzeBtn = document.querySelector('button:has(.refresh-cw)');
108
+ if (analyzeBtn) {
109
+ analyzeBtn.addEventListener('click', function() {
110
+ this.disabled = true;
111
+ this.innerHTML = '<i data-feather="loader" class="inline w-4 h-4 mr-2 animate-spin"></i>กำลังวิเคราะห์...';
112
+
113
+ setTimeout(() => {
114
+ this.disabled = false;
115
+ this.innerHTML = '<i data-feather="refresh-cw" class="inline w-4 h-4 mr-2"></i>วิเคราะห์ใหม่';
116
+ feather.replace();
117
+ showNotification('วิเคราะห์ข้อมูลเสร็จสิ้น!', 'success');
118
+ }, 2000);
119
+ });
120
+ }
121
+
122
+ // Mission completion buttons
123
+ const missionButtons = document.querySelectorAll('.bg-green-100, .bg-gray-200');
124
+ missionButtons.forEach(button => {
125
+ if (button.textContent.includes('สำเร็จ')) {
126
+ button.addEventListener('click', function() {
127
+ toggleMissionStatus(this);
128
+ });
129
+ }
130
+ });
131
+
132
+ // Product purchase buttons
133
+ const purchaseButtons = document.querySelectorAll('button:contains("สั่งซื้อ")');
134
+ purchaseButtons.forEach(button => {
135
+ button.addEventListener('click', function() {
136
+ handlePurchase(this);
137
+ });
138
+ });
139
+
140
+ // Reorder buttons
141
+ const reorderButtons = document.querySelectorAll('button:contains("ซื้อซ้ำ")');
142
+ reorderButtons.forEach(button => {
143
+ button.addEventListener('click', function() {
144
+ handleReorder(this);
145
+ });
146
+ });
147
+ }
148
+
149
+ // Mission status toggle
150
+ function toggleMissionStatus(button) {
151
+ if (button.textContent.includes('สำเร็จ')) {
152
+ button.classList.remove('bg-green-100', 'text-green-600');
153
+ button.classList.add('bg-gray-200', 'text-gray-600');
154
+ button.textContent = 'ยังไม่สำเร็จ';
155
+ } else {
156
+ button.classList.remove('bg-gray-200', 'text-gray-600');
157
+ button.classList.add('bg-green-100', 'text-green-600');
158
+ button.textContent = 'สำเร็จ';
159
+ button.classList.add('success-animation');
160
+
161
+ // Update points
162
+ updatePoints(20);
163
+ showNotification('ภารกิจสำเร็จ! +20 แต้ม', 'success');
164
+ }
165
+ }
166
+
167
+ // Purchase handling
168
+ function handlePurchase(button) {
169
+ button.disabled = true;
170
+ button.textContent = 'กำลังดำเนินการ...';
171
+
172
+ setTimeout(() => {
173
+ button.disabled = false;
174
+ button.textContent = 'สั่งซื้อทันที';
175
+ showNotification('เพิ่มสินค้าลงตะกร้าแล้ว', 'success');
176
+
177
+ // Update cart count
178
+ updateCartCount();
179
+ }, 1500);
180
+ }
181
+
182
+ // Reorder handling
183
+ function handleReorder(button) {
184
+ button.disabled = true;
185
+ button.textContent = 'กำลังสั่งซื้อ...';
186
+
187
+ setTimeout(() => {
188
+ button.disabled = false;
189
+ button.textContent = 'ซื้อซ้ำ 1 คลิก';
190
+ showNotification('สั่งซื้อสำเร็จ! จัดส่งใน 1-2 วัน', 'success');
191
+ }, 2000);
192
+ }
193
+
194
+ // Points system
195
+ let currentPoints = 750;
196
+
197
+ function updatePoints(points) {
198
+ currentPoints += points;
199
+ const pointsDisplay = document.querySelector('.text-2xl.font-bold');
200
+ if (pointsDisplay && pointsDisplay.textContent.includes('แต้ม')) {
201
+ pointsDisplay.textContent = currentPoints;
202
+ pointsDisplay.classList.add('success-animation');
203
+ setTimeout(() => {
204
+ pointsDisplay.classList.remove('success-animation');
205
+ }, 600);
206
+ }
207
+ }
208
+
209
+ // Cart system
210
+ let cartCount = 0;
211
+
212
+ function updateCartCount() {
213
+ cartCount++;
214
+ // Add cart badge to navigation if not exists
215
+ const cartButton = document.querySelector('button:has(.shopping-cart)');
216
+ if (cartButton && cartCount > 0) {
217
+ let badge = cartButton.querySelector('.cart-badge');
218
+ if (!badge) {
219
+ badge = document.createElement('span');
220
+ badge.className = 'cart-badge absolute -top-1 -right-1 bg-red-500 text-white text-xs rounded-full w-5 h-5 flex items-center justify-center';
221
+ cartButton.appendChild(badge);
222
+ }
223
+ badge.textContent = cartCount;
224
+ badge.classList.add('badge-pulse');
225
+ }
226
+ }
227
+
228
+ // Notification system
229
+ function showNotification(message, type = 'info') {
230
+ const notification = document.createElement('div');
231
+ notification.className = `fixed top-20 left-4 right-4 z-50 p-4 rounded-lg shadow-lg transform transition-all duration-300 ${
232
+ type === 'success' ? 'bg-green-500 text-white' :
233
+ type === 'error' ? 'bg-red-500 text-white' :
234
+ 'bg-blue-500 text-white'
235
+ }`;
236
+ notification.innerHTML = `
237
+ <div class="flex items-center justify-between">
238
+ <span>${message}</span>
239
+ <button onclick="this.parentElement.parentElement.remove()" class="ml-4">
240
+ <i data-feather="x" class="w-4 h-4"></i>
241
+ </button>
242
+ </div>
243
+ `;
244
+
245
+ document.body.appendChild(notification);
246
+ feather.replace();
247
+
248
+ // Animate in
249
+ setTimeout(() => {
250
+ notification.style.transform = 'translateY(0)';
251
+ }, 10);
252
+
253
+ // Auto remove
254
+ setTimeout(() => {
255
+ notification.style.transform = 'translateY(-100%)';
256
+ setTimeout(() => {
257
+ notification.remove();
258
+ }, 300);
259
+ }, 3000);
260
+ }
261
+
262
+ // Initialize notifications
263
+ function initializeNotifications() {
264
+ // Check for new notifications
265
+ setInterval(checkNewNotifications, 30000);
266
+ }
267
+
268
+ function checkNewNotifications() {
269
+ // Simulate notification check
270
+ const hasNewNotification = Math.random() > 0.8;
271
+ if (hasNewNotification) {
272
+ const bellButton = document.querySelector('button:has(.bell)');
273
+ if (bellButton) {
274
+ const dot = bellButton.querySelector('.bg-red-500');
275
+ if (!dot) {
276
+ const newDot = document.createElement('span');
277
+ newDot.className = 'absolute top-1 right-1 w-2 h-2 bg-red-500 rounded-full badge-pulse';
278
+ bellButton.appendChild(newDot);
279
+ }
280
+ }
281
+ }
282
+ }
283
+
284
+ // Load user data
285
+ function loadUserData() {
286
+ // Simulate loading user data from API
287
+ const userData = {
288
+ biologicalAge: 34,
289
+ realAge: 38,
290
+ progress: 65,
291
+ hrv: 75,
292
+ stress: 45,
293
+ sleep: 85,
294
+ muscle: 70,
295
+ points: 750,
296
+ currentDay: 15
297
+ };
298
+
299
+ // Update UI with user data
300
+ updateDashboard(userData);
301
+ }
302
+
303
+ function updateDashboard(data) {
304
+ // Update biological age display
305
+ const bioAgeElements = document.querySelectorAll('.text-4xl.font-bold');
306
+ bioAgeElements.forEach(el => {
307
+ if (parseInt(el.textContent) > 30) {
308
+ el.textContent = data.biologicalAge;
309
+ }
310
+ });
311
+
312
+ // Update progress bars
313
+ const progressBars = document.querySelectorAll('.bg-white.rounded-full');
314
+ progressBars.forEach(bar => {
315
+ if (bar.parentElement.classList.contains('opacity-90')) {
316
+ bar.style.width = `${data.progress}%`;
317
+ }
318
+ });
319
+
320
+ // Update health metrics
321
+ updateHealthMetric('HRV', data.hrv);
322
+ updateHealthMetric('ความเครียด', data.stress);
323
+ updateHealthMetric('การนอนหลับ', data.sleep);
324
+ updateHealthMetric('กล้ามเนื้อ', data.muscle);
325
+ }
326
+
327
+ function updateHealthMetric(metric, value) {
328
+ const cards = document.querySelectorAll('.grid .bg-white');
329
+ cards.forEach(card => {
330
+ const label = card.querySelector('.text-xs.text-gray-600');
331
+ if (label && label.textContent === metric) {
332
+ const progressBar = card.querySelector('.bg-gray-200 .rounded-full');
333
+ if (progressBar) {
334
+ progressBar.style.width = `${value}%`;
335
+ }
336
+ }
337
+ });
338
+ }
339
+
340
+ // BioCoach communication
341
+ document.querySelectorAll('button:has(.message-circle), button:has(.video), button:has(.file-text)').forEach(button => {
342
+ button.addEventListener('click', function() {
343
+ const icon = this.querySelector('svg').getAttribute('data-feather');
344
+
345
+ if (icon === 'message-circle') {
346
+ openChat();
347
+ } else if (icon === 'video') {
348
+ openVideoCall();
349
+ } else if (icon === 'file-text') {
350
+ openQuestionForm();
351
+ }
352
+ });
353
+ });
354
+
355
+ function openChat() {
356
+ showNotification('กำลังเปิดแชทกับ BioCoach...', 'info');
357
+ // Implement chat interface
358
+ }
359
+
360
+ function openVideoCall() {
361
+ showNotification('กำลังเชื่อมต่อวิดีโอคอล...', 'info');
362
+ // Implement video call interface
363
+ }
364
+
365
+ function openQuestionForm() {
366
+ showNotification('กำลังเปิดฟอร์มถาม-ตอบ...', 'info');
367
+ // Implement question form
368
+ }
369
+
370
+ // Special event logging
371
+ document.querySelector('button:contains("บันทึกเหตุการณ์พิเศษ")')?.addEventListener('click', function() {
372
+ const eventTypes = ['ป่วย', 'งดอาหาร', 'ออกกำลังกายหนัก', 'ท่องเที่ยว', 'สตรีสสูง'];
373
+ const eventType = prompt('เลือกประเภทเหตุการณ์:\n' + eventTypes.map((e, i) => `${i+1}. ${e}`).join('\n'));
374
+
375
+ if (eventType && eventTypes[parseInt(eventType) - 1]) {
376
+ showNotification(`บันทึกเหตุการณ์: ${eventTypes[parseInt(eventType) - 1]}`, 'success');
377
+ // Log to backend
378
+ }
379
+ });
380
+
381
+ // Periodic data sync
382
+ setInterval(() => {
383
+ syncData();
384
+ }, 60000); // Sync every minute
385
+
386
+ function syncData() {
387
+ // Simulate data synchronization
388
+ console.log('Syncing data with server...');
389
+ // Implement actual sync logic
390
+ }
391
+
392
+ // Handle app lifecycle
393
+ document.addEventListener('visibilitychange', function() {
394
+ if (document.hidden) {
395
+ // App is hidden, pause background tasks
396
+ console.log('App paused');
397
+ } else {
398
+ // App is visible, resume tasks
399
+ console.log('App resumed');
400
+ checkNewNotifications();
401
+ }
402
+ });
403
+
404
+ // Handle online/offline status
405
+ window.addEventListener('online', function() {
406
+ showNotification('เชื่อมต่ออินเทอร์เน็ตแล้ว', 'success');
407
+ });
408
+
409
+ window.addEventListener('offline', function() {
410
+ showNotification('การเชื่อมต่ออินเทอร์เน็ตขาดหาย', 'error');
411
+ });
style.css CHANGED
@@ -1,28 +1,264 @@
 
1
  body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
 
4
  }
5
 
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
  }
10
 
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
  }
17
 
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
  }
25
 
26
- .card p:last-child {
27
- margin-bottom: 0;
 
28
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Custom styles for WP WELLNET Longevity Platform */
2
  body {
3
+ font-family: 'Prompt', sans-serif;
4
+ -webkit-font-smoothing: antialiased;
5
+ -moz-osx-font-smoothing: grayscale;
6
  }
7
 
8
+ /* Smooth scrolling */
9
+ html {
10
+ scroll-behavior: smooth;
11
  }
12
 
13
+ /* Custom scrollbar */
14
+ ::-webkit-scrollbar {
15
+ width: 4px;
 
 
16
  }
17
 
18
+ ::-webkit-scrollbar-track {
19
+ background: #f1f1f1;
 
 
 
 
20
  }
21
 
22
+ ::-webkit-scrollbar-thumb {
23
+ background: #A5D6A7;
24
+ border-radius: 2px;
25
  }
26
+
27
+ ::-webkit-scrollbar-thumb:hover {
28
+ background: #81C784;
29
+ }
30
+
31
+ /* Canvas chart styles */
32
+ canvas {
33
+ max-height: 120px;
34
+ }
35
+
36
+ /* Touch-friendly buttons */
37
+ button {
38
+ min-height: 44px;
39
+ touch-action: manipulation;
40
+ }
41
+
42
+ /* Animation for health bars */
43
+ .health-bar {
44
+ transition: width 0.6s ease-in-out;
45
+ }
46
+
47
+ /* Card hover effects */
48
+ .card-hover {
49
+ transition: all 0.3s ease;
50
+ }
51
+
52
+ .card-hover:hover {
53
+ transform: translateY(-2px);
54
+ box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
55
+ }
56
+
57
+ /* Badge animations */
58
+ .badge-pulse {
59
+ animation: pulse 2s infinite;
60
+ }
61
+
62
+ @keyframes pulse {
63
+ 0% {
64
+ box-shadow: 0 0 0 0 rgba(165, 214, 167, 0.7);
65
+ }
66
+ 70% {
67
+ box-shadow: 0 0 0 10px rgba(165, 214, 167, 0);
68
+ }
69
+ 100% {
70
+ box-shadow: 0 0 0 0 rgba(165, 214, 167, 0);
71
+ }
72
+ }
73
+
74
+ /* Loading skeleton */
75
+ .skeleton {
76
+ background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
77
+ background-size: 200% 100%;
78
+ animation: loading 1.5s infinite;
79
+ }
80
+
81
+ @keyframes loading {
82
+ 0% {
83
+ background-position: 200% 0;
84
+ }
85
+ 100% {
86
+ background-position: -200% 0;
87
+ }
88
+ }
89
+
90
+ /* Bottom navigation active state */
91
+ .nav-active {
92
+ color: #A5D6A7 !important;
93
+ }
94
+
95
+ /* Custom checkbox styles */
96
+ .custom-checkbox {
97
+ appearance: none;
98
+ width: 20px;
99
+ height: 20px;
100
+ border: 2px solid #A5D6A7;
101
+ border-radius: 4px;
102
+ transition: all 0.3s ease;
103
+ cursor: pointer;
104
+ }
105
+
106
+ .custom-checkbox:checked {
107
+ background-color: #A5D6A7;
108
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
109
+ background-size: 16px 16px;
110
+ background-position: center;
111
+ background-repeat: no-repeat;
112
+ }
113
+
114
+ /* Success animation */
115
+ .success-animation {
116
+ animation: success 0.6s ease-in-out;
117
+ }
118
+
119
+ @keyframes success {
120
+ 0% {
121
+ transform: scale(1);
122
+ }
123
+ 50% {
124
+ transform: scale(1.1);
125
+ }
126
+ 100% {
127
+ transform: scale(1);
128
+ }
129
+ }
130
+
131
+ /* Notification badge */
132
+ .notification-badge {
133
+ position: absolute;
134
+ top: 8px;
135
+ right: 8px;
136
+ width: 8px;
137
+ height: 8px;
138
+ background-color: #ef4444;
139
+ border-radius: 50%;
140
+ animation: pulse 2s infinite;
141
+ }
142
+
143
+ /* Progress ring */
144
+ .progress-ring {
145
+ transform: rotate(-90deg);
146
+ }
147
+
148
+ .progress-ring-circle {
149
+ transition: stroke-dashoffset 0.35s;
150
+ stroke: #A5D6A7;
151
+ stroke-dasharray: 126;
152
+ stroke-dashoffset: 0;
153
+ }
154
+
155
+ /* Custom input styles */
156
+ input[type="number"]::-webkit-inner-spin-button,
157
+ input[type="number"]::-webkit-outer-spin-button {
158
+ -webkit-appearance: none;
159
+ margin: 0;
160
+ }
161
+
162
+ /* Focus styles */
163
+ .focus-ring:focus {
164
+ outline: none;
165
+ box-shadow: 0 0 0 3px rgba(165, 214, 167, 0.3);
166
+ }
167
+
168
+ /* Glassmorphism effect */
169
+ .glass {
170
+ background: rgba(255, 255, 255, 0.8);
171
+ backdrop-filter: blur(10px);
172
+ -webkit-backdrop-filter: blur(10px);
173
+ }
174
+
175
+ /* Responsive typography */
176
+ @media (max-width: 640px) {
177
+ body {
178
+ font-size: 14px;
179
+ }
180
+
181
+ .text-xs {
182
+ font-size: 0.75rem;
183
+ }
184
+
185
+ .text-sm {
186
+ font-size: 0.875rem;
187
+ }
188
+ }
189
+
190
+ /* Safe area insets for mobile devices */
191
+ @supports (padding: max(0px)) {
192
+ .safe-bottom {
193
+ padding-bottom: max(16px, env(safe-area-inset-bottom));
194
+ }
195
+
196
+ .safe-top {
197
+ padding-top: max(16px, env(safe-area-inset-top));
198
+ }
199
+ }
200
+
201
+ /* Dark mode support (if needed) */
202
+ @media (prefers-color-scheme: dark) {
203
+ .dark-mode {
204
+ background-color: #1a1a1a;
205
+ color: #ffffff;
206
+ }
207
+
208
+ .dark-mode .bg-white {
209
+ background-color: #2a2a2a;
210
+ }
211
+
212
+ .dark-mode .bg-gray-50 {
213
+ background-color: #1f1f1f;
214
+ }
215
+ }
216
+
217
+ /* Print styles */
218
+ @media print {
219
+ .no-print {
220
+ display: none !important;
221
+ }
222
+
223
+ body {
224
+ font-size: 12px;
225
+ line-height: 1.4;
226
+ }
227
+ }
228
+
229
+ /* Accessibility improvements */
230
+ .sr-only {
231
+ position: absolute;
232
+ width: 1px;
233
+ height: 1px;
234
+ padding: 0;
235
+ margin: -1px;
236
+ overflow: hidden;
237
+ clip: rect(0, 0, 0, 0);
238
+ white-space: nowrap;
239
+ border: 0;
240
+ }
241
+
242
+ /* High contrast mode */
243
+ @media (prefers-contrast: high) {
244
+ .primary {
245
+ background-color: #000000 !important;
246
+ color: #ffffff !important;
247
+ }
248
+
249
+ .bg-primary {
250
+ background-color: #000000 !important;
251
+ }
252
+ }
253
+
254
+ /* Reduced motion */
255
+ @media (prefers-reduced-motion: reduce) {
256
+ *,
257
+ *::before,
258
+ *::after {
259
+ animation-duration: 0.01ms !important;
260
+ animation-iteration-count: 1 !important;
261
+ transition-duration: 0.01ms !important;
262
+ scroll-behavior: auto !important;
263
+ }
264
+ }