import 'package:flutter/material.dart';
import '../theme/kc_colors.dart';
import '../theme/kc_spacing.dart';

class KcCard extends StatelessWidget {
  final Widget child;
  final EdgeInsetsGeometry? padding;

  const KcCard({super.key, required this.child, this.padding});

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: padding ?? const EdgeInsets.all(KcSpacing.md),
      decoration: BoxDecoration(
        color: KcColors.surface,
        border: Border.all(color: KcColors.border),
        borderRadius: BorderRadius.circular(16),
        boxShadow: const [BoxShadow(blurRadius: 8, offset: Offset(0, 2), color: Color(0x11000000))],
      ),
      child: child,
    );
  }
}
