/* ═══════════════════════════════════════════
   ACTIVITY BAR – Now Coding (Spotify-style)
   ═══════════════════════════════════════════ */

#activity-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 7000;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 20px;
    transition: transform 0.4s ease;
}

/* Left — now playing info */
.ab-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 260px;
}

.ab-disc {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--red), #300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: discSpin 12s linear infinite;
    flex-shrink: 0;
}

@keyframes discSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.ab-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.ab-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    color: #06d6a0;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.ab-status .ab-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #06d6a0;
    animation: abPulse 1.2s ease-in-out infinite;
}

@keyframes abPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

#ab-repo {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#ab-tech {
    font-size: 0.72rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Center — progress bar */
.ab-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.ab-bar-label {
    font-size: 0.65rem;
    color: #555;
    letter-spacing: 0.5px;
}

#ab-track {
    width: 100%;
    height: 4px;
    background: #2a2a2a;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    transition: height 0.2s;
}

#ab-track:hover {
    height: 6px;
}

#ab-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red), #ff6b6b);
    border-radius: 2px;
    width: 0%;
    transition: width 0.15s linear;
}

#ab-knob {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    transition: opacity 0.2s, left 0.15s linear;
}

#ab-track:hover #ab-knob {
    opacity: 1;
}

/* Right — tech label */
.ab-right {
    min-width: 200px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    color: #555;
}

.ab-right span {
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 10px;
    border-radius: 20px;
    color: #888;
}

/* Hide on very small screens */
@media (max-width: 600px) {
    #activity-bar {
        padding: 0 14px;
        gap: 10px;
        height: 60px;
    }

    .ab-left {
        min-width: 160px;
    }

    .ab-right {
        display: none;
    }

    #ab-tech {
        display: none;
    }
}

/* Push page content above the bar */
.page {
    padding-bottom: 80px;
}