import{b as h,j as e}from"./index-D9pJRAs5.js";import{aP as p}from"./ui-CtYVlq7P.js";const w=({title:i,subtitle:s,description:a,icon:r,action:l,gradient:n="from-indigo-600 to-purple-700"})=>{const{theme:d}=h(),o=d.mode==="dark",t=new Date,c=t.toLocaleDateString("en-US",{weekday:"long"}),x=t.toLocaleDateString("en-US",{day:"2-digit"}),m=t.toLocaleDateString("en-US",{month:"long",year:"numeric"});return e.jsxs("div",{className:`relative overflow-hidden rounded-3xl p-6 sm:p-8 mb-8 transition-all duration-500 shadow-sm group ${o?"bg-slate-900 border-slate-800":"bg-white border-indigo-100/50"} border`,children:[e.jsx("div",{className:"absolute inset-0 opacity-20 dark:opacity-40 animated-gradient"}),e.jsx("div",{className:`absolute inset-0 bg-gradient-to-br ${n} opacity-90`}),e.jsx("div",{className:"absolute inset-0 opacity-10",style:{backgroundImage:"radial-gradient(#fff 1px, transparent 1px)",backgroundSize:"24px 24px"}}),e.jsxs("div",{className:"relative z-10 flex flex-col lg:flex-row lg:items-center lg:justify-between gap-6",children:[e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx("div",{className:"p-2 rounded-xl bg-white/20 text-white backdrop-blur-md border border-white/10",children:r?e.jsx(r,{className:"h-5 w-5"}):e.jsx(p,{className:"h-5 w-5"})}),s&&e.jsx("span",{className:"text-xs font-bold uppercase tracking-[0.2em] text-white/80",children:s})]}),e.jsx("h1",{className:"text-3xl sm:text-4xl font-black tracking-tight text-white mb-2 drop-shadow-sm",children:i}),a&&e.jsx("p",{className:"text-base sm:text-lg font-medium text-white/90 max-w-2xl leading-relaxed",children:a}),l&&e.jsx("div",{className:"mt-4 flex items-center gap-3",children:l})]}),e.jsx("div",{className:"flex-shrink-0 flex items-center gap-3",children:e.jsxs("div",{className:"flex-shrink-0 flex flex-col items-center w-24 sm:w-28 rounded-2xl overflow-hidden bg-white/10 backdrop-blur-md border border-white/20 shadow-sm",children:[e.jsx("div",{className:"w-full text-center py-1.5 bg-white/20 border-b border-white/20",children:e.jsx("span",{className:"text-[10px] font-black uppercase tracking-widest text-white",children:c})}),e.jsx("div",{className:"w-full flex items-center justify-center py-3",children:e.jsx("span",{className:"text-5xl sm:text-6xl font-black text-white leading-none drop-shadow-md tabular-nums",children:x})}),e.jsx("div",{className:"w-full text-center py-1.5 bg-white/10 border-t border-white/20",children:e.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest text-white/80",children:m})})]})})]})]})};export{w as P};
