import React from 'react';

interface CardProps {
  children: React.ReactNode;
  className?: string;
}

export const CardHeader = ({ children, className = '' }: CardProps) => (
  <div className={`p-4 border-b border-zinc-200 dark:border-zinc-700 ${className}`}>
    {children}
  </div>
);

export const CardBody = ({ children, className = '' }: CardProps) => (
  <div className={`p-4 ${className}`}>
    {children}
  </div>
);

export const CardFooter = ({ children, className = '' }: CardProps) => (
  <div className={`p-4 border-t border-zinc-200 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800/50 ${className}`}>
    {children}
  </div>
);

const Card = ({ children, className = '' }: CardProps) => {
  return (
    <div className={`bg-white dark:bg-zinc-800 rounded-lg shadow-sm border border-zinc-200 dark:border-zinc-700 overflow-hidden ${className}`}>
      {children}
    </div>
  );
};

export default Card;