/* Navegação parcial: shell mínimo compartilhado por todas as páginas. */
#rw-htmx-page {
    display: contents;
}

#rw-htmx-indicator {
    align-items: center;
    background: rgba(15, 23, 42, .16);
    inset: 0;
    justify-content: center;
    padding: 1.25rem;
    pointer-events: auto;
    position: fixed;
    z-index: 1095;
}

#rw-htmx-indicator:not([hidden]) {
    display: flex;
}

.rw-htmx-indicator__content {
    align-items: center;
    animation: rw-htmx-indicator-in 150ms ease-out both;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(99, 102, 241, .16);
    border-radius: 1rem;
    box-shadow: 0 16px 40px rgba(17, 24, 39, .18);
    color: var(--bs-primary, #6366f1);
    display: flex;
    flex-direction: column;
    gap: .65rem;
    min-width: 8.5rem;
    padding: 1.15rem 1.4rem;
}

.rw-htmx-indicator__content .spinner-border {
    height: 1.75rem;
    width: 1.75rem;
}

.rw-htmx-indicator__label {
    color: var(--bs-body-color, #374151);
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1;
}

@keyframes rw-htmx-indicator-in {
    from {
        opacity: 0;
        transform: translateY(.35rem) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

body.rw-htmx-loading #rw-htmx-page > * {
    pointer-events: none;
}

.dark-mode #rw-htmx-indicator {
    background: rgba(2, 6, 23, .32);
}

.dark-mode .rw-htmx-indicator__content {
    background: rgba(28, 24, 48, .96);
    border-color: rgba(255, 255, 255, .14);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
}

.dark-mode .rw-htmx-indicator__label {
    color: rgba(255, 255, 255, .9);
}

@media (prefers-reduced-motion: reduce) {
    .rw-htmx-indicator__content {
        animation: none;
    }
}
