import type { Metadata } from "next";
import { Inter } from "next/font/google";
import QueryProvider from "@/providers/QueryProvider";
import ThemeInitializer from "@/components/layout/ThemeInitializer";
import "./globals.css";

const inter = Inter({
  variable: "--font-inter",
  subsets: ["latin"],
  display: "swap",
});

export const metadata: Metadata = {
  title: "Divisi Metrics",
  description: "Music publishing royalty analytics dashboard",
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en" className={`${inter.variable} h-full antialiased`} data-theme="dark">
      <body className="min-h-full flex flex-col font-sans bg-divisi-bg text-divisi-text-primary">
        <QueryProvider>
          <ThemeInitializer />
          {children}
        </QueryProvider>
      </body>
    </html>
  );
}
