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

body {
  @apply bg-ink-950 text-slate-200 antialiased;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  @apply bg-ink-600 rounded;
}

.card {
  @apply bg-ink-900 border border-ink-700 rounded-xl;
}

.table-base {
  @apply w-full text-sm;
}
.table-base thead th {
  @apply text-left text-xs font-semibold uppercase tracking-wider text-slate-500 px-4 py-3 border-b border-ink-700;
}
.table-base tbody td {
  @apply px-4 py-3 border-b border-ink-800;
}
.table-base tbody tr:hover {
  @apply bg-ink-850;
}

.input-base {
  @apply bg-ink-950 border border-ink-600 rounded-lg px-3 py-2 text-sm text-slate-200 focus:outline-none focus:border-accent;
}

/* Mobile-first: comfortable touch targets (44px+) on coarse pointers */
@media (pointer: coarse) {
  button,
  a[href],
  input,
  select {
    min-height: 44px;
  }
  .table-base tbody td {
    @apply py-4;
  }
}

/* Accessibility: respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@keyframes fadeup {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
