/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

html.is-loading,
html.is-loading * {
    cursor: progress !important;
}

html.is-loading a {
    pointer-events: none;
}

html::before {
    background: #2563eb;
    content: "";
    height: 3px;
    left: 0;
    opacity: 0;
    position: fixed;
    right: 0;
    top: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: opacity 120ms ease, transform 800ms ease;
    z-index: 9999;
}

html.is-loading::before {
    opacity: 1;
    transform: scaleX(0.75);
}

a.is-pending,
button[aria-busy="true"],
form[aria-busy="true"] input[type="submit"],
form[aria-busy="true"] button[type="submit"],
form[aria-busy="true"] button:not([type]) {
    opacity: 0.7;
    pointer-events: none;
}
