CSNET commited on
Commit
55fb16a
·
verified ·
1 Parent(s): 0d6d0d6

Design a mobile-first HTML5 web app (single-page) for a modern **Wellness Restoration Platform** under the brand "WP WELLNET", with a clean and professional health-tech UI in Thai language.

Browse files

The platform should include the following sections:

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

2. **User Dashboard (หน้าหลัก)**
- Show personalized user data summary: current health status, restoration progress (in %, circular chart), symptom tags (e.g. เรอเปรี้ยว, แน่นอก, ปวดข้อ).
- “Next Step” button that guides to daily task or product.
- Quick access cards: ฟื้นฟูวันนี้, สั่งซื้อซ้ำ, วัดอาการวันนี้

3. **Restoration Plan (แผนฟื้นฟู)**
- Section to show 30-day personalized plan (Day 1–30)
- Each day has: supplement reminder, eating tip, lifestyle tip
- Calendar-style list with progress bar

4. **Symptom Tracker (ติดตามอาการ)**
- Allow user to log daily symptoms with emoji slider (from 😞 → 😊)
- Timeline of symptom history
- AI suggestion: “อาการดีขึ้นแล้วควรทำอะไรต่อ?”

5. **Product Section (สั่งซื้อผลิตภัณฑ์)**
- Smart AI Recommendation: show product bundle based on symptom
- Highlight products like GRD, URD, MAG-5 with short descriptions
- Add to cart button with quantity selector

6. **Repeat Order Reminder (ซื้อซ้ำ)**
- Show last order + estimated day of running out
- Quick reorder button (1-click)
- “แนะนำแพ็กเกจสำหรับเดือนนี้” section

7. **Agent Button (ดูแลโดยตัวแทน)**
- Floating button “ปรึกษาผู้ดูแล” that opens chat or contact form

8. **Bottom Navigation (เมนูล่าง)**
- Home | ฟื้นฟู | ติดตาม | สั่งซื้อ | โปรไฟล์

Styling guideline:
- Color scheme: Wellness tone (green, white, light gray)
- Font: “Prompt” for Thai text
- UI style: Modern, smooth shadow cards, rounded corners, clean spacing
- Mobile optimized: responsive, large tappable areas, fixed navs

Goal:
Create an interactive, intuitive mobile dashboard that helps users in Restoration group track their recovery, stay on plan, easily reorder, and feel supported by their Wellness Consultant.

Language: Use Thai for all interface text.

Files changed (4) hide show
  1. README.md +7 -4
  2. index.html +526 -19
  3. script.js +215 -0
  4. style.css +133 -19
README.md CHANGED
@@ -1,10 +1,13 @@
1
  ---
2
- title: Wp Wellnet Wellness Platform
3
- emoji: 🐢
4
- colorFrom: blue
5
  colorTo: yellow
 
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 Wellness Platform 🌿
3
+ colorFrom: red
 
