import{j as e}from"./index-D9pJRAs5.js";import{ac as n,b8 as x,bA as m}from"./ui-CtYVlq7P.js";const b=({label:o,value:t,icon:l,trend:r,trendDirection:s="neutral",gradient:d,subtext:a})=>{const i=s==="up"?n:s==="down"?x:m;return e.jsxs("div",{className:`relative overflow-hidden rounded-2xl p-6 transition-all duration-300 hover:scale-[1.02] hover:shadow-sm bg-gradient-to-br ${d} group border border-white/10 shadow-none`,children:[e.jsx("div",{className:"absolute top-0 right-0 w-32 h-32 bg-white/10 rounded-full -mr-16 -mt-16 group-hover:scale-110 transition-transform duration-500 blur-2xl"}),e.jsx("div",{className:"absolute bottom-0 left-0 w-24 h-24 bg-black/5 rounded-full -ml-12 -mb-12 blur-xl"}),e.jsxs("div",{className:"relative z-10",children:[e.jsxs("div",{className:"flex justify-between items-start mb-4",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-white/80 text-xs font-bold uppercase tracking-wider mb-1",children:o}),e.jsx("h3",{className:"text-3xl sm:text-4xl font-black text-white tracking-tight leading-none drop-shadow-sm",children:typeof t=="number"?t.toLocaleString():t})]}),l&&e.jsx("div",{className:"p-3 bg-white/20 backdrop-blur-md rounded-xl shadow-inner border border-white/10 flex-shrink-0",children:e.jsx(l,{className:"h-6 w-6 text-white"})})]}),(r||a)&&e.jsxs("div",{className:"flex items-center gap-2 mt-auto",children:[r&&e.jsxs("div",{className:`flex items-center gap-1 px-2 py-1 rounded-lg bg-white/15 backdrop-blur-sm border border-white/10 ${s==="up"?"text-emerald-100":s==="down"?"text-rose-100":"text-slate-100"}`,children:[e.jsx(i,{size:14}),e.jsx("span",{className:"text-xs font-bold",children:r})]}),a&&e.jsx("span",{className:"text-white/70 text-xs font-medium",children:a})]})]})]})};export{b as S};
