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

@layer base {
    html { -webkit-text-size-adjust: 100%; }
    body { font-family: 'Hind Siliguri', ui-sans-serif, system-ui, sans-serif; }
    [x-cloak] { display: none !important; }
    /* 16px+ stops iOS from zooming into inputs */
    input, select, textarea { font-size: 16px; }
}

@layer components {
    .btn      { @apply inline-flex items-center justify-center gap-2 rounded-lg px-4 min-h-11 font-semibold transition active:scale-[.98] disabled:opacity-50 disabled:pointer-events-none; }
    .btn-primary { @apply btn bg-teal-700 text-white hover:bg-teal-800; }
    .btn-ghost   { @apply btn bg-white border border-slate-300 text-slate-700 hover:bg-slate-50; }
    .input    { @apply w-full min-h-11 rounded-lg border border-slate-300 bg-white px-3 focus:border-teal-600 focus:ring-1 focus:ring-teal-600; }
    .label    { @apply block text-sm font-medium text-slate-600 mb-1; }
    .card     { @apply rounded-xl bg-white border border-slate-200 p-4; }
    /* sticky action bar above the bottom nav on phones */
    .action-bar { @apply fixed inset-x-0 bottom-[calc(3.5rem+env(safe-area-inset-bottom))] md:static md:bottom-auto z-30 bg-white border-t border-slate-200 p-3 md:border-0 md:p-0; }
}

@media print {
    nav, aside, header, .no-print { display: none !important; }
    main { padding: 0 !important; }
}