4
  colorTo: yellow
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,526 @@
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">
6
+ <title>WP WELLNET - แพลตฟอร์มฟื้นฟูสุขภาพ</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
+ <script src="https://cdn.tailwindcss.com"></script>
10
+ <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
11
+ <script src="https://unpkg.com/feather-icons"></script>
12
+ <link rel="preconnect" href="https://fonts.googleapis.com">
13
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
14
+ <link href="https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap" rel="stylesheet">
15
+ </head>
16
+ <body class="bg-gray-50 font-['Prompt']">
17
+ <!-- Header -->
18
+ <header class="fixed top-0 left-0 right-0 bg-white shadow-md z-50">
19
+ <div class="flex items-center justify-between px-4 py-3">
20
+ <div class="flex items-center space-x-2">
21
+ <div class="w-8 h-8 bg-green-600 rounded-full flex items-center justify-center">
22
+ <span class="text-white font-bold text-sm">WP</span>
23
+ </div>
24
+ <span class="font-semibold text-gray-800">WELLNET</span>
25
+ </div>
26
+ <div class="flex items-center space-x-4">
27
+ <button class="relative p-2">
28
+ <i data-feather="bell" class="w-5 h-5 text-gray-600"></i>
29
+ <span class="absolute top-1 right-1 w-2 h-2 bg-red-500 rounded-full"></span>
30
+ </button>
31
+ <button class="relative p-2">
32
+ <i data-feather="user" class="w-5 h-5 text-gray-600"></i>
33
+ </button>
34
+ </div>
35
+ </div>
36
+ </header>
37
+
38
+ <!-- Main Content -->
39
+ <main class="pt-16 pb-20 min-h-screen">
40
+ <!-- Dashboard Section -->
41
+ <section id="dashboard" class="page-section active px-4 py-6">
42
+ <!-- User Summary Card -->
43
+ <div class="bg-gradient-to-br from-green-500 to-green-600 rounded-2xl p-6 text-white mb-6 shadow-lg">
44
+ <div class="flex items-center justify-between mb-4">
45
+ <div>
46
+ <h2 class="text-2xl font-bold mb-1">สวัสดีครับ/ค่ะ</h2>
47
+ <p class="text-green-100">วันนี้คุณดีขึ้นแล้ว 75%</p>
48
+ </div>
49
+ <div class="relative w-20 h-20">
50
+ <svg class="transform -rotate-90 w-20 h-20">
51
+ <circle cx="40" cy="40" r="35" stroke="#ffffff30" stroke-width="6" fill="none"></circle>
52
+ <circle cx="40" cy="40" r="35" stroke="#ffffff" stroke-width="6" fill="none"
53
+ stroke-dasharray="220" stroke-dashoffset="55" stroke-linecap="round"></circle>
54
+ </svg>
55
+ <span class="absolute inset-0 flex items-center justify-center text-xl font-bold">75%</span>
56
+ </div>
57
+ </div>
58
+ <div class="flex flex-wrap gap-2">
59
+ <span class="bg-white/20 px-3 py-1 rounded-full text-sm">เรอเปรี้ยว</span>
60
+ <span class="bg-white/20 px-3 py-1 rounded-full text-sm">แน่นอก</span>
61
+ <span class="bg-white/20 px-3 py-1 rounded-full text-sm">ปวดข้อ</span>
62
+ </div>
63
+ </div>
64
+
65
+ <!-- Next Step Button -->
66
+ <button class="w-full bg-blue-500 text-white rounded-xl p-4 mb-6 flex items-center justify-between shadow-lg hover:bg-blue-600 transition">
67
+ <div class="text-left">
68
+ <p class="font-semibold">ขั้นตอนถัดไป</p>
69
+ <p class="text-sm opacity-90">ทานอาหารมื้อเช้าและวิตามิน</p>
70
+ </div>
71
+ <i data-feather="arrow-right" class="w-5 h-5"></i>
72
+ </button>
73
+
74
+ <!-- Quick Access Cards -->
75
+ <div class="grid grid-cols-3 gap-3 mb-6">
76
+ <div class="bg-white rounded-xl p-4 shadow-md text-center hover:shadow-lg transition cursor-pointer">
77
+ <div class="w-12 h-12 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-2">
78
+ <i data-feather="refresh-cw" class="w-6 h-6 text-green-600"></i>
79
+ </div>
80
+ <p class="text-xs font-medium text-gray-700">ฟื้นฟูวันนี้</p>
81
+ </div>
82
+ <div class="bg-white rounded-xl p-4 shadow-md text-center hover:shadow-lg transition cursor-pointer">
83
+ <div class="w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-2">
84
+ <i data-feather="shopping-bag" class="w-6 h-6 text-blue-600"></i>
85
+ </div>
86
+ <p class="text-xs font-medium text-gray-700">สั่งซื้อซ้ำ</p>
87
+ </div>
88
+ <div class="bg-white rounded-xl p-4 shadow-md text-center hover:shadow-lg transition cursor-pointer">
89
+ <div class="w-12 h-12 bg-purple-100 rounded-full flex items-center justify-center mx-auto mb-2">
90
+ <i data-feather="clipboard" class="w-6 h-6 text-purple-600"></i>
91
+ </div>
92
+ <p class="text-xs font-medium text-gray-700">วัดอาการวันนี้</p>
93
+ </div>
94
+ </div>
95
+
96
+ <!-- Today's Progress -->
97
+ <div class="bg-white rounded-xl p-4 shadow-md">
98
+ <h3 class="font-semibold text-gray-800 mb-3">ความคืบหน้าวันนี้</h3>
99
+ <div class="space-y-3">
100
+ <div class="flex items-center justify-between">
101
+ <div class="flex items-center space-x-3">
102
+ <div class="w-8 h-8 bg-green-100 rounded-full flex items-center justify-center">
103
+ <i data-feather="check" class="w-4 h-4 text-green-600"></i>
104
+ </div>
105
+ <span class="text-sm text-gray-700">ทานวิตามินเช้า</span>
106
+ </div>
107
+ <span class="text-xs text-green-600">เสร็จแล้ว</span>
108
+ </div>
109
+ <div class="flex items-center justify-between">
110
+ <div class="flex items-center space-x-3">
111
+ <div class="w-8 h-8 bg-gray-100 rounded-full flex items-center justify-center">
112
+ <i data-feather="clock" class="w-4 h-4 text-gray-400"></i>
113
+ </div>
114
+ <span class="text-sm text-gray-700">ออกกำลังกาย 30 นาที</span>
115
+ </div>
116
+ <span class="text-xs text-gray-500">รอดำเนินการ</span>
117
+ </div>
118
+ <div class="flex items-center justify-between">
119
+ <div class="flex items-center space-x-3">
120
+ <div class="w-8 h-8 bg-gray-100 rounded-full flex items-center justify-center">
121
+ <i data-feather="moon" class="w-4 h-4 text-gray-400"></i>
122
+ </div>
123
+ <span class="text-sm text-gray-700">พักผ่อน 8 ชั่วโมง</span>
124
+ </div>
125
+ <span class="text-xs text-gray-500">รอดำเนินการ</span>
126
+ </div>
127
+ </div>
128
+ </div>
129
+ </section>
130
+
131
+ <!-- Restoration Plan Section -->
132
+ <section id="restoration" class="page-section px-4 py-6 hidden">
133
+ <h2 class="text-xl font-bold text-gray-800 mb-4">แผนฟื้นฟู 30 วัน</h2>
134
+
135
+ <!-- Progress Overview -->
136
+ <div class="bg-white rounded-xl p-4 shadow-md mb-4">
137
+ <div class="flex items-center justify-between mb-2">
138
+ <span class="text-sm text-gray-600">ความคืบหน้าทั้งหมด</span>
139
+ <span class="text-sm font-semibold text-green-600">วันที่ 15/30</span>
140
+ </div>
141
+ <div class="w-full bg-gray-200 rounded-full h-3">
142
+ <div class="bg-green-500 h-3 rounded-full" style="width: 50%"></div>
143
+ </div>
144
+ </div>
145
+
146
+ <!-- Day List -->
147
+ <div class="space-y-3 max-h-96 overflow-y-auto">
148
+ <!-- Day 15 - Today -->
149
+ <div class="bg-gradient-to-r from-green-50 to-green-100 rounded-xl p-4 border-2 border-green-300">
150
+ <div class="flex items-center justify-between mb-2">
151
+ <h3 class="font-semibold text-green-800">วันที่ 15 - วันนี้</h3>
152
+ <span class="bg-green-500 text-white text-xs px-2 py-1 rounded-full">กำลังดำเนินการ</span>
153
+ </div>
154
+ <div class="space-y-2 text-sm">
155
+ <div class="flex items-start space-x-2">
156
+ <i data-feather="sun" class="w-4 h-4 text-yellow-500 mt-0.5"></i>
157
+ <div>
158
+ <p class="font-medium">เช้า: วิตามิน GRD + อาหารอ่อน</p>
159
+ <p class="text-xs text-gray-600">08:00 - 09:00</p>
160
+ </div>
161
+ </div>
162
+ <div class="flex items-start space-x-2">
163
+ <i data-feather="sun" class="w-4 h-4 text-orange-500 mt-0.5"></i>
164
+ <div>
165
+ <p class="font-medium">กลางวัน: หลีกเลี่ยงอาหารหมักดอง</p>
166
+ <p class="text-xs text-gray-600">12:00 - 13:00</p>
167
+ </div>
168
+ </div>
169
+ <div class="flex items-start space-x-2">
170
+ <i data-feather="moon" class="w-4 h-4 text-purple-500 mt-0.5"></i>
171
+ <div>
172
+ <p class="font-medium">เย็น: พักผ่อน นอนหลับ 8 ชั่วโมง</p>
173
+ <p class="text-xs text-gray-600">22:00 - 06:00</p>
174
+ </div>
175
+ </div>
176
+ </div>
177
+ </div>
178
+
179
+ <!-- Day 14 -->
180
+ <div class="bg-white rounded-xl p-4 shadow-md">
181
+ <div class="flex items-center justify-between mb-2">
182
+ <h3 class="font-semibold text-gray-800">วันที่ 14</h3>
183
+ <span class="bg-gray-500 text-white text-xs px-2 py-1 rounded-full">เสร็จสิ้น</span>
184
+ </div>
185
+ <div class="space-y-2 text-sm">
186
+ <div class="flex items-start space-x-2">
187
+ <i data-feather="check-circle" class="w-4 h-4 text-green-500 mt-0.5"></i>
188
+ <div>
189
+ <p class="font-medium">เช้า: วิตามิน URD + น้ำอุ่น</p>
190
+ <p class="text-xs text-gray-600">เสร็จสิ้น</p>
191
+ </div>
192
+ </div>
193
+ </div>
194
+ </div>
195
+
196
+ <!-- Day 16 -->
197
+ <div class="bg-white rounded-xl p-4 shadow-md opacity-75">
198
+ <div class="flex items-center justify-between mb-2">
199
+ <h3 class="font-semibold text-gray-800">วันที่ 16</h3>
200
+ <span class="bg-gray-300 text-gray-600 text-xs px-2 py-1 rounded-full">รอดำเนินการ</span>
201
+ </div>
202
+ <div class="space-y-2 text-sm">
203
+ <div class="flex items-start space-x-2">
204
+ <i data-feather="circle" class="w-4 h-4 text-gray-400 mt-0.5"></i>
205
+ <div>
206
+ <p class="font-medium">เช้า: วิตามิน MAG-5 + ผลไม้</p>
207
+ <p class="text-xs text-gray-600">08:00 - 09:00</p>
208
+ </div>
209
+ </div>
210
+ </div>
211
+ </div>
212
+ </div>
213
+ </section>
214
+
215
+ <!-- Symptom Tracker Section -->
216
+ <section id="symptom-tracker" class="page-section px-4 py-6 hidden">
217
+ <h2 class="text-xl font-bold text-gray-800 mb-4">ติดตามอาการ</h2>
218
+
219
+ <!-- Today's Input -->
220
+ <div class="bg-white rounded-xl p-4 shadow-md mb-4">
221
+ <h3 class="font-semibold text-gray-800 mb-3">บันทึกอาการวันนี้</h3>
222
+
223
+ <div class="space-y-4">
224
+ <div>
225
+ <label class="text-sm text-gray-600 mb-2 block">ระดับอาการเรอเปรี้ยว</label>
226
+ <div class="flex justify-between items-center">
227
+ <span class="text-2xl">😞</span>
228
+ <input type="range" class="flex-1 mx-4" min="0" max="100" value="30" id="symptom1">
229
+ <span class="text-2xl">😊</span>
230
+ </div>
231
+ </div>
232
+
233
+ <div>
234
+ <label class="text-sm text-gray-600 mb-2 block">ระดับอาการแน่นอก</label>
235
+ <div class="flex justify-between items-center">
236
+ <span class="text-2xl">😞</span>
237
+ <input type="range" class="flex-1 mx-4" min="0" max="100" value="40" id="symptom2">
238
+ <span class="text-2xl">😊</span>
239
+ </div>
240
+ </div>
241
+
242
+ <div>
243
+ <label class="text-sm text-gray-600 mb-2 block">ระดับอาการปวดข้อ</label>
244
+ <div class="flex justify-between items-center">
245
+ <span class="text-2xl">😞</span>
246
+ <input type="range" class="flex-1 mx-4" min="0" max="100" value="60" id="symptom3">
247
+ <span class="text-2xl">😊</span>
248
+ </div>
249
+ </div>
250
+ </div>
251
+
252
+ <button class="w-full bg-green-500 text-white rounded-lg py-3 mt-4 font-medium hover:bg-green-600 transition">
253
+ บันทึกอาการ
254
+ </button>
255
+ </div>
256
+
257
+ <!-- AI Suggestion -->
258
+ <div class="bg-gradient-to-r from-blue-50 to-purple-50 rounded-xl p-4 border border-blue-200 mb-4">
259
+ <div class="flex items-start space-x-3">
260
+ <div class="w-10 h-10 bg-blue-500 rounded-full flex items-center justify-center flex-shrink-0">
261
+ <i data-feather="cpu" class="w-5 h-5 text-white"></i>
262
+ </div>
263
+ <div>
264
+ <h4 class="font-semibold text-gray-800 mb-1">คำแนะนำจาก AI</h4>
265
+ <p class="text-sm text-gray-700">อาการดีขึ้นแล้วครับ! แนะนำให้ทานวิตามิน GRD ต่อเนื่อง และลดอาหารที่มีไขมันสูง ควรออกกำลังกายเบาๆ วันละ 20 นาที</p>
266
+ </div>
267
+ </div>
268
+ </div>
269
+
270
+ <!-- History Timeline -->
271
+ <div class="bg-white rounded-xl p-4 shadow-md">
272
+ <h3 class="font-semibold text-gray-800 mb-3">ประวัติอาการ</h3>
273
+ <div class="space-y-3">
274
+ <div class="flex items-start space-x-3">
275
+ <div class="w-8 h-8 bg-green-100 rounded-full flex items-center justify-center flex-shrink-0">
276
+ <span class="text-xs font-semibold text-green-600">15</span>
277
+ </div>
278
+ <div class="flex-1">
279
+ <p class="text-sm font-medium">วันนี้</p>
280
+ <div class="flex items-center space-x-2 mt-1">
281
+ <span class="text-xs bg-yellow-100 text-yellow-700 px-2 py-0.5 rounded">เรอเปรี้ยว 30%</span>
282
+ <span class="text-xs bg-orange-100 text-orange-700 px-2 py-0.5 rounded">แน่นอก 40%</span>
283
+ <span class="text-xs bg-green-100 text-green-700 px-2 py-0.5 rounded">ปวดข้อ 60%</span>
284
+ </div>
285
+ </div>
286
+ </div>
287
+
288
+ <div class="flex items-start space-x-3">
289
+ <div class="w-8 h-8 bg-gray-100 rounded-full flex items-center justify-center flex-shrink-0">
290
+ <span class="text-xs font-semibold text-gray-600">14</span>
291
+ </div>
292
+ <div class="flex-1">
293
+ <p class="text-sm font-medium">เมื่อวาน</p>
294
+ <div class="flex items-center space-x-2 mt-1">
295
+ <span class="text-xs bg-yellow-100 text-yellow-700 px-2 py-0.5 rounded">เรอเปรี้ยว 35%</span>
296
+ <span class="text-xs bg-orange-100 text-orange-700 px-2 py-0.5 rounded">แน่นอก 45%</span>
297
+ <span class="text-xs bg-green-100 text-green-700 px-2 py-0.5 rounded">ปวดข้อ 55%</span>
298
+ </div>
299
+ </div>
300
+ </div>
301
+ </div>
302
+ </div>
303
+ </section>
304
+
305
+ <!-- Product Section -->
306
+ <section id="products" class="page-section px-4 py-6 hidden">
307
+ <h2 class="text-xl font-bold text-gray-800 mb-4">สั่งซื้อผลิตภัณฑ์</h2>
308
+
309
+ <!-- AI Recommendation -->
310
+ <div class="bg-gradient-to-r from-purple-500 to-pink-500 rounded-xl p-4 text-white mb-4 shadow-lg">
311
+ <div class="flex items-center space-x-2 mb-2">
312
+ <i data-feather="zap" class="w-5 h-5"></i>
313
+ <h3 class="font-semibold">คำแนะนำจาก AI</h3>
314
+ </div>
315
+ <p class="text-sm mb-3">จากอาการของคุณ แนะนำแพ��กเกจฟื้นฟูระบบทางเดินอาหาร</p>
316
+ <div class="bg-white/20 rounded-lg p-3">
317
+ <p class="text-sm font-medium mb-1">แพ็กเกจพิเศษ: GRD + URD + MAG-5</p>
318
+ <p class="text-lg font-bold">฿1,990 <span class="text-sm line-through opacity-75">฿2,490</span></p>
319
+ </div>
320
+ </div>
321
+
322
+ <!-- Product Grid -->
323
+ <div class="space-y-4">
324
+ <!-- Product 1 -->
325
+ <div class="bg-white rounded-xl p-4 shadow-md">
326
+ <div class="flex space-x-4">
327
+ <img src="https://static.photos/health/100x100/1" alt="GRD" class="w-24 h-24 rounded-lg object-cover">
328
+ <div class="flex-1">
329
+ <h3 class="font-semibold text-gray-800">GRD - กรดเรือนร่ม</h3>
330
+ <p class="text-xs text-gray-600 mb-2">ช่วยลดอาการเรอเปรี้ยว ปรับสมดุลระบบทางเดินอาหาร</p>
331
+ <p class="text-lg font-bold text-green-600 mb-2">฿690</p>
332
+ <div class="flex items-center space-x-2">
333
+ <div class="flex items-center space-x-1 border rounded-lg px-2 py-1">
334
+ <button class="text-gray-500 hover:text-gray-700" onclick="decreaseQuantity(1)">
335
+ <i data-feather="minus" class="w-4 h-4"></i>
336
+ </button>
337
+ <span class="px-2 text-sm font-medium" id="qty-1">1</span>
338
+ <button class="text-gray-500 hover:text-gray-700" onclick="increaseQuantity(1)">
339
+ <i data-feather="plus" class="w-4 h-4"></i>
340
+ </button>
341
+ </div>
342
+ <button class="bg-green-500 text-white px-4 py-1.5 rounded-lg text-sm font-medium hover:bg-green-600 transition">
343
+ เพิ่มลงตะกร้า
344
+ </button>
345
+ </div>
346
+ </div>
347
+ </div>
348
+ </div>
349
+
350
+ <!-- Product 2 -->
351
+ <div class="bg-white rounded-xl p-4 shadow-md">
352
+ <div class="flex space-x-4">
353
+ <img src="https://static.photos/health/100x100/2" alt="URD" class="w-24 h-24 rounded-lg object-cover">
354
+ <div class="flex-1">
355
+ <h3 class="font-semibold text-gray-800">URD - กรดยูริก</h3>
356
+ <p class="text-xs text-gray-600 mb-2">ลดอาการปวดข้อ บรรเทาอาการอักเสบ</p>
357
+ <p class="text-lg font-bold text-green-600 mb-2">฿890</p>
358
+ <div class="flex items-center space-x-2">
359
+ <div class="flex items-center space-x-1 border rounded-lg px-2 py-1">
360
+ <button class="text-gray-500 hover:text-gray-700" onclick="decreaseQuantity(2)">
361
+ <i data-feather="minus" class="w-4 h-4"></i>
362
+ </button>
363
+ <span class="px-2 text-sm font-medium" id="qty-2">1</span>
364
+ <button class="text-gray-500 hover:text-gray-700" onclick="increaseQuantity(2)">
365
+ <i data-feather="plus" class="w-4 h-4"></i>
366
+ </button>
367
+ </div>
368
+ <button class="bg-green-500 text-white px-4 py-1.5 rounded-lg text-sm font-medium hover:bg-green-600 transition">
369
+ เพิ่มลงตะกร้า
370
+ </button>
371
+ </div>
372
+ </div>
373
+ </div>
374
+ </div>
375
+
376
+ <!-- Product 3 -->
377
+ <div class="bg-white rounded-xl p-4 shadow-md">
378
+ <div class="flex space-x-4">
379
+ <img src="https://static.photos/health/100x100/3" alt="MAG-5" class="w-24 h-24 rounded-lg object-cover">
380
+ <div class="flex-1">
381
+ <h3 class="font-semibold text-gray-800">MAG-5 - แม็กนีเซียม</h3>
382
+ <p class="text-xs text-gray-600 mb-2">ช่วยผ่อนคลายกล้ามเนื้อ บรรเทาอาการแน่นอก</p>
383
+ <p class="text-lg font-bold text-green-600 mb-2">฿590</p>
384
+ <div class="flex items-center space-x-2">
385
+ <div class="flex items-center space-x-1 border rounded-lg px-2 py-1">
386
+ <button class="text-gray-500 hover:text-gray-700" onclick="decreaseQuantity(3)">
387
+ <i data-feather="minus" class="w-4 h-4"></i>
388
+ </button>
389
+ <span class="px-2 text-sm font-medium" id="qty-3">1</span>
390
+ <button class="text-gray-500 hover:text-gray-700" onclick="increaseQuantity(3)">
391
+ <i data-feather="plus" class="w-4 h-4"></i>
392
+ </button>
393
+ </div>
394
+ <button class="bg-green-500 text-white px-4 py-1.5 rounded-lg text-sm font-medium hover:bg-green-600 transition">
395
+ เพิ่มลงตะกร้า
396
+ </button>
397
+ </div>
398
+ </div>
399
+ </div>
400
+ </div>
401
+ </div>
402
+
403
+ <!-- Cart Summary -->
404
+ <div class="fixed bottom-20 left-0 right-0 bg-white border-t shadow-lg p-4">
405
+ <div class="flex items-center justify-between">
406
+ <div>
407
+ <p class="text-sm text-gray-600">ตะกร้า (3 รายการ)</p>
408
+ <p class="text-xl font-bold text-gray-800">฿2,170</p>
409
+ </div>
410
+ <button class="bg-green-500 text-white px-6 py-3 rounded-lg font-medium hover:bg-green-600 transition">
411
+ ชำระเงิน
412
+ </button>
413
+ </div>
414
+ </div>
415
+ </section>
416
+
417
+ <!-- Profile Section -->
418
+ <section id="profile" class="page-section px-4 py-6 hidden">
419
+ <h2 class="text-xl font-bold text-gray-800 mb-4">โปรไฟล์ของฉัน</h2>
420
+
421
+ <!-- User Info Card -->
422
+ <div class="bg-white rounded-xl p-4 shadow-md mb-4">
423
+ <div class="flex items-center space-x-4 mb-4">
424
+ <div class="w-16 h-16 bg-green-100 rounded-full flex items-center justify-center">
425
+ <i data-feather="user" class="w-8 h-8 text-green-600"></i>
426
+ </div>
427
+ <div>
428
+ <h3 class="font-semibold text-gray-800">สมชาย ใจดี</h3>
429
+ <p class="text-sm text-gray-600">สมาชิกตั้งแต่ มกราคม 2024</p>
430
+ </div>
431
+ </div>
432
+ <div class="grid grid-cols-3 gap-2 text-center">
433
+ <div class="bg-gray-50 rounded-lg p-2">
434
+ <p class="text-xl font-bold text-green-600">15</p>
435
+ <p class="text-xs text-gray-600">วันที่ผ่านไป</p>
436
+ </div>
437
+ <div class="bg-gray-50 rounded-lg p-2">
438
+ <p class="text-xl font-bold text-blue-600">75%</p>
439
+ <p class="text-xs text-gray-600">ดีขึ้นแล้ว</p>
440
+ </div>
441
+ <div class="bg-gray-50 rounded-lg p-2">
442
+ <p class="text-xl font-bold text-purple-600">4.8</p>
443
+ <p class="text-xs text-gray-600">คะแนนเฉลี่ย</p>
444
+ </div>
445
+ </div>
446
+ </div>
447
+
448
+ <!-- Menu Items -->
449
+ <div class="bg-white rounded-xl shadow-md overflow-hidden">
450
+ <div class="divide-y">
451
+ <button class="w-full px-4 py-3 flex items-center justify-between hover:bg-gray-50 transition">
452
+ <div class="flex items-center space-x-3">
453
+ <i data-feather="user" class="w-5 h-5 text-gray-600"></i>
454
+ <span class="text-gray-700">ข้อมูลส่วนตัว</span>
455
+ </div>
456
+ <i data-feather="chevron-right" class="w-5 h-5 text-gray-400"></i>
457
+ </button>
458
+ <button class="w-full px-4 py-3 flex items-center justify-between hover:bg-gray-50 transition">
459
+ <div class="flex items-center space-x-3">
460
+ <i data-feather="package" class="w-5 h-5 text-gray-600"></i>
461
+ <span class="text-gray-700">ประวัติการสั่งซื้อ</span>
462
+ </div>
463
+ <i data-feather="chevron-right" class="w-5 h-5 text-gray-400"></i>
464
+ </button>
465
+ <button class="w-full px-4 py-3 flex items-center justify-between hover:bg-gray-50 transition">
466
+ <div class="flex items-center space-x-3">
467
+ <i data-feather="credit-card" class="w-5 h-5 text-gray-600"></i>
468
+ <span class="text-gray-700">ข้อมูลการชำระเงิน</span>
469
+ </div>
470
+ <i data-feather="chevron-right" class="w-5 h-5 text-gray-400"></i>
471
+ </button>
472
+ <button class="w-full px-4 py-3 flex items-center justify-between hover:bg-gray-50 transition">
473
+ <div class="flex items-center space-x-3">
474
+ <i data-feather="settings" class="w-5 h-5 text-gray-600"></i>
475
+ <span class="text-gray-700">การตั้งค่า</span>
476
+ </div>
477
+ <i data-feather="chevron-right" class="w-5 h-5 text-gray-400"></i>
478
+ </button>
479
+ <button class="w-full px-4 py-3 flex items-center justify-between hover:bg-gray-50 transition">
480
+ <div class="flex items-center space-x-3">
481
+ <i data-feather="log-out" class="w-5 h-5 text-gray-600"></i>
482
+ <span class="text-gray-700">ออกจากระบบ</span>
483
+ </div>
484
+ <i data-feather="chevron-right" class="w-5 h-5 text-gray-400"></i>
485
+ </button>
486
+ </div>
487
+ </div>
488
+ </section>
489
+ </main>
490
+
491
+ <!-- Floating Agent Button -->
492
+ <button class="fixed bottom-24 right-4 w-14 h-14 bg-blue-500 rounded-full shadow-lg flex items-center justify-center hover:bg-blue-600 transition z-40" onclick="openAgentChat()">
493
+ <i data-feather="message-circle" class="w-6 h-6 text-white"></i>
494
+ </button>
495
+
496
+ <!-- Bottom Navigation -->
497
+ <nav class="fixed bottom-0 left-0 right-0 bg-white border-t z-40">
498
+ <div class="flex justify-around items-center py-2">
499
+ <button class="nav-item flex flex-col items-center p-2 text-green-600" onclick="showSection('dashboard')">
500
+ <i data-feather="home" class="w-5 h-5 mb-1"></i>
501
+ <span class="text-xs">หน้าหลัก</span>
502
+ </button>
503
+ <button class="nav-item flex flex-col items-center p-2 text-gray-500" onclick="showSection('restoration')">
504
+ <i data-feather="refresh-cw" class="w-5 h-5 mb-1"></i>
505
+ <span class="text-xs">ฟื้นฟู</span>
506
+ </button>
507
+ <button class="nav-item flex flex-col items-center p-2 text-gray-500" onclick="showSection('symptom-tracker')">
508
+ <i data-feather="activity" class="w-5 h-5 mb-1"></i>
509
+ <span class="text-xs">ติดตาม</span>
510
+ </button>
511
+ <button class="nav-item flex flex-col items-center p-2 text-gray-500" onclick="showSection('products')">
512
+ <i data-feather="shopping-bag" class="w-5 h-5 mb-1"></i>
513
+ <span class="text-xs">สั่งซื้อ</span>
514
+ </button>
515
+ <button class="nav-item flex flex-col items-center p-2 text-gray-500" onclick="showSection('profile')">
516
+ <i data-feather="user" class="w-5 h-5 mb-1"></i>
517
+ <span class="text-xs">โปรไฟล์</span>
518
+ </button>
519
+ </div>
520
+ </nav>
521
+
522
+ <script src="script.js"></script>
523
+ <script>feather.replace();</script>
524
+ <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
525
+ </body>
526
+ </html>
script.js ADDED
@@ -0,0 +1,215 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // Navigation functionality
2
+ function showSection(sectionId) {
3
+ // Hide all sections
4
+ document.querySelectorAll('.page-section').forEach(section => {
5
+ section.classList.remove('active');
6
+ });
7
+
8
+ // Show selected section
9
+ document.getElementById(sectionId).classList.add('active');
10
+
11
+ // Update navigation items
12
+ document.querySelectorAll('.nav-item').forEach(item => {
13
+ item.classList.remove('text-green-600');
14
+ item.classList.add('text-gray-500');
15
+ });
16
+
17
+ // Find and highlight active nav item
18
+ event.currentTarget.classList.remove('text-gray-500');
19
+ event.currentTarget.classList.add('text-green-600');
20
+ }
21
+
22
+ // Quantity management
23
+ function increaseQuantity(productId) {
24
+ const qtyElement = document.getElementById(`qty-${productId}`);
25
+ let currentQty = parseInt(qtyElement.textContent);
26
+ qtyElement.textContent = currentQty + 1;
27
+ updateCartSummary();
28
+ }
29
+
30
+ function decreaseQuantity(productId) {
31
+ const qtyElement = document.getElementById(`qty-${productId}`);
32
+ let currentQty = parseInt(qtyElement.textContent);
33
+ if (currentQty > 1) {
34
+ qtyElement.textContent = currentQty - 1;
35
+ updateCartSummary();
36
+ }
37
+ }
38
+
39
+ function updateCartSummary() {
40
+ // Calculate total quantity and price
41
+ const quantities = [
42
+ parseInt(document.getElementById('qty-1').textContent) * 690,
43
+ parseInt(document.getElementById('qty-2').textContent) * 890,
44
+ parseInt(document.getElementById('qty-3').textContent) * 590
45
+ ];
46
+
47
+ const totalQuantity =
48
+ parseInt(document.getElementById('qty-1').textContent) +
49
+ parseInt(document.getElementById('qty-2').textContent) +
50
+ parseInt(document.getElementById('qty-3').textContent);
51
+
52
+ const totalPrice = quantities.reduce((sum, price) => sum + price, 0);
53
+
54
+ // Update cart summary if it exists
55
+ const cartSummary = document.querySelector('.fixed.bottom-20.left-0.right-0');
56
+ if (cartSummary) {
57
+ cartSummary.querySelector('.text-sm.text-gray-600').textContent = `ตะกร้า (${totalQuantity} รายการ)`;
58
+ cartSummary.querySelector('.text-xl.font-bold').textContent = `฿${totalPrice.toLocaleString()}`;
59
+ }
60
+ }
61
+
62
+ // Symptom tracking
63
+ document.addEventListener('DOMContentLoaded', function() {
64
+ const symptomSliders = document.querySelectorAll('input[type="range"]');
65
+ symptomSliders.forEach(slider => {
66
+ slider.addEventListener('input', function() {
67
+ // Update visual feedback based on slider value
68
+ const value = this.value;
69
+ const emojiContainer = this.parentElement;
70
+ const emojis = emojiContainer.querySelectorAll('span.text-2xl');
71
+
72
+ if (value < 33) {
73
+ emojis[0].textContent = '😢';
74
+ emojis[1].textContent = '😐';
75
+ } else if (value < 66) {
76
+ emojis[0].textContent = '😐';
77
+ emojis[1].textContent = '🙂';
78
+ } else {
79
+ emojis[0].textContent = '🙂';
80
+ emojis[1].textContent = '😊';
81
+ }
82
+ });
83
+ });
84
+
85
+ // Initialize tooltips and interactions
86
+ initializeTooltips();
87
+ });
88
+
89
+ // Agent chat functionality
90
+ function openAgentChat() {
91
+ // Create modal
92
+ const modal = document.createElement('div');
93
+ modal.className = 'fixed inset-0 bg-black bg-opacity-50 flex items-end justify-center z-50';
94
+ modal.innerHTML = `
95
+ <div class="bg-white w-full max-w-md rounded-t-3xl p-6 animate-slide-up">
96
+ <div class="flex items-center justify-between mb-4">
97
+ <h3 class="text-lg font-semibold text-gray-800">ปรึกษาผู้ดูแล</h3>
98
+ <button onclick="closeModal(this)" class="text-gray-500 hover:text-gray-700">
99
+ <i data-feather="x" class="w-6 h-6"></i>
100
+ </button>
101
+ </div>
102
+ <div class="bg-gray-50 rounded-xl p-4 mb-4">
103
+ <div class="flex items-center space-x-3 mb-3">
104
+ <div class="w-10 h-10 bg-blue-500 rounded-full flex items-center justify-center">
105
+ <i data-feather="user" class="w-5 h-5 text-white"></i>
106
+ </div>
107
+ <div>
108
+ <p class="font-medium text-gray-800">คุณมานี ผู้ดูแลพิเศษ</p>
109
+ <p class="text-xs text-green-600">ออนไลน์</p>
110
+ </div>
111
+ </div>
112
+ <p class="text-sm text-gray-700">สวัสดีครับ/ค่ะ มีอะไรให้ช่วยเหรอครับ/คะ</p>
113
+ </div>
114
+ <div class="space-y-2">
115
+ <button class="w-full text-left bg-gray-100 rounded-lg p-3 hover:bg-gray-200 transition">
116
+ <p class="text-sm font-medium">สอบถามเกี่ยวกับผลิตภัณฑ์</p>
117
+ </button>
118
+ <button class="w-full text-left bg-gray-100 rounded-lg p-3 hover:bg-gray-200 transition">
119
+ <p class="text-sm font-medium">ปรึกษาเรื่องอาการ</p>
120
+ </button>
121
+ <button class="w-full text-left bg-gray-100 rounded-lg p-3 hover:bg-gray-200 transition">
122
+ <p class="text-sm font-medium">ปรับแผนการฟื้นฟู</p>
123
+ </button>
124
+ </div>
125
+ </div>
126
+ `;
127
+
128
+ document.body.appendChild(modal);
129
+ feather.replace();
130
+ }
131
+
132
+ function closeModal(element) {
133
+ element.closest('.fixed').remove();
134
+ }
135
+
136
+ // Initialize tooltips and micro-interactions
137
+ function initializeTooltips() {
138
+ // Add ripple effect to buttons
139
+ document.querySelectorAll('button').forEach(button => {
140
+ button.addEventListener('click', function(e) {
141
+ const ripple = document.createElement('span');
142
+ const rect = this.getBoundingClientRect();
143
+ const size = Math.max(rect.width, rect.height);
144
+ const x = e.clientX - rect.left - size / 2;
145
+ const y = e.clientY - rect.top - size / 2;
146
+
147
+ ripple.style.width = ripple.style.height = size + 'px';
148
+ ripple.style.left = x + 'px';
149
+ ripple.style.top = y + 'px';
150
+ ripple.classList.add('ripple');
151
+
152
+ this.appendChild(ripple);
153
+
154
+ setTimeout(() => {
155
+ ripple.remove();
156
+ }, 600);
157
+ });
158
+ });
159
+
160
+ // Lazy load images
161
+ const images = document.querySelectorAll('img');
162
+ const imageObserver = new IntersectionObserver((entries, observer) => {
163
+ entries.forEach(entry => {
164
+ if (entry.isIntersecting) {
165
+ const img = entry.target;
166
+ img.classList.add('fade-in');
167
+ observer.unobserve(img);
168
+ }
169
+ });
170
+ });
171
+
172
+ images.forEach(img => imageObserver.observe(img));
173
+ }
174
+
175
+ // Add slide-up animation
176
+ const style = document.createElement('style');
177
+ style.textContent = `
178
+ @keyframes slide-up {
179
+ from {
180
+ transform: translateY(100%);
181
+ }
182
+ to {
183
+ transform: translateY(0);
184
+ }
185
+ }
186
+ .animate-slide-up {
187
+ animation: slide-up 0.3s ease-out;
188
+ }
189
+ .ripple {
190
+ position: absolute;
191
+ border-radius: 50%;
192
+ background: rgba(255, 255, 255, 0.5);
193
+ transform: scale(0);
194
+ animation: ripple-animation 0.6s ease-out;
195
+ pointer-events: none;
196
+ }
197
+ @keyframes ripple-animation {
198
+ to {
199
+ transform: scale(4);
200
+ opacity: 0;
201
+ }
202
+ }
203
+ .fade-in {
204
+ animation: fadeIn 0.5s ease-in;
205
+ }
206
+ @keyframes fadeIn {
207
+ from { opacity: 0; }
208
+ to { opacity: 1; }
209
+ }
210
+ button {
211
+ position: relative;
212
+ overflow: hidden;
213
+ }
214
+ `;
215
+ document.head.appendChild(style);
style.css CHANGED
@@ -1,28 +1,142 @@
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
+ @import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');
2
+
3
+ * {
4
+ font-family: 'Prompt', sans-serif;
5
+ }
6
+
7
+ .page-section {
8
+ display: none;
9
+ }
10
+
11
+ .page-section.active {
12
+ display: block;
13
+ }
14
+
15
+ .nav-item.active {
16
+ color: #16a34a;
17
+ }
18
+
19
+ /* Custom scrollbar */
20
+ ::-webkit-scrollbar {
21
+ width: 6px;
22
+ }
23
+
24
+ ::-webkit-scrollbar-track {
25
+ background: #f1f1f1;
26
+ }
27
+
28
+ ::-webkit-scrollbar-thumb {
29
+ background: #888;
30
+ border-radius: 3px;
31
+ }
32
+
33
+ ::-webkit-scrollbar-thumb:hover {
34
+ background: #555;
35
+ }
36
+
37
+ /* Smooth transitions */
38
+ * {
39
+ transition: all 0.3s ease;
40
+ }
41
+
42
+ /* Range slider styling */
43
+ input[type="range"] {
44
+ -webkit-appearance: none;
45
+ appearance: none;
46
+ background: transparent;
47
+ cursor: pointer;
48
+ }
49
+
50
+ input[type="range"]::-webkit-slider-track {
51
+ background: #e5e7eb;
52
+ height: 6px;
53
+ border-radius: 3px;
54
+ }
55
+
56
+ input[type="range"]::-webkit-slider-thumb {
57
+ -webkit-appearance: none;
58
+ appearance: none;
59
+ background: #16a34a;
60
+ height: 20px;
61
+ width: 20px;
62
+ border-radius: 50%;
63
+ margin-top: -7px;
64
+ }
65
+
66
+ input[type="range"]::-moz-range-track {
67
+ background: #e5e7eb;
68
+ height: 6px;
69
+ border-radius: 3px;
70
+ }
71
+
72
+ input[type="range"]::-moz-range-thumb {
73
+ background: #16a34a;
74
+ height: 20px;
75
+ width: 20px;
76
+ border-radius: 50%;
77
+ border: none;
78
  }
