.download-progress-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-color-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--font-color);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-width: fit-content;
}

.download-progress-button:hover {
    background: var(--bg-color-tertiary);
    border-color: var(--brand-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.download-progress-button.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--brand-color);
    color: var(--brand-color);
}

.download-progress-button.active:hover {
    background: rgba(59, 130, 246, 0.15);
}

.download-progress-button.completed {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #10b981;
}

.download-progress-button.completed:hover {
    background: rgba(16, 185, 129, 0.15);
}

.download-progress-button.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.download-progress-button.error:hover {
    background: rgba(239, 68, 68, 0.15);
}

.button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.button-text {
    white-space: nowrap;
    flex-shrink: 0;
}

.download-count {
    background: var(--brand-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    min-width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.25rem;
}

.download-progress-button.active .download-count {
    background: var(--brand-color);
    animation: pulse 2s infinite;
}

.download-progress-button.error .download-count {
    background: #ef4444;
}

.download-progress-button.completed .download-count {
    background: #10b981;
}

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

/* Mobile responsive */
@media (max-width: 768px) {
    .download-progress-button {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        gap: 0.4rem;
    }

    .button-icon {
        width: 16px;
        height: 16px;
    }

    .download-count {
        font-size: 0.65rem;
        padding: 0.1rem 0.3rem;
        min-width: 1rem;
        height: 1rem;
    }
}

/* Dark theme adjustments */
@media (prefers-color-scheme: dark) {
    .download-progress-button:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
}
