/* Styles and animations for UIComponents/LoadingIndicator.razor.
   Water-tap themed ("De Kraan"): fullscreen shows a tap filling a
   bucket, inline shows a dripping tap. Colors follow the Keen theme
   via Bootstrap CSS variables, so both themes work automatically. */

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.loading-indicator svg {
    overflow: visible;
    width: auto;
}

.loading-indicator-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
}

.loading-indicator-fullscreen svg {
    height: 130px;
}

.loading-indicator-inline {
    padding: 2.5rem 0;
}

.loading-indicator-inline svg {
    height: 110px;
}

/* The Blazor boot loader (.app-page-loader in App.razor) is itself a
   centered overlay with the logo above; let the indicator flow below it. */
.app-page-loader .loading-indicator-fullscreen {
    position: static;
}

.li-steel-stroke {
    stroke: var(--bs-gray-700, #4b5675);
}

.li-steel-fill {
    fill: var(--bs-gray-700, #4b5675);
}

/* Inline variant: tap with a drop that swells, falls and ripples */

.li-drip {
    transform-box: view-box;
    transform-origin: 83px 76px;
    animation: li-drip 2s cubic-bezier(.5, 0, .7, .4) infinite;
}

@keyframes li-drip {
    0% { transform: translateY(0) scale(.25); opacity: 1; }
    45% { transform: translateY(0) scale(1); opacity: 1; }
    80% { transform: translateY(18px) scale(1); opacity: 1; }
    84%, 100% { transform: translateY(19px) scale(1); opacity: 0; }
}

.li-ripple {
    transform-box: view-box;
    transform-origin: 83px 108px;
    animation: li-ripple 2s ease-out infinite;
}

@keyframes li-ripple {
    0%, 74% { transform: scale(.2); opacity: 0; }
    82% { opacity: .55; }
    100% { transform: scale(1.35); opacity: 0; }
}

/* Fullscreen variant: tap filling a bucket to the brim */

.li-stream {
    transform-box: view-box;
    transform-origin: 62px 40px;
    animation: li-stream 3.4s linear infinite;
}

@keyframes li-stream {
    0% { transform: scaleY(0); opacity: .85; }
    6%, 80% { transform: scaleY(1); opacity: .85; }
    86%, 100% { transform: scaleY(1); opacity: 0; }
}

.li-fill {
    transform-box: view-box;
    transform-origin: 66px 102px;
    animation: li-fill 3.4s linear infinite;
}

@keyframes li-fill {
    0% { transform: scaleY(.03); opacity: 1; }
    80%, 88% { transform: scaleY(1); opacity: 1; }
    96%, 100% { transform: scaleY(1); opacity: 0; }
}

/* Caption with pulsing ellipsis */

.li-dots span {
    animation: li-dots 1.4s infinite;
    display: inline-block;
}

.li-dots span:nth-child(2) { animation-delay: .2s; }
.li-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes li-dots {
    0%, 60%, 100% { opacity: .25; }
    30% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .loading-indicator svg *, .li-dots span {
        animation: none !important;
    }
}
