﻿/* postojeći stil */
#vsmProgress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(48,128,232,.15);
    z-index: 99999;
    display: none;
}

    #vsmProgress .bar {
        height: 100%;
        width: 0%;
        background: #3080e8; /* default */
        transition: width .2s ease;
    }

    /* label ostaje ista */
    #vsmProgress .label {
        position: fixed;
        top: 6px;
        right: 10px;
        font-size: 12px;
        color: #4a4a4a;
        background: rgba(255,255,255,.9);
        padding: 2px 6px;
        border-radius: 4px;
        display: none;
        box-shadow: 0 1px 3px rgba(0,0,0,.08);
    }

    /* ✅ različite boje bara */
    #vsmProgress.cache .bar {
        background: #4caf50; /* zelena – cache */
    }

    #vsmProgress.db .bar {
        background: #ff9800; /* narandžasta – DB */
    }

/* ✅ spinner overlay preko pivota */
#pivotWrapper {
    position: relative;
}

#pivotSpinnerOverlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.7);
    display: none; /* pokazujemo ga JS-om */
    align-items: center;
    justify-content: center;
    z-index: 50;
}

    #pivotSpinnerOverlay .spinner {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 4px solid #e0e0e0;
        border-top-color: #3080e8;
        animation: vsm-spin 0.8s linear infinite;
    }

@keyframes vsm-spin {
    to {
        transform: rotate(360deg);
    }
}
