/* static/css/admin-ui.css – shared styles for HTMX/Alpine behaviour */

/* Hide Alpine-controlled elements until Alpine has initialised */
[x-cloak] { display: none !important; }

/* HTMX request indicators: hidden until a request is in flight */
.htmx-indicator { opacity: 0; transition: opacity .15s ease-in; pointer-events: none; }
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator { opacity: 1; }

/* Dim a region while it is being refreshed */
.htmx-region { position: relative; transition: opacity .15s; }
.htmx-region.htmx-request,
.htmx-request > .htmx-region { opacity: .55; }

/* Disable buttons that triggered a request (pair with hx-disabled-elt="this") */
button[disabled].htmx-request { cursor: progress; }

/* Brief highlight for rows/cards replaced by HTMX */
@keyframes hx-flash { from { background-color: #fff3cd; } to { background-color: transparent; } }
.htmx-added, .hx-flash { animation: hx-flash 1.2s ease-out; }

/* Live field feedback under inputs */
.field-feedback { min-height: 1.1em; font-size: .8rem; margin-top: 4px; }
