import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
import { Toaster } from "@/components/ui/toaster";

const geistSans = Geist({
  variable: "--font-geist-sans",
  subsets: ["latin"],
});

const geistMono = Geist_Mono({
  variable: "--font-geist-mono",
  subsets: ["latin"],
});

export const metadata: Metadata = {
  title: "Lab Virtual Kimia: Pengaruh Konsentrasi terhadap Laju Reaksi",
  description:
    "Simulasi interaktif pengaruh konsentrasi terhadap laju reaksi dengan visualisasi 3D, mikroskopis, teori lengkap, KPS, dan asesmen.",
  keywords: [
    "laju reaksi",
    "konsentrasi",
    "kimia",
    "lab virtual",
    "Na2S2O3",
    "HCl",
    "tumbukan",
    "energi aktivasi",
    "simulasi kimia",
  ],
  authors: [{ name: "Lab Virtual Kimia" }],
  icons: {
    icon: "https://z-cdn.chatglm.cn/z-ai/static/logo.svg",
  },
  openGraph: {
    title: "Lab Virtual Kimia: Pengaruh Konsentrasi terhadap Laju Reaksi",
    description:
      "Simulasi interaktif pengaruh konsentrasi terhadap laju reaksi dengan visualisasi 3D, mikroskopis, teori lengkap, KPS, dan asesmen.",
    type: "website",
  },
  twitter: {
    card: "summary_large_image",
    title: "Lab Virtual Kimia: Pengaruh Konsentrasi terhadap Laju Reaksi",
    description:
      "Simulasi interaktif pengaruh konsentrasi terhadap laju reaksi.",
  },
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en" suppressHydrationWarning>
      <body
        className={`${geistSans.variable} ${geistMono.variable} antialiased bg-background text-foreground`}
      >
        {children}
        <Toaster />
      </body>
    </html>
  );
}
