"use client";

import { Users, Briefcase, CheckCircle, XCircle, TrendingUp } from "lucide-react";
import { cn } from "@/lib/utils";

const stats = [
    {
        label: "Total Applications",
        value: "1,284",
        trend: "+12.5%",
        icon: Users,
        color: "text-blue-600",
        bg: "bg-blue-50",
    },
    {
        label: "Shortlisted",
        value: "452",
        trend: "+8.2%",
        icon: Briefcase,
        color: "text-purple-600",
        bg: "bg-purple-50",
    },
    {
        label: "Selected",
        value: "128",
        trend: "+5.1%",
        icon: CheckCircle,
        color: "text-emerald-600",
        bg: "bg-emerald-50",
    },
    {
        label: "Rejected",
        value: "24",
        trend: "-2.4%",
        icon: XCircle,
        color: "text-rose-600",
        bg: "bg-rose-50",
    },
];

export function DashboardStats() {
    return (
        <div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-4">
            {stats.map((stat) => (
                <div
                    key={stat.label}
                    className="rounded-xl border border-slate-100 bg-white p-6 shadow-sm transition-all hover:shadow-md"
                >
                    <div className="flex items-center justify-between">
                        <div className={cn("rounded-lg p-2.5", stat.bg)}>
                            <stat.icon className={cn("h-5 w-5", stat.color)} />
                        </div>
                        <div className="flex items-center gap-1 text-xs font-medium text-emerald-600">
                            <TrendingUp className="h-3 w-3" />
                            {stat.trend}
                        </div>
                    </div>
                    <div className="mt-4">
                        <p className="text-sm font-medium text-slate-500">{stat.label}</p>
                        <h3 className="text-2xl font-bold text-slate-900">{stat.value}</h3>
                    </div>
                </div>
            ))}
        </div>
    );
}