79
 
80
+ /* Animation for slide in */
81
+ @keyframes slideIn {
82
+ from {
83
+ transform: translateX(100%);
84
+ opacity: 0;
85
+ }
86
+ to {
87
+ transform: translateX(0);
88
+ opacity: 1;
89
+ }
90
  }
91
 
92
+ .page-section.active {
93
+ animation: slideIn 0.3s ease-out;
 
 
 
94
  }
95
 
96
+ /* Floating button pulse animation */
97
+ @keyframes pulse {
98
+ 0% {
99
+ box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
100
+ }
101
+ 70% {
102
+ box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
103
+ }
104
+ 100% {
105
+ box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
106
+ }
107
  }
108
 
109
+ .fixed.bottom-24.right-4 {
110
+ animation: pulse 2s infinite;
111
  }
112
+
113
+ /* Card hover effects */
114
+ .hover\:shadow-lg:hover {
115
+ transform: translateY(-2px);
116
+ box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
117
+ }
118
+
119
+ /* Progress bar animation */
120
+ @keyframes progressAnimation {
121
+ from {
122
+ width: 0;
123
+ }
124
+ }
125
+
126
+ .bg-green-500[style*="width"] {
127
+ animation: progressAnimation 1s ease-out;
128
+ }
129
+
130
+ /* Notification badge */
131
+ @keyframes bounce {
132
+ 0%, 100% {
133
+ transform: translateY(0);
134
+ }
135
+ 50% {
136
+ transform: translateY(-3px);
137
+ }
138
+ }
139
+
140
+ .w-2.h-2.bg-red-500 {
141
+ animation: bounce 1.5s infinite;
142
+ }