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

@layer components {
  /* Panels on the night background */
  .card {
    @apply rounded-2xl border border-city-600/70 bg-city-800/80 shadow-xl shadow-black/30;
  }

  .card-title {
    @apply font-display text-sm font-bold uppercase tracking-[0.18em] text-hev-400;
  }

  .field-label {
    @apply mb-1.5 block text-sm font-semibold text-ink-muted;
  }

  .field-input {
    @apply block w-full rounded-xl border border-city-500 bg-city-950/70 px-4 py-2.5 text-base text-ink placeholder-ink-subtle
      focus:border-hev-500 focus:outline-none focus:ring-2 focus:ring-hev-500/30;
  }

  .field-error {
    @apply mt-1 text-sm font-semibold text-red-400;
  }

  .btn {
    @apply inline-flex items-center justify-center gap-2 rounded-xl px-4 py-2.5 text-sm font-bold transition
      focus:outline-none focus-visible:ring-2 focus-visible:ring-hev-400 disabled:cursor-not-allowed disabled:opacity-50;
  }

  .btn-primary {
    @apply btn bg-hev-500 text-city-950 hover:bg-hev-400;
  }

  .btn-secondary {
    @apply btn border border-city-500 bg-city-700 text-ink hover:border-city-500 hover:bg-city-600;
  }

  .btn-danger {
    @apply btn border border-red-500/40 bg-red-500/10 text-red-300 hover:bg-red-500/20;
  }

  .btn-small {
    @apply px-3 py-1.5 text-xs;
  }

  .badge {
    @apply inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-bold;
  }
}
