@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  html { scroll-behavior: smooth; }
  body { @apply bg-slate-100 text-slate-700; }
}

@layer components {
  .btn {
    @apply px-4 py-2 rounded text-sm font-medium;
  }
  .btn-teal {
    @apply bg-teal-600 text-white hover:bg-teal-500;
  }
  .btn-amber {
    @apply bg-amber-500 text-white hover:bg-amber-400;
  }
  .btn-red {
    @apply bg-red-500 text-white hover:bg-red-400;
  }
  .btn-ghost {
    @apply bg-white text-slate-600 border border-slate-300 hover:bg-slate-50;
  }

  .input {
    @apply w-full px-3 py-2 border border-slate-300 rounded text-sm
           focus:outline-none focus:border-teal-500 focus:ring-1 focus:ring-teal-500;
  }

  .card {
    @apply bg-white border border-slate-200 rounded;
  }

  .card-title {
    @apply text-lg font-semibold text-slate-800;
  }

  .label {
    @apply block text-sm font-medium text-slate-700 mb-1;
  }

  .page-title {
    @apply text-xl font-bold text-slate-900;
  }

  .page-subtitle {
    @apply text-sm text-slate-500;
  }

  .table-header {
    @apply text-left text-xs font-semibold text-slate-500 uppercase tracking-wider px-4 py-3;
  }

  .table-cell {
    @apply px-4 py-3 text-sm text-slate-700;
  }

  .badge {
    @apply inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium border;
  }
}
