/* ==========================================================================
   Global splash loader - shown while the Blazor Server circuit connects
   ========================================================================== */
#global-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.1rem;
    background: #0f1420;
    transition: opacity .4s ease, visibility .4s ease;
}

#global-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.mlm-spinner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 5px solid rgba(255,255,255,0.15);
    border-top-color: #258cfb;
    animation: mlm-spin .9s linear infinite;
}

.mlm-spinner.mlm-spinner-sm {
    width: 30px;
    height: 30px;
    border-width: 3px;
}

.mlm-loader-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
}

.mlm-loader-brand img {
    width: 44px;
    height: 44px;
    animation: mlm-pulse 1.6s ease-in-out infinite;
    background-color:white;
    padding:5px;
    border-radius: 50px
}

.mlm-loader-text {
    color: #e5e9f2;
    font-size: .95rem;
    letter-spacing: .05em;
    animation: mlm-pulse 1.4s ease-in-out infinite;
}

@keyframes mlm-spin {
    to { transform: rotate(360deg); }
}

@keyframes mlm-pulse {
    0%, 100% { opacity: .55; }
    50% { opacity: 1; }
}

/* ==========================================================================
   Slim top progress bar shown during in-app (Blazor) navigation
   ========================================================================== */
#nav-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    z-index: 9998;
    background: transparent;
    pointer-events: none;
}

#nav-progress::before {
    content: "";
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #258cfb, #26d0ce);
    box-shadow: 0 0 8px rgba(37,140,251,.7);
    transition: width .2s ease, opacity .3s ease;
    opacity: 0;
}

#nav-progress.active::before {
    width: 85%;
    opacity: 1;
    transition: width 1.1s ease, opacity .2s ease;
}

/* ==========================================================================
   Inline page/section loader used inside pages while data is fetched
   ========================================================================== */
.mlm-inline-loader {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 2rem 0;
    color: #6c757d;
}

.mlm-inline-loader .mlm-dot-flashing {
    position: relative;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #258cfb;
    color: #258cfb;
    animation: mlm-dot-flashing 1s infinite linear alternate;
    animation-delay: .5s;
}

.mlm-inline-loader .mlm-dot-flashing::before,
.mlm-inline-loader .mlm-dot-flashing::after {
    content: "";
    display: inline-block;
    position: absolute;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #258cfb;
}

.mlm-inline-loader .mlm-dot-flashing::before {
    left: -15px;
    animation: mlm-dot-flashing 1s infinite alternate;
    animation-delay: 0s;
}

.mlm-inline-loader .mlm-dot-flashing::after {
    left: 15px;
    animation: mlm-dot-flashing 1s infinite alternate;
    animation-delay: 1s;
}

@keyframes mlm-dot-flashing {
    0% { background-color: #258cfb; }
    50%, 100% { background-color: rgba(37,140,251,.25); }
}

/* ==========================================================================
   Route content fade-in transition
   ========================================================================== */
.content {
    animation: mlm-fade-in .45s ease both;
}

@keyframes mlm-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
