/* Small overrides layered on top of the daisyUI/Tailwind CDN build.
   Kept intentionally tiny and free of Tailwind's `@apply` (this file is a
   plain linked stylesheet, not processed by the Tailwind browser build -
   only class names used directly in HTML, or a `<style
   type="text/tailwindcss">` block, get compiled). Active-nav-link styling
   is instead computed server-side with plain daisyUI utility classes -
   see partials/sidebar.html.

   Note: htmx already injects its own default CSS for `.htmx-indicator`
   (hidden normally, shown while `.htmx-request` is present on itself or
   an ancestor) - no need to redefine that here. The two rules below are
   genuinely additional behavior, not duplicates of htmx's built-ins. */

/* Hide an element specifically *while* its containing htmx-triggering
   element is mid-request - e.g. swapping an icon for a spinner. */
.htmx-request .gw-hide-during-request {
  display: none;
}

/* Dim (not hide) a whole panel while a request affecting it is in
   flight, so a table/list doesn't visually "flash" empty between swaps. */
.htmx-request.gw-fade-on-request,
.htmx-request .gw-fade-on-request {
  opacity: 0.5;
  transition: opacity 100ms ease-in-out;
}
