Create a fully responsive single-page web application named "خطتي" (My Plan) using…
- User
Create a fully responsive single-page web application named "خطتي" (My Plan) using React, Tailwind CSS, and TypeScript. The application is a specialized study planner for Jordanian students (Grades: 9th 🌱, 10th 🌿, 11th 🔥, 12th/Tawjihi ⚡).
The UI design must be extremely clean, modern, and high-fidelity. Color Palette & Hierarchy:
- Base/Backgrounds: Pure White (#FFFFFF) and very soft, clean light-gray gradients for a crisp, spacious feel.
- Primary Elements/Accents: Premium Rich Gold (#D4AF37) for headers, primary borders, and main thematic components.
- Secondary Highlights: Vibrant Sky Blue (#00BFFF) for interactive states, selection glows, progress fills, and active checklist components.
Key UX/UI Flow & Multi-Step Wizard:
- Step 1: Grade Selection — Large modern white cards using English grade titles (9th, 10th, 11th, 12th) with their respective emojis. Clicking a card auto-selects and highlights it with a golden border and a sky-blue glowing shadow or checkmark.
- Step 2: Semester Selection — Clear white/gold buttons for First Semester / Second Semester.
- Step 3: School Status & Timing — Ask the user: "Do you have school now?" If "Yes", display a responsive slider or time-range picker to let them define their exact school hours (e.g., 8:00 AM to 2:00 PM). If "No" (Break/Vacation), omit school hours from the calculation completely.
- Step 4: Subject & Unit Selection — Show the curriculum subjects. Crucially, the default state must be EMPTY (no units selected). Provide "Select All" and "Deselect All" quick buttons for each subject.
- Complete Curriculum Data (Jordan 2026 Curriculum): Ensure all official subjects are included, especially computer science (حاسوب) for 9th/10th, and History (تاريخ), Islamic Studies (تربية إسلامية), Geography (جغرافيا), and advanced Computer Science for 11th/12th.
- Step 5: Study Duration & Urgency Slider — A horizontal range slider from 1 day to 90 days. Fix any text-direction bugs so that "1 يوم 🔥" is properly on the left and "90 يوم 😌" is on the right.
- Step 6: Free Time Preference (Grades 9-10 Only) — Ask if they want daily free time.
Smart Algorithm for Study Hours & Free Time:
- Study Time Thresholds:
- Grades 9-10: Min 2 hours normal, 3 hours tight, 4 hours emergency. Max 5-6 hours.
- Grades 11-12: Strictly min 4 hours normal, 5 hours tight, 6 hours emergency. Max 12 hours (if 1-2 days left with an entire textbook).
- Free Time Calculation:
- Grades 9-10: Max 6h (No school + >10 days left), 4h (School + >10 days left), 1-2h (School + 5-10 days left), 0h emergency (<=5 days left).
- Grades 11-12: Same logic but subtract 2 hours (Max 4h, 2h, 0h, 0h).
The Main Dashboard (3-Tab Layout): Once the plan is generated, save it to localStorage (using prefix ) and show a dashboard with 3 main tabs:
Assistant