import { Building2 } from "lucide-react";

export function Loading() {
  return (
    <div className="flex items-center justify-center min-h-[400px]">
      <div className="flex flex-col items-center gap-4">
        <div className="relative">
          <div className="h-12 w-12 rounded-full border-4 border-navy-200 border-t-gold-500 animate-spin" />
          <Building2 className="absolute inset-0 m-auto h-5 w-5 text-navy-600" />
        </div>
        <p className="text-sm text-navy-500 animate-pulse">Loading...</p>
      </div>
    </div>
  );
}

export function LoadingSkeleton({ rows = 3 }: { rows?: number }) {
  return (
    <div className="space-y-4">
      {Array.from({ length: rows }).map((_, i) => (
        <div key={i} className="animate-pulse">
          <div className="h-4 bg-navy-100 rounded w-3/4 mb-2" />
          <div className="h-3 bg-navy-50 rounded w-1/2" />
        </div>
      ))}
    </div>
  );
}
