import type { Metadata, Viewport } from "next";
import "./globals.css";
import { Providers } from "./providers";
import { Navbar } from "@/components/layout/Navbar";
import { Footer } from "@/components/layout/Footer";
import { ChatbotWidget } from "@/components/ui/ChatbotWidget";

export const viewport: Viewport = {
  width: "device-width",
  initialScale: 1,
};

export const metadata: Metadata = {
  title: "AetherSoft Innovations | Innovation Beyond Limits",
  description:
    "High-performance corporate technology partner for SMEs & Startups. Specialized in Next.js web applications, mobile apps, digital marketing, and enterprise SaaS products including PharmaCore and TaleemiNizaam.",
  keywords: [
    "AetherSoft Innovations",
    "Web Development Pakistan",
    "PharmaCore ERP",
    "SaaS Development",
    "Mobile Apps",
    "SEO Marketing",
    "Next.js Developer Karachi"
  ],
  authors: [{ name: "AetherSoft Innovations" }],
  icons: {
    icon: "/assets/logo/logo.png",
    apple: "/assets/logo/logo.png",
  },
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en" suppressHydrationWarning>
      <body className="min-h-screen bg-background font-sans text-foreground antialiased selection:bg-[#024d37] selection:text-white">
        <Providers>
          <div className="relative flex min-h-screen flex-col">
            <Navbar />
            <main className="flex-1">{children}</main>
            <Footer />
            <ChatbotWidget />
          </div>
        </Providers>
      </body>
    </html>
  );
}
