import { Skeleton } from "@/components/atoms/loading-skeleton";

export default function VpnConfigureLoading() {
  return (
    <div className="container mx-auto px-4 py-12 space-y-8 animate-in fade-in duration-300">
      {/* Steps indicator */}
      <div className="flex justify-center gap-4">
        {Array.from({ length: 4 }).map((_, i) => (
          <div key={i} className="flex items-center gap-2">
            <Skeleton className="h-8 w-8 rounded-full" />
            {i < 3 && <Skeleton className="h-0.5 w-12" />}
          </div>
        ))}
      </div>

      {/* Title */}
      <div className="text-center space-y-2">
        <Skeleton className="h-8 w-44 mx-auto" />
        <Skeleton className="h-4 w-64 max-w-full mx-auto" />
      </div>

      {/* Form card */}
      <div className="max-w-2xl mx-auto">
        <div className="bg-card border border-border rounded-2xl p-6 md:p-8 space-y-6">
          {/* VPN plan options */}
          <div className="space-y-4">
            {Array.from({ length: 2 }).map((_, i) => (
              <div key={i} className="border border-border rounded-xl p-4 flex items-center gap-4">
                <Skeleton className="h-5 w-5 rounded-full" />
                <div className="flex-1 space-y-2">
                  <Skeleton className="h-5 w-32" />
                  <Skeleton className="h-4 w-48" />
                </div>
                <Skeleton className="h-6 w-20" />
              </div>
            ))}
          </div>

          {/* Form fields */}
          <div className="space-y-4 pt-4 border-t border-border">
            <div className="space-y-2">
              <Skeleton className="h-4 w-28" />
              <Skeleton className="h-10 w-full rounded-lg" />
            </div>
            <div className="space-y-2">
              <Skeleton className="h-4 w-28" />
              <Skeleton className="h-10 w-full rounded-lg" />
            </div>
          </div>

          {/* Button */}
          <Skeleton className="h-12 w-full rounded-lg" />
        </div>
      </div>
    </div>
  );
}
