/* Light mode (default) */
:root {
    --bg_color: #FFFFFF;
    --secondary_bg_color: #F1F6F9;
}

/* Dark mode (auto-detected, pure CSS) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg_color: #181818;
        --secondary_bg_color: #212121;
    }
}

root {
    /* just swap these variables to recolor */
}

/*.appLoader {*/
/*}*/

#loader_inner {
    width: 88px;
    height: 88px;
}

/* thin outer ring with a sweeping dash animation */
.ring {
    stroke: var(--secondary_bg_color);
    stroke-width: 4;
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 263; /* 2πr ≈ 2*3.14*42 */
    stroke-dashoffset: 0;
}

@keyframes dash {
    0% {
        stroke-dashoffset: 263;
    }
    50% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -263;
    }
}

/* group of arrow markers spinning around the center */
.arrows {
    fill: var(--secondary_bg_color);
    transform-origin: 50% 50%;
    animation: spin 6s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* pulsing inner circle */
.core {
    fill: var(--bg_color);
    transform-origin: 50% 50%;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.appLoader {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: var(--bg_color);
    z-index: 100;
    opacity: 1;
    will-change: transform;
    transform: translateZ(0);
    transition: opacity 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.fading {
    opacity: 0;
}
