/* =========================================================================
   WizBrand — global action loading state
   Disables an action button and shows a spinner while its request runs.
   Works for jQuery-AJAX actions (auto) and Livewire (wire:loading).
   FA-independent: the spinner is pure CSS.
   ========================================================================= */
/* =========================================================================
   This product is designed for light, and says so.
   -------------------------------------------------------------------------
   Declared here because this file is the one stylesheet all seven base
   layouts load, so it reaches every screen.

   Without it `color-scheme` computes to `normal`, which invites the browser
   and any dark-mode extension to force their own dark treatment on a UI that
   has no dark colours to offer. A user reported exactly that: the dashboard
   with a dark background and near-black text on it, unreadable, which they
   put down to a Chrome extension. The extension only turned dark mode on.

   `light` tells the browser to stop guessing. When dark mode is genuinely
   built -- across every stylesheet rather than one -- this becomes
   `light dark` and the work can begin from there.
   ========================================================================= */
:root {
    color-scheme: light;
}

.wz-busy {
    opacity: .7;
    cursor: progress !important;
    pointer-events: none;
}

/* pure-CSS spinner injected into busy buttons */
.wz-spin {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -2px;
    margin-right: .4rem;
    animation: wz-spin .6s linear infinite;
}

@keyframes wz-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .wz-spin { animation-duration: 1.4s; }
}
