<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>PX360 Dashboard - Blue Edition</title>
    <link rel="stylesheet" href="/static/dist/css/tailwind.css">
    <script src="https://unpkg.com/lucide@latest"></script>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="/static/vendor/fonts/noto-kufi-arabic/arabic.css">
    <style>
        body { font-family: 'Inter', 'Noto Kufi Arabic', sans-serif; }
        [dir="rtl"] body,
        [dir="rtl"] input,
        [dir="rtl"] textarea,
        [dir="rtl"] select,
        [dir="rtl"] button {
            font-family: 'Noto Kufi Arabic', sans-serif;
        }
    </style>
</head>
<body class="bg-[#F8FAFC] text-slate">

    <div class="flex h-screen">
        <aside class="w-64 border-r border-light flex flex-col p-6 bg-white">
            <div class="flex items-center gap-3 mb-10">
                <div class="bg-light p-2 rounded-xl">
                    <i data-lucide="heart" class="text-navy w-6 h-6"></i>
                </div>
                <div>
                    <h1 class="font-bold text-xl tracking-tight text-navy">PX360</h1>
                    <p class="text-blue text-xs font-medium uppercase">Patient First</p>
                </div>
            </div>

            <nav class="space-y-2 flex-1">
                <a href="#" class="flex items-center gap-3 px-4 py-3 bg-light text-navy rounded-xl font-medium">
                    <i data-lucide="layout-dashboard" class="w-5 h-5"></i> Dashboard
                </a>
                <a href="#" class="flex items-center gap-3 px-4 py-3 text-slate hover:bg-light/50 rounded-xl transition">
                    <i data-lucide="users" class="w-5 h-5"></i> My Patients
                    <span class="ml-auto bg-navy/10 text-navy text-xs px-2 py-0.5 rounded-full">12</span>
                </a>
                <a href="#" class="flex items-center gap-3 px-4 py-3 text-slate hover:bg-light/50 rounded-xl transition">
                    <i data-lucide="message-square" class="w-5 h-5"></i> Feedback
                </a>
                <a href="#" class="flex items-center gap-3 px-4 py-3 text-slate hover:bg-light/50 rounded-xl transition">
                    <i data-lucide="pie-chart" class="w-5 h-5"></i> Insights
                </a>
            </nav>

            <div class="bg-gradient-to-br from-navy to-blue p-5 rounded-2xl text-white mt-auto shadow-lg shadow-blue/20">
                <h3 class="font-bold mb-1">Pro Plan</h3>
                <p class="text-xs text-white/80 mb-4">Your trial ends in 5 days</p>
                <button class="w-full bg-white text-navy py-2 rounded-xl font-bold text-sm shadow-sm hover:bg-light transition">Upgrade Now</button>
            </div>
        </aside>

        <main class="flex-1 overflow-y-auto p-10">
            <header class="flex justify-between items-center mb-8">
                <div>
                    <h2 class="text-3xl font-bold text-navy">Good morning, Joy! ☀️</h2>
                    <p class="text-slate mt-1">Here's how your patients are feeling today</p>
                </div>
                <div class="flex items-center gap-4">
                    <button class="p-2 text-slate hover:bg-light rounded-full transition relative">
                        <i data-lucide="bell" class="w-6 h-6"></i>
                        <span class="absolute top-2 right-2 w-2 h-2 bg-blue rounded-full border-2 border-white"></span>
                    </button>
                    <button class="bg-navy text-white px-6 py-3 rounded-2xl font-bold flex items-center gap-2 shadow-lg shadow-navy/20 hover:bg-blue transition">
                        <i data-lucide="plus" class="w-5 h-5"></i> Add Patient
                    </button>
                </div>
            </header>

            <div class="grid grid-cols-3 gap-6 mb-10">
                <div class="bg-white p-6 rounded-[2rem] shadow-sm border border-light">
                    <div class="flex justify-between items-start mb-4">
                        <div class="bg-green-100 p-2 rounded-full">
                            <i data-lucide="smile" class="text-green-500 w-6 h-6"></i>
                        </div>
                        <span class="text-green-600 text-sm font-bold bg-green-50 px-2 py-1 rounded-lg">+5%</span>
                    </div>
                    <div class="text-4xl font-bold mb-1 text-navy">96%</div>
                    <div class="text-slate text-sm font-medium mb-4">Happiness Score</div>
                    <div class="flex -space-x-2">
                        <img src="https://i.pravatar.cc/150?u=1" class="w-8 h-8 rounded-full border-2 border-white" alt="avatar">
                        <img src="https://i.pravatar.cc/150?u=2" class="w-8 h-8 rounded-full border-2 border-white" alt="avatar">
                        <img src="https://i.pravatar.cc/150?u=3" class="w-8 h-8 rounded-full border-2 border-white" alt="avatar">
                        <div class="w-8 h-8 rounded-full bg-light border-2 border-white flex items-center justify-center text-[10px] font-bold text-navy">+8</div>
                    </div>
                </div>

                <div class="bg-white p-6 rounded-[2rem] shadow-sm border border-light">
                    <div class="flex justify-between items-start mb-4">
                        <div class="bg-orange-100 p-2 rounded-full">
                            <i data-lucide="clock" class="text-orange-500 w-6 h-6"></i>
                        </div>
                        <span class="text-green-600 text-sm font-bold bg-green-50 px-2 py-1 rounded-lg">-2m</span>
                    </div>
                    <div class="text-4xl font-bold mb-1 text-navy">8m</div>
                    <div class="text-slate text-sm font-medium mb-6">Avg. Wait Time</div>
                    <div class="w-full bg-light h-2 rounded-full overflow-hidden">
                        <div class="bg-blue h-full w-[60%]"></div>
                    </div>
                </div>

                <div class="bg-white p-6 rounded-[2rem] shadow-sm border border-light">
                    <div class="flex justify-between items-start mb-4">
                        <div class="bg-light p-2 rounded-full">
                            <i data-lucide="heart" class="text-blue w-6 h-6"></i>
                        </div>
                        <span class="text-blue text-xs font-bold bg-light px-2 py-1 rounded-lg">3 new</span>
                    </div>
                    <div class="text-4xl font-bold mb-1 text-navy">24</div>
                    <div class="text-slate text-sm font-medium mb-1">Care Moments</div>
                    <p class="text-xs text-slate/60">Shared by patients today</p>
                </div>
            </div>

            <div class="grid grid-cols-3 gap-8">
                <div class="col-span-2">
                    <div class="flex justify-between items-center mb-6">
                        <h3 class="text-xl font-bold text-navy">Recent Patient Stories</h3>
                        <a href="#" class="text-blue text-sm font-bold hover:underline">View all</a>
                    </div>

                    <div class="space-y-4">
                        <div class="bg-white p-6 rounded-3xl shadow-sm border border-light">
                            <div class="flex gap-4">
                                <div class="w-12 h-12 bg-navy rounded-2xl flex items-center justify-center text-white font-bold text-xl">S</div>
                                <div class="flex-1">
                                    <div class="flex justify-between mb-2">
                                        <h4 class="font-bold text-navy">Sarah's Recovery Journey</h4>
                                        <span class="text-xs text-slate/50">2 hours ago</span>
                                    </div>
                                    <p class="text-slate text-sm italic mb-4">"The nurses made me feel so comfortable during my stay. Especially loved the evening tea service!"</p>
                                    <div class="flex gap-2">
                                        <span class="bg-yellow-50 text-yellow-600 px-3 py-1 rounded-full text-xs font-bold flex items-center gap-1">⭐ 5.0</span>
                                        <span class="bg-light text-navy px-3 py-1 rounded-full text-xs font-medium">Room 304</span>
                                        <span class="bg-blue/10 text-blue px-3 py-1 rounded-full text-xs font-medium">Surgery</span>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="bg-white p-6 rounded-3xl shadow-sm border border-light">
                            <div class="flex gap-4">
                                <div class="w-12 h-12 bg-blue rounded-2xl flex items-center justify-center text-white font-bold text-xl">M</div>
                                <div class="flex-1">
                                    <div class="flex justify-between mb-2">
                                        <h4 class="font-bold text-navy">Mike's Feedback</h4>
                                        <span class="text-xs text-slate/50">4 hours ago</span>
                                    </div>
                                    <p class="text-slate text-sm italic mb-4">"Wait time was a bit long, but Dr. Chen explained everything thoroughly. Feeling much better now!"</p>
                                    <div class="flex gap-2">
                                        <span class="bg-yellow-50 text-yellow-600 px-3 py-1 rounded-full text-xs font-bold flex items-center gap-1">⭐ 4.0</span>
                                        <span class="bg-light text-navy px-3 py-1 rounded-full text-xs font-medium">Outpatient</span>
                                        <span class="bg-blue/10 text-blue px-3 py-1 rounded-full text-xs font-medium">Cardiology</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="space-y-6">
                    <h3 class="text-xl font-bold text-navy mb-6">Quick Care Actions</h3>
                    
                    <div class="space-y-3">
                        <button class="w-full bg-white p-4 rounded-2xl border border-light flex items-center gap-4 hover:shadow-md transition text-left group">
                            <div class="bg-light p-3 rounded-xl group-hover:bg-navy/10 transition"><i data-lucide="send" class="text-navy w-5 h-5"></i></div>
                            <div>
                                <div class="font-bold text-sm text-navy">Send Check-in</div>
                                <div class="text-xs text-slate/60">Message waiting patients</div>
                            </div>
                        </button>

                        <button class="w-full bg-white p-4 rounded-2xl border border-light flex items-center gap-4 hover:shadow-md transition text-left group">
                            <div class="bg-light p-3 rounded-xl group-hover:bg-blue/10 transition"><i data-lucide="gift" class="text-blue w-5 h-5"></i></div>
                            <div>
                                <div class="font-bold text-sm text-navy">Send Comfort Kit</div>
                                <div class="text-xs text-slate/60">Blanket, tea, or snacks</div>
                            </div>
                        </button>

                        <button class="w-full bg-white p-4 rounded-2xl border border-light flex items-center gap-4 hover:shadow-md transition text-left group">
                            <div class="bg-light p-3 rounded-xl group-hover:bg-slate/10 transition"><i data-lucide="phone" class="text-slate w-5 h-5"></i></div>
                            <div>
                                <div class="font-bold text-sm text-navy">Call Family</div>
                                <div class="text-xs text-slate/60">Update on patient status</div>
                            </div>
                        </button>
                    </div>

                    <div class="bg-light/40 p-6 rounded-[2rem] border border-light mt-8">
                        <div class="flex items-center gap-2 text-navy mb-3">
                            <i data-lucide="sparkles" class="w-5 h-5 text-blue"></i>
                            <span class="font-bold text-sm uppercase">Daily Tip</span>
                        </div>
                        <p class="text-sm text-slate leading-relaxed">
                            A simple "How are you feeling?" can increase patient satisfaction by 23%.
                        </p>
                    </div>
                </div>
            </div>
        </main>
    </div>

    <script>
        lucide.createIcons();
    </script>
</body>
</html>