/* Sticky Sidebar Logic */
.sidebar {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: sticky;
    top: 10px;
    align-self: start;
    transition: top 0.3s ease;
}

body.is-sticky-active .sidebar {
    top: 70px;
    /* Push down when sticky header is visible */
}

@media (max-width: 720px) {
    .sidebar {
        display: none !important;
    }
}

/* Sticky Progress Bar (Minimalist) */
#progress_sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(11, 12, 16, 0.98);
    /* High opacity dark bg */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    /* Highest z-index */
    padding: 8px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transform: translateY(-120%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#progress_sticky.visible {
    transform: translateY(0);
}

.sticky-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sticky-label {
    font-family: 'Special Elite', monospace;
    font-size: 13px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sticky-val {
    font-family: 'Special Elite', monospace;
    font-size: 20px;
    color: #fff;
    font-weight: 700;
    min-width: 45px;
    text-align: right;
    text-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

.sticky-bar-track {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.sticky-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #8b5cf6);
    width: 0%;
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.6);
    transition: width 0.5s ease-out;
}

/* Mobile Adjustments for Sticky Bar */
@media (max-width: 640px) {
    #progress_sticky {
        gap: 15px;
        padding: 10px;
        justify-content: space-between;
    }

    .sticky-item {
        gap: 6px;
        flex-direction: column;
        align-items: flex-start;
    }

    .sticky-label {
        font-size: 10px;
    }

    .sticky-val {
        font-size: 14px;
        min-width: auto;
        text-align: left;
        line-height: 1;
    }

    .sticky-bar-track {
        display: none;
        /* Hide bars on mobile to fit */
    }
}