@import 'tailwindcss';

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../vendor/livewire/livewire/src/**/*.blade.php';
@source '../views/**/*.blade.php';
@source '../../app/**/*.php';

@theme {
    --font-sans: ui-sans-serif, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, system-ui, sans-serif;
    --color-brand: var(--brand, #1d4ed8);
}

@layer components {
    .btn { @apply inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-sm font-medium shadow-sm transition disabled:opacity-50 cursor-pointer; }
    .btn-primary { @apply bg-brand text-white hover:brightness-110; }
    .btn-secondary { @apply bg-white text-slate-700 ring-1 ring-slate-300 hover:bg-slate-50; }
    .btn-danger { @apply bg-white text-red-600 ring-1 ring-red-200 hover:bg-red-50; }
    .btn-sm { @apply px-2 py-1 text-xs; }
    .card { @apply rounded-lg bg-white ring-1 ring-slate-200 shadow-sm; }
    .input { @apply block w-full rounded-md border-0 px-2.5 py-1.5 text-sm text-slate-900 ring-1 ring-slate-300 focus:ring-2 focus:ring-brand focus:outline-none; }
    .label { @apply mb-1 block text-xs font-medium text-slate-600; }
    .table { @apply min-w-full divide-y divide-slate-200 text-sm; }
    .table th { @apply bg-slate-50 px-3 py-2 text-left text-xs font-semibold uppercase tracking-wide text-slate-500; }
    .table td { @apply px-3 py-2 align-top text-slate-700; }
    .link { @apply text-brand hover:underline; }
    .tab { @apply border-b-2 border-transparent px-3 py-2 text-sm font-medium text-slate-500 hover:text-slate-800 whitespace-nowrap; }
    .tab-active { @apply border-brand text-brand; }
}
