/* ╔══════════════════════════════════════════════════════════════╗
   ║  TetHub — Upload Progress Bar (Global Fixed Overlay)         ║
   ╚══════════════════════════════════════════════════════════════╝ */

#uploadProgressBar {
    display: none; /* shown only during active upload via JS */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    pointer-events: none;
}

#uploadProgressBar.visible {
    display: block;
}

/* Thin shimmer line at very top */
.upl-line-track {
    height: 3px;
    background: rgba(0, 0, 0, .06);
    width: 100%;
}

.upl-line-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(
        90deg,
        var(--primary, #046fad),
        #0ea5e9 50%,
        var(--primary, #046fad)
    );
    background-size: 200% 100%;
    animation: upl-shimmer 1.8s linear infinite;
    transition: width .5s cubic-bezier(.4, 0, .2, 1);
}

@keyframes upl-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Floating pill label */
.upl-pill {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary, #fff);
    border: 1px solid var(--border-light, #e0e0e0);
    border-radius: 999px;
    padding: 4px 14px 4px 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--text-primary, #111);
    box-shadow: 0 2px 16px rgba(0, 0, 0, .14);
    white-space: nowrap;
    pointer-events: auto;
}

.upl-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--border-light, #e0e0e0);
    border-top-color: var(--primary, #046fad);
    border-radius: 50%;
    animation: upl-spin .7s linear infinite;
    flex-shrink: 0;
}

@keyframes upl-spin { to { transform: rotate(360deg); } }

/* SweetAlert2 TetHub overrides */
.swal-tethub-popup { border-radius: 18px !important; }
.swal-link { color: var(--primary, #046fad); font-weight: 600; text-decoration: none; }
.swal-link:hover { text-decoration: underline; }
