"use client"

import { Loader2 } from "lucide-react"

export default function Loading() {
  return (
    <div className="min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 dark:from-slate-900 dark:to-slate-800 flex items-center justify-center p-4">
      <div className="bg-white dark:bg-slate-800/90 rounded-2xl shadow-xl border border-slate-200 dark:border-slate-700 p-8 sm:p-10 text-center max-w-sm w-full">
        <div className="flex justify-center mb-4">
          <div className="rounded-full bg-blue-50 dark:bg-blue-900/30 p-4">
            <Loader2 className="h-10 w-10 text-blue-600 dark:text-blue-400 animate-spin" />
          </div>
        </div>
        <p className="text-lg font-semibold text-slate-800 dark:text-slate-200 mb-1">Loading builder</p>
        <p className="text-sm text-slate-500 dark:text-slate-400">Getting things ready...</p>
        <div className="mt-4 h-1.5 w-full rounded-full bg-slate-200 dark:bg-slate-700 overflow-hidden">
          <div className="h-full w-1/3 rounded-full bg-blue-500 animate-pulse" style={{ animationDuration: "1.5s" }} />
        </div>
      </div>
    </div>
  )
}
