From 75909615b4d3312895b45f7bb6d72bc45137d0b1 Mon Sep 17 00:00:00 2001 From: Mannu Date: Mon, 11 May 2026 09:17:14 +0530 Subject: [PATCH] Style AI page like other pages - Add dark mode support throughout - Add consistent header with back button - Add modal dark mode styling Co-Authored-By: Claude Opus 4.7 --- src/app/ai/page.tsx | 40 +++++++++++++++++++++++++--------------- 1 file changed, 25 insertions(+), 15 deletions(-) diff --git a/src/app/ai/page.tsx b/src/app/ai/page.tsx index 87f7bd5..6c8ab76 100644 --- a/src/app/ai/page.tsx +++ b/src/app/ai/page.tsx @@ -161,17 +161,29 @@ export default function AIChatPage() { }; return ( -
+
{error && ( -
+
Error: {error}
)} + + {/* Header - same pattern as other pages */} +
+
+ +

AI Chat

+
+ +
+ {/* Sidebar */}
-
+
-

AI Chat

+

Chats

@@ -179,7 +191,7 @@ export default function AIChatPage() {
setCurrentSessionId(session.id)} - className={`p-2 rounded-lg cursor-pointer flex justify-between items-center ${session.id === currentSessionId ? "bg-rose-100" : ""}`} + className={`p-2 rounded-lg cursor-pointer flex justify-between items-center dark:text-gray-100 ${session.id === currentSessionId ? "bg-rose-100 dark:bg-rose-900" : ""}`} >
{session.title}
@@ -193,11 +205,11 @@ export default function AIChatPage() { {deleteConfirm === session.id && (
-
-

Delete this conversation?

+
+

Delete this conversation?

- +
@@ -210,28 +222,26 @@ export default function AIChatPage() { {/* Main chat */}
-
- - - {currentSession?.title || "AI Chat"} +
+ {currentSession?.title || "AI Chat"}
{currentSession?.messages.map((msg, i) => ( -
+
{msg.content}
))}
-
+
setInput(e.target.value)} onKeyDown={e => e.key === "Enter" && handleSend()} placeholder="Ask about your baby..." - className="flex-1 p-3 border rounded-lg" + className="flex-1 p-3 border rounded-lg dark:bg-gray-700 dark:text-white" disabled={loading} />