import type { Metadata } from "next";
import type { ReactNode } from "react";
import AdminNavbar from "@/components/admin/AdminNavbar";
import AdminSidebar from "@/components/admin/AdminSidebar";

export const metadata: Metadata = {
  title: {
    default: "Dashboard | MediTransplant Admin",
    template: "%s | MediTransplant Admin",
  },
  description: "MediTransplant Medical Tourism Command Center",
  robots: { index: false, follow: false },
};

export default function AdminLayout({ children }: { children: ReactNode }) {
  return (
    <div className="min-h-screen flex flex-col bg-slate-50">
      <AdminNavbar />
      <div className="flex flex-1 overflow-hidden" style={{ height: "calc(100vh - 56px)" }}>
        <AdminSidebar />
        <main className="flex-1 overflow-y-auto admin-scroll p-4 lg:p-5">
          {children}
        </main>
      </div>
    </div>
  );
}
